packages: portmidi/portmidi.spec - add desktop and icon for pmdefaults

lisu lisu at pld-linux.org
Tue Jan 18 16:42:59 CET 2011


Author: lisu                         Date: Tue Jan 18 15:42:59 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add desktop and icon for pmdefaults

---- Files affected:
packages/portmidi:
   portmidi.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: packages/portmidi/portmidi.spec
diff -u packages/portmidi/portmidi.spec:1.11 packages/portmidi/portmidi.spec:1.12
--- packages/portmidi/portmidi.spec:1.11	Tue Jan 18 16:20:58 2011
+++ packages/portmidi/portmidi.spec	Tue Jan 18 16:42:54 2011
@@ -6,17 +6,20 @@
 Summary(pl.UTF-8):	Przenośna biblioteka MIDI czasu rzeczywistego
 Name:		portmidi
 Version:	217
-Release:	1
+Release:	2
 License:	MIT-like
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/portmedia/%{version}/%{name}-src-%{version}.zip
 # Source0-md5:	03f46fd3947e2ef4c8c465baaf832241
+Source1:	pmdefaults.desktop
 Patch0:		%{name}-cmake.patch
 URL:		http://portmedia.sourceforge.net/
 BuildRequires:	alsa-lib-devel >= 0.9
 BuildRequires:	cmake
+BuildRequires:	desktop-file-utils
 #BuildRequires:	doxygen
 BuildRequires:	jdk >= 1.5
+BuildRequires:	jpackage-utils
 BuildRequires:	rpmbuild(macros) >= 1.600
 #BuildRequires:	texlive-format-pdflatex
 #BuildRequires:	texlive-latex-extend
@@ -78,19 +81,26 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_datadir}/icons/hicolor/128x128/apps,%{_desktopdir}}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 # Install the test applications
-install -d $RPM_BUILD_ROOT%{_libdir}/%{name}
 for app in latency midiclock midithread midithru mm qtest sysex test; do
-	install build/Release/$app $RPM_BUILD_ROOT%{_libdir}/%{name}/
+	install build/Release/$app $RPM_BUILD_ROOT%{_libdir}/%{name}
 done
 
 # PLD's jni library location is different
-mv $RPM_BUILD_ROOT%{_libdir}/libpmjni.so $RPM_BUILD_ROOT%{_libdir}/%{name}/
-mv $RPM_BUILD_ROOT%{_javadir}/pmdefaults.jar $RPM_BUILD_ROOT%{_libdir}/%{name}/
+mv $RPM_BUILD_ROOT%{_libdir}/libpmjni.so $RPM_BUILD_ROOT%{_libdir}/%{name}
+mv $RPM_BUILD_ROOT%{_javadir}/pmdefaults.jar $RPM_BUILD_ROOT%{_libdir}/%{name}
+
+# pmdefaults icon
+cp -a pm_java/pmdefaults/pmdefaults-icon.png \
+   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
+
+# desktop file
+desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -126,6 +136,8 @@
 %attr(755,root,root) %{_libdir}/portmidi/qtest
 %attr(755,root,root) %{_libdir}/portmidi/sysex
 %attr(755,root,root) %{_libdir}/portmidi/test
+%{_desktopdir}/pmdefaults.desktop
+%{_iconsdir}/hicolor/128x128/apps/pmdefaults-icon.png
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -133,6 +145,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2011/01/18 15:42:54  lisu
+- add desktop and icon for pmdefaults
+
 Revision 1.11  2011/01/18 15:20:58  lisu
 - add /usr/lib/portmidi dir
 - s/java/jdk/
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/portmidi/portmidi.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list