packages: pykaraoke/pykaraoke.spec - use compression macros, and %%py_postc...

lisu lisu at pld-linux.org
Thu Aug 27 16:28:06 CEST 2009


Author: lisu                         Date: Thu Aug 27 14:28:06 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use compression macros, and %%py_postclean
- include .egg-info

---- Files affected:
packages/pykaraoke:
   pykaraoke.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/pykaraoke/pykaraoke.spec
diff -u packages/pykaraoke/pykaraoke.spec:1.7 packages/pykaraoke/pykaraoke.spec:1.8
--- packages/pykaraoke/pykaraoke.spec:1.7	Thu Aug 27 16:19:41 2009
+++ packages/pykaraoke/pykaraoke.spec	Thu Aug 27 16:28:01 2009
@@ -13,6 +13,7 @@
 BuildRequires:	SDL-devel
 BuildRequires:	python-pygame-devel
 BuildRequires:	python-wxPython
+BuildRequires:	rpmbuild(macros) >= 1.219
 BuildRequires:	unzip
 Requires:	python-pygame
 %pyrequires_eq	python-modules
@@ -68,7 +69,9 @@
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
-#find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" | xargs rm
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -77,9 +80,12 @@
 %defattr(644,root,root,755)
 %doc README.txt
 %attr(755,root,root) %{_bindir}/*
-%{py_sitedir}/*.py[co]
-%{_desktopdir}/*.desktop
 %{_datadir}/%{name}
+%{_desktopdir}/*.desktop
+%{py_sitedir}/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/*.egg-info
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -87,6 +93,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2009/08/27 14:28:01  lisu
+- use compression macros, and %%py_postclean
+- include .egg-info
+
 Revision 1.7  2009/08/27 14:19:41  lisu
 - up to 0.7.1
 - add missing BR: unzip
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pykaraoke/pykaraoke.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list