SPECS: python-pyblock.spec - added fix patch and -fno-strict-alias...
qboosh
qboosh at pld-linux.org
Sat May 20 10:16:50 CEST 2006
Author: qboosh Date: Sat May 20 08:16:50 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added fix patch and -fno-strict-aliasing, optflags enabled
- .so perms, compile *.py
---- Files affected:
SPECS:
python-pyblock.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/python-pyblock.spec
diff -u SPECS/python-pyblock.spec:1.5 SPECS/python-pyblock.spec:1.6
--- SPECS/python-pyblock.spec:1.5 Sat May 20 03:18:11 2006
+++ SPECS/python-pyblock.spec Sat May 20 10:16:45 2006
@@ -1,7 +1,4 @@
# $Revision$, $Date$
-# TODO
-# - -O2 breaks build
-# - compile .py[co] and *package* them
%define realname pyblock
Summary: Python modules for dealing with block devices
Summary(pl): Moduły Pythona do obsługi urządzeń blokowych
@@ -12,8 +9,9 @@
Group: Libraries/Python
Source0: %{realname}-%{version}.tar.bz2
# Source0-md5: a201b09eb86a748b0d41bd5671e7ae8f
-Patch0: python-pyblock-ULLLLLL.patch
-Patch1: python-pyblock-optflags.patch
+Patch0: %{name}-ULLLLLL.patch
+Patch1: %{name}-optflags.patch
+Patch2: %{name}-fix.patch
BuildRequires: device-mapper >= 1.02.05-0.3
BuildRequires: dmraid-static
BuildRequires: libselinux-devel
@@ -24,6 +22,8 @@
ExcludeArch: s390 s390x
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define specflags -fno-strict-aliasing
+
%description
The pyblock contains Python modules for dealing with block devices.
@@ -33,8 +33,8 @@
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p1
-# passing -O2 will break build. blah
-#%patch1 -p1
+%patch1 -p1
+%patch2 -p1
%build
%{__make} -j1 \
@@ -43,17 +43,24 @@
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
SITELIB=%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%dir %{py_sitedir}/block
-%{py_sitedir}/block/*
+%attr(755,root,root) %{py_sitedir}/block/bdevidmodule.so
+%attr(755,root,root) %{py_sitedir}/block/dmmodule.so
+%attr(755,root,root) %{py_sitedir}/block/dmraidmodule.so
+%{py_sitedir}/block/*.py[co]
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -61,6 +68,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2006/05/20 08:16:45 qboosh
+- added fix patch and -fno-strict-aliasing, optflags enabled
+- .so perms, compile *.py
+
Revision 1.5 2006/05/20 01:18:11 glen
- optflags patch (not applied as -O2 breaks build, anyone can check?)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-pyblock.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list