packages: fsplib/fsplib.spec - updated to 0.11 - autotools are gone, added ...

qboosh qboosh at pld-linux.org
Tue Jun 15 22:38:36 CEST 2010


Author: qboosh                       Date: Tue Jun 15 20:38:36 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 0.11
- autotools are gone, added scons patch which tries to fix introduced build issues

---- Files affected:
packages/fsplib:
   fsplib.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: packages/fsplib/fsplib.spec
diff -u packages/fsplib/fsplib.spec:1.13 packages/fsplib/fsplib.spec:1.14
--- packages/fsplib/fsplib.spec:1.13	Wed Sep  5 18:32:02 2007
+++ packages/fsplib/fsplib.spec	Tue Jun 15 22:38:30 2010
@@ -6,16 +6,15 @@
 Summary:	fsp library
 Summary(pl.UTF-8):	Biblioteka fsp
 Name:		fsplib
-Version:	0.9
+Version:	0.11
 Release:	1
 License:	BSD-like (see COPYING)
 Group:		Libraries
-Source0:	http://dl.sourceforge.net/fsp/%{name}-%{version}.tar.gz
-# Source0-md5:	e6f2e5a9cf9a893625b80ce7255c0d8c
+Source0:	http://downloads.sourceforge.net/fsp/%{name}-%{version}.tar.gz
+# Source0-md5:	f2f4809159d331baada8135d3977563c
+Patch0:		%{name}-scons.patch
 URL:		http://fsp.sourceforge.net/fsplib.html
-BuildRequires:	autoconf >= 2.59
-BuildRequires:	automake
-BuildRequires:	libtool
+BuildRequires:	scons
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,7 +24,7 @@
 For more information about FSP protocol see
 <http://fsp.sourceforge.net/>.
 
-For library and API info see http://fsp.sourceforge.net/fsplib.html .
+For library and API info see <http://fsp.sourceforge.net/fsplib.html>.
 
 %description -l pl.UTF-8
 To jest biblioteka napisana w C, która obsługuje "rozmowę" z serwerem
@@ -36,7 +35,7 @@
 <http://fsp.sourceforge.net/>.
 
 Informacje o bibliotece i API znajdują się na
-http://fsp.sourceforge.net/fsplib.html .
+<http://fsp.sourceforge.net/fsplib.html>.
 
 %package devel
 Summary:	Header files for FSP library
@@ -63,23 +62,24 @@
 Statyczna biblioteka FSP.
 
 %prep
-%setup -c -q
+%setup -q -c
+%patch0 -p1
 
 %build
-autoreconf -i
-%{__libtoolize}
-%{__autoconf}
-%{__automake}
-%configure \
-	--enable-shared \
-	%{!?with_static_libs:--disable-static}
-%{__make}
+%scons \
+	CCFLAGS="%{rpmcflags}" \
+	enable-shared=yes
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+# we know scons is great :/
+install libfsplib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}
+ln -sf libfsplib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libfsplib.so.0
+ln -sf libfsplib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libfsplib.so
+cp -a libfsplib.a $RPM_BUILD_ROOT%{_libdir}
+cp -a fsplib.h $RPM_BUILD_ROOT%{_includedir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -90,18 +90,18 @@
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog COPYING NEWS README TODO
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libfsplib.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfsplib.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*
+%attr(755,root,root) %{_libdir}/libfsplib.so
+%{_includedir}/fsplib.h
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libfsplib.a
 %endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -110,6 +110,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2010/06/15 20:38:30  qboosh
+- updated to 0.11
+- autotools are gone, added scons patch which tries to fix introduced build issues
+
 Revision 1.13  2007/09/05 16:32:02  qboosh
 - CVE notes
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fsplib/fsplib.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list