SPECS: ltxml.spec - added shared,link patches, build shared libs

qboosh qboosh at pld-linux.org
Mon Dec 26 00:29:58 CET 2005


Author: qboosh                       Date: Sun Dec 25 23:29:58 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added shared,link patches, build shared libs

---- Files affected:
SPECS:
   ltxml.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/ltxml.spec
diff -u SPECS/ltxml.spec:1.8 SPECS/ltxml.spec:1.9
--- SPECS/ltxml.spec:1.8	Mon Dec 26 00:06:01 2005
+++ SPECS/ltxml.spec	Mon Dec 26 00:29:52 2005
@@ -8,10 +8,13 @@
 Group:		Applications/Text
 Source0:	ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/%{name}-%{version}.tar.gz
 # Source0-md5:	7aa37556dc9b532013c3bf9698e7d630
-Patch1:		%{name}-CFLAGS.patch
+Patch0:		%{name}-CFLAGS.patch
+Patch1:		%{name}-shared.patch
+Patch2:		%{name}-link.patch
 URL:		http://www.ltg.ed.ac.uk/software/xml/
 BuildRequires:	autoconf
 BuildRequires:	automake
+BuildRequires:	libtool
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,6 +43,7 @@
 Summary:	LT XML API libraries and header files
 Summary(pl):	Pliki nagłówkowe i biblioteki API LT XML
 Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
 
 %description devel
 LT XML API libraries and header files.
@@ -47,13 +51,27 @@
 %description devel -l pl
 Pliki nagłówkowe i biblioteki API LT XML.
 
+%package static
+Summary:	Static LT XML libraries
+Summary(pl):	Statyczne biblioteki LT XML
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static LT XML libraries.
+
+%description static -l pl
+Statyczne biblioteki LT XML.
+
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
+%patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 cd XML
-install %{_datadir}/automake/config.* .
+cp -f /usr/share/automake/config.* .
 %{__autoconf}
 %configure \
 	--enable-multi-byte
@@ -72,17 +90,26 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc 00README 00COPYRIGHT XML/doc/{*.gif,*.html,*.c}
 %attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/liblt*.so.*.*.*
 %{_prefix}/lib/%{name}*
-%{_mandir}/*/*
+%{_mandir}/man[15]/*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/*
-%{_libdir}/*.a
+%attr(755,root,root) %{_libdir}/liblt*.so
+%{_libdir}/liblt*.la
+%{_includedir}/ltxml12
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liblt*.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -90,6 +117,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2005/12/25 23:29:52  qboosh
+- added shared,link patches, build shared libs
+
 Revision 1.8  2005/12/25 23:06:01  qboosh
 - fixed prep (killed / from setup -n)
 - lib64 fix
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ltxml.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list