SPECS: uniconvertor.spec - not noarch (native modules included), p...

qboosh qboosh at pld-linux.org
Sat Dec 15 12:40:27 CET 2007


Author: qboosh                       Date: Sat Dec 15 11:40:27 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- not noarch (native modules included), pass optflags
- added install patch to install missing plugins/Filters/Lib files
- package *.py[co] files, *.py only for plugins/Filters (sources needed there)
- R: python-PIL
- release 1

---- Files affected:
SPECS:
   uniconvertor.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/uniconvertor.spec
diff -u SPECS/uniconvertor.spec:1.2 SPECS/uniconvertor.spec:1.3
--- SPECS/uniconvertor.spec:1.2	Wed Dec 12 18:38:15 2007
+++ SPECS/uniconvertor.spec	Sat Dec 15 12:40:22 2007
@@ -1,19 +1,19 @@
 # $Revision$, $Date$
-# fix noarch (py_sitescriptdir) if really noarch or use optflags
 Summary:	vector graphics translator
 Summary(pl.UTF-8):	Konwerter grafiki wektorowej
 Name:		uniconvertor
 Version:	1.0.0
-Release:	0.1
-License:	LGPL
+Release:	1
+License:	LGPL v2+, some plugins GPL v2+ (CCX, CDR)
 Group:		Applications/Graphics
 Source0:	http://sk1project.org/downloads/uniconvertor/%{name}-%{version}.tar.gz
 # Source0-md5:	e334c28f42820784d6a9445173e082a0
+Patch0:		%{name}-install.patch
 URL:		http://sk1project.org/modules.php?name=Products&product=uniconvertor
-BuildRequires:	python-devel
+BuildRequires:	python-devel >= 1:2.5
 BuildRequires:	rpm-pythonprov
-#BuildArch:	noarch ???
 %pyrequires_eq	python-libs
+Requires:	python-PIL
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -24,24 +24,48 @@
 
 %prep
 %setup -q -n UniConvertor-%{version}
+%patch0 -p1
 
 %build
+CFLAGS="%{rpmcflags}" \
 python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 python setup.py install \
+	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
+# plugins/Filters/*.py must stay (they contain plugins info as comments)
+find $RPM_BUILD_ROOT%{py_sitedir}/uniconvertor -name '*.py' | grep -v 'plugins/Filters/[^/]*\.py$' | xargs rm -f
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc README src/COPYRIGHTS
 %attr(755,root,root) %{_bindir}/uniconv
-%{py_sitedir}/%{name}
+%dir %{py_sitedir}/uniconvertor
+%{py_sitedir}/uniconvertor/__init__.py[co]
+%dir %{py_sitedir}/uniconvertor/app
+%{py_sitedir}/uniconvertor/app/Graphics
+%{py_sitedir}/uniconvertor/app/Lib
+%{py_sitedir}/uniconvertor/app/Scripting
+%{py_sitedir}/uniconvertor/app/conf
+%{py_sitedir}/uniconvertor/app/events
+%{py_sitedir}/uniconvertor/app/io
+%{py_sitedir}/uniconvertor/app/managers
+%dir %{py_sitedir}/uniconvertor/app/modules
+%attr(755,root,root) %{py_sitedir}/uniconvertor/app/modules/*.so
+%{py_sitedir}/uniconvertor/app/plugins
+%{py_sitedir}/uniconvertor/app/scripts
+%{py_sitedir}/uniconvertor/app/utils
+%{py_sitedir}/uniconvertor/app/VERSION
+%{py_sitedir}/uniconvertor/app/__init__.py[co]
+%{py_sitedir}/uniconvertor/share
+%{py_sitedir}/UniConvertor-*.egg-info
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -49,6 +73,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2007-12-15 11:40:22  qboosh
+- not noarch (native modules included), pass optflags
+- added install patch to install missing plugins/Filters/Lib files
+- package *.py[co] files, *.py only for plugins/Filters (sources needed there)
+- R: python-PIL
+- release 1
+
 Revision 1.2  2007-12-12 17:38:15  qboosh
 - py_sitedir is not noarch
 - python deps
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/uniconvertor.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list