packages: stfl/stfl.spec - added link patch, use rpmcflags, rpmldflags, __c...

sparky sparky at pld-linux.org
Tue Nov 24 01:33:30 CET 2009


Author: sparky                       Date: Tue Nov 24 00:33:30 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added link patch, use rpmcflags, rpmldflags, __cc
- BR: python-modules
- %{py_libdir}/site-packages does not belong here

---- Files affected:
packages/stfl:
   stfl.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: packages/stfl/stfl.spec
diff -u packages/stfl/stfl.spec:1.18 packages/stfl/stfl.spec:1.19
--- packages/stfl/stfl.spec:1.18	Sat Oct 10 10:57:14 2009
+++ packages/stfl/stfl.spec	Tue Nov 24 01:33:25 2009
@@ -11,9 +11,11 @@
 # Source0-md5:	888502c3f332a0ee66e490690d79d404
 URL:		http://www.clifford.at/stfl/
 Patch0:		%{name}-example-dir.patch
+Patch1:		%{name}-link.patch
 BuildRequires:	ncurses-devel
 BuildRequires:	perl-devel
 BuildRequires:	python-devel
+BuildRequires:	python-modules
 BuildRequires:	ruby-devel
 BuildRequires:	swig-perl
 BuildRequires:	swig-python
@@ -115,14 +117,13 @@
 %prep
 %setup -q
 %patch0 -p1
-%{__sed} -i 's,$(prefix)/lib,/%{_libdir},g' python/Makefile.snippet
-%{__sed} -i 's,$(prefix)/lib,/%{_libdir},g' ruby/Makefile.snippet
-
+%patch1 -p1
 
 %build
-%{__make} -j1
+%{__make} -j1 \
 	prefix=%{_prefix} \
-	CFLAGS="%{rpmcflags} -I." \
+	CFLAGS="-Wall %{rpmcflags} -I. -D_GNU_SOURCE -fPIC" \
+	LDFLAGS="%{rpmldflags}" \
 	CC="%{__cc} -pthread"
 
 %install
@@ -171,7 +172,7 @@
 %files python
 %defattr(644,root,root,755)
 %{py_libdir}/site-packages/lib-dynload/_stfl.so
-%{py_libdir}/*
+%{py_libdir}/site-packages/stfl.pyc
 
 %files ruby
 %defattr(644,root,root,755)
@@ -184,6 +185,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2009/11/24 00:33:25  sparky
+- added link patch, use rpmcflags, rpmldflags, __cc
+- BR: python-modules
+- %{py_libdir}/site-packages does not belong here
+
 Revision 1.18  2009/10/10 08:57:14  uzsolt
 - post and postun
 - rel 2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/stfl/stfl.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list