SPECS: rb_libtorrent.spec - use |xargs, calls chmod with multiple ...

glen glen at pld-linux.org
Sun Mar 18 21:09:35 CET 2007


Author: glen                         Date: Sun Mar 18 20:09:35 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use |xargs, calls chmod with multiple args
- no macros in %description help adapter to wrap the same in resulting package

---- Files affected:
SPECS:
   rb_libtorrent.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/rb_libtorrent.spec
diff -u SPECS/rb_libtorrent.spec:1.2 SPECS/rb_libtorrent.spec:1.3
--- SPECS/rb_libtorrent.spec:1.2	Sun Mar 18 21:05:11 2007
+++ SPECS/rb_libtorrent.spec	Sun Mar 18 21:09:29 2007
@@ -17,11 +17,12 @@
 BuildRequires:	boost-filesystem-devel
 BuildRequires:	boost-thread-devel
 BuildRequires:	libstdc++-devel
+BuildRequires:	sed >= 4.0
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-%{name} is a C++ library that aims to be a good alternative to all the
+rb_libtorrent is a C++ library that aims to be a good alternative to all the
 other BitTorrent implementations around. It is a library and not a
 full featured client, although it comes with a working example client.
 
@@ -29,7 +30,7 @@
 usage) as well as being very easy to use both as a user and developer.
 
 %description -l pl.UTF-8
-%{name} jest biblioteką napisaną w C++ która aspiruje do bycia
+rb_libtorrent jest biblioteką napisaną w C++ która aspiruje do bycia
 dobrą alternatywą dla wszystkich innych implementacji BitTorrenta.
 Jest to biblioteka a nie pełnoprawny klient, jakkolwiek paczka
 zawiera działającego przykładowego klienta.
@@ -52,16 +53,16 @@
 Requires:	openssl-devel
 
 %description    devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+The rb_libtorrent-devel package contains libraries and header files for
+developing applications that use rb_libtorrent.
 
 The various source and header files included in this package are
 licensed under the revised BSD, zlib/libpng, and Boost Public
 licenses.
 
 %description devel -l pl.UTF-8
-Paczka %{name}-devel zawiera biblioteki i nagłówki do rozwijania
-aplikacji używających %{name}.
+Paczka rb_libtorrent-devel zawiera biblioteki i nagłówki do rozwijania
+aplikacji używających rb_libtorrent.
 
 Różne pliki źródłowe i nagłówki dostarcozne z tym pakietem są
 licencjonowane pod zeminioną licencją BSD, zlib/libpng i Boost
@@ -76,17 +77,17 @@
 Requires:	openssl-static
 
 %description static
-Static %{name} library.
+Static rb_libtorrent library.
 
 %description static -l pl.UTF-8
-Statyczna biblioteka %{name}.
+Statyczna biblioteka rb_libtorrent.
 
 %prep
 %setup -q -n "libtorrent-%{version}"
 ## Some of the sources and docs are executable, which makes rpmlint against
 ## the resulting -debuginfo and -devel packages, respectively, quite angry. :]
-find src/ docs/ -type f -exec chmod a-x '{}' \;
-find . -type f -regex '.*\.[hc]pp' -exec chmod a-x '{}' \;
+find src docs -type f | xargs chmod a-x
+find -type f -regex '.*\.[hc]pp' | xargs chmod a-x
 ## The RST files are the sources used to create the final HTML files; and are
 ## not needed.
 rm -f docs/*.rst
@@ -97,7 +98,7 @@
 %build
 %configure \
 	--enable-examples \
-	 --with-zlib=system
+	--with-zlib=system
 
 %{__make}
 
@@ -108,15 +109,15 @@
 #make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p"
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
-## Do the renaming due to the somewhat limited %%{_bindir} namespace.
+
+## Do the renaming due to the somewhat limited %{_bindir} namespace.
 rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
@@ -127,27 +128,28 @@
 %files devel
 %defattr(644,root,root,755)
 %doc docs/
-%{_pkgconfigdir}/libtorrent.pc
-%dir %{_includedir}/libtorrent
-%{_includedir}/libtorrent/
 %{_libdir}/libtorrent.so
 %{_libdir}/*.la
+%{_pkgconfigdir}/libtorrent.pc
+%{_includedir}/libtorrent
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2007/03/18 20:09:29  glen
+- use |xargs, calls chmod with multiple args
+- no macros in %description help adapter to wrap the same in resulting package
+
 Revision 1.2  2007/03/18 20:05:11  glen
 - boost/functional/hash N/A before 0.33.1
 
 Revision 1.1  2007/03/18 17:46:18  czarny
 - alternative libtorrent implementation
 - needs some checkup and fixes in boost to compile
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/rb_libtorrent.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list