rpms/streamtuner/F-8 streamtuner.spec,1.17,1.18

Matthias Haase endur at fedoraproject.org
Mon Oct 20 12:54:17 UTC 2008


Author: endur

Update of /cvs/extras/rpms/streamtuner/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv979

Modified Files:
	streamtuner.spec 
Log Message:
A change from htmlview to xdg-open and some minor fixes.


Index: streamtuner.spec
===================================================================
RCS file: /cvs/extras/rpms/streamtuner/F-8/streamtuner.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- streamtuner.spec	17 Sep 2008 11:58:57 -0000	1.17
+++ streamtuner.spec	20 Oct 2008 12:53:47 -0000	1.18
@@ -1,7 +1,7 @@
 Summary: A stream directory browser
 Name: streamtuner
 Version: 0.99.99
-Release: 21%{?dist}
+Release: 22%{?dist}
 URL: http://streamtuner.sourceforge.net
 Source0: http://download.savannah.nongnu.org/releases/streamtuner/streamtuner-0.99.99.tar.gz
 Source1: %{name}.png
@@ -26,7 +26,7 @@
 %description 
 Streamtuner is a stream directory browser,
 it offers an intuitive GTK+ 2.0 interface
-to Internet radio directories such as SHOUTcast and Live365
+to Internet radio directories such as SHOUTcast and Live365.
 
 %package devel
 Summary: Development files for streamtuner
@@ -39,7 +39,7 @@
 it offers an intuitive GTK+ 2.0 interface
 to Internet radio directories such as SHOUTcast and Live365
 This package contains the libraries and includes files necessary
-to develop applications for Streamtuner
+to develop applications for Streamtuner.
 
 %prep
 %setup -q
@@ -49,52 +49,50 @@
 %patch3 -p1 -b .%{name}-%{version}-pkgconfig.patch
 %patch4 -p1 -b .%{name}-%{version}-shoutcast.patch
 
+iconv -f latin1 -t utf8 < NEWS > NEWS.utf8
+touch -c -r NEWS NEWS.utf8
+mv NEWS.utf8 NEWS
+
 %build
-%configure --disable-live365
+%configure
 %{__make} %{?_smp_mflags}
 
 %install
 %{__rm} -rf %{buildroot}
 
-%makeinstall
-mkdir -p %{buildroot}%{_datadir}/pixmaps
-install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
+make install DESTDIR=%{buildroot} INSTALL='install -p'
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
+install -p -m644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 %{__rm} -rf %{buildroot}%{_localstatedir}
-%{__rm} -f %{buildroot}%{_datadir}/applications/%{name}.desktop
-%{__rm} -f %{buildroot}%{_libdir}/%{name}/plugins/*.*a
+%{__rm} %{buildroot}%{_libdir}/%{name}/plugins/*.*a
 
-cat > %{name}.desktop << EOF
-[Desktop Entry]
-Encoding=UTF-8
-StartupNotify=true
-Name=Streamtuner
-Comment=A stream directory browser.
-Exec=%{name}
-Icon=%{name}.png
-Terminal=false
-Type=Application
-EOF
 mkdir -p %{buildroot}%{_datadir}/applications 
 desktop-file-install --vendor=fedora         \
+  --delete-original                          \
   --dir %{buildroot}%{_datadir}/applications \
-  --add-category X-Fedora                    \
-  --add-category Application                 \
-  --add-category AudioVideo                  \
-  %{name}.desktop
+  %{buildroot}%{_datadir}/applications/%{name}.desktop
 
 %find_lang %{name}
 
 %post
 scrollkeeper-update -q || :
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
+  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
 
 %postun
 scrollkeeper-update -q || :
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
+  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
 
 %clean
 %{__rm} -rf %{buildroot}
 
 %files -f %{name}.lang
-%defattr(-, root, root)
+%defattr(-, root, root, -)
 %doc AUTHORS COPYING NEWS README TODO
 %{_bindir}/%{name}
 %dir %{_libdir}/%{name}
@@ -106,18 +104,20 @@
 %{_datadir}/omf/%{name}/*
 %{_datadir}/applications/fedora-%{name}.desktop
 %{_datadir}/pixmaps/%{name}.png
+%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 %{_datadir}/gtk-doc/html/*
 %dir %{_datadir}/help
 %{_datadir}/help/*
 
-
 %files devel
-%defattr(-, root, root)
+%defattr(-, root, root, -)
 %{_includedir}/*
 %{_libdir}/pkgconfig/*
 
-
 %changelog
+* Mon Oct 20 2008 Matthias Haase <matthias_haase at bennewitz.com> - 0.99.99-22
+- A change from htmlview to xdg-open and some minor fixes - thanks to Patrice Dumas
+
 * Wed Sep 17 2008 Matthias Haase <matthias_haase at bennewitz.com> - 0.99.99-21
 - bump up release
 




More information about the scm-commits mailing list