From: kloczek Date: Wed, 15 May 2002 16:11:51 +0000 (+0000) Subject: - enable building shared library, X-Git-Tag: librsync-0_9_5-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=ad3b194dddbbca9e3df1291215329cc3d10f8ac9;p=packages%2Flibrsync.git - enable building shared library, - added static subpackage. - some small improvments and cosmetcs. Changed files: librsync.spec -> 1.2 --- diff --git a/librsync.spec b/librsync.spec index 2b3c460..f42144e 100644 --- a/librsync.spec +++ b/librsync.spec @@ -7,6 +7,10 @@ Group: Libraries Source0: http://ftp1.sourceforge.net/rproxy/%{name}-%{version}.tar.gz URL: http://www.sf.net/projects/rproxy Patch0: %{name}-am.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gettext +BuildRequires: libtool BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -41,6 +45,18 @@ and incompatible with rsync 2.4.6. This package contains header files necessary for developing programs based on librsync. +%package static +Summary: Static librsync library +Summary(pl): Statyczna biblioteka librsync +Group: Development/Libraries +Requires: %{name}-devel = %{version} + +%description static +Static librsync library. + +%description static -l pl +Statyczna biblioteka librsync. + %prep %setup -q %patch0 -p1 @@ -51,34 +67,40 @@ libtoolize --copy --force gettextize --copy --force aclocal autoconf -automake -a -c - +automake -a -c -f %configure \ - --prefix=%{_prefix} \ - --mandir=%{_mandir}/ + --enable-shared %{__make} CFLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT -%{__make} DESTDIR=$RPM_BUILD_ROOT install -gzip -9nf AUTHORS COPYING NEWS README + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +gzip -9nf AUTHORS NEWS README THANKS TODO %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig - +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/rdiff -%{_mandir}/man1/rdiff.1.gz %doc *.gz +%attr(755,root,root) %{_bindir}/rdiff +%attr(755,root,root) %{_libdir}/lib*.so.*.* +%{_mandir}/man1/rdiff.1* %files devel %defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so +%attr(755,root,root) %{_libdir}/lib*.la %{_includedir}/* -%{_libdir}/librsync.* -%{_mandir}/man3/librsync.3.gz +%{_mandir}/man3/* + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a