SPECS: libtorrent-rasterbar.spec (NEW) - rb_libtorrent renamed to libtorren...

uzsolt uzsolt at pld-linux.org
Sun Aug 31 13:25:31 CEST 2008


Author: uzsolt                       Date: Sun Aug 31 11:25:31 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rb_libtorrent renamed to libtorrent-rasterbar
- up to 0.13.1
- added some patches

---- Files affected:
SPECS:
   libtorrent-rasterbar.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/libtorrent-rasterbar.spec
diff -u /dev/null SPECS/libtorrent-rasterbar.spec:1.1
--- /dev/null	Sun Aug 31 13:25:31 2008
+++ SPECS/libtorrent-rasterbar.spec	Sun Aug 31 13:25:25 2008
@@ -0,0 +1,216 @@
+# $Revision$, $Date$
+Summary:	A C++ BitTorrent library
+Summary(hu.UTF-8):	C++ BitTorrent könyvtár
+Summary(pl.UTF-8):	Biblioteka BitTorrenta napisana w C++
+Name:		libtorrent-rasterbar
+Version:	0.13.1
+Release:	1
+License:	BSD
+Group:		Libraries
+Source0:	http://dl.sourceforge.net/libtorrent/%{name}-%{version}.tar.gz
+# Source0-md5:	9d6b112fedc5861402647ff72e95dba0
+Patch0:		%{name}-examples.patch
+## fix the build error with newest boost -- it will be fixed in the next libtorrent version
+Patch1:		%{name}-boost.patch
+Patch2:		%{name}-condition.patch
+URL:		http://www.rasterbar.com/products/libtorrent/
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	boost-devel >= 1.35.0
+BuildRequires:	libstdc++-devel
+BuildRequires:	sed >= 4.0
+BuildRequires:	zlib-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libtorrent-rasterbar 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.
+
+Its main goals are to be very efficient (in terms of CPU and memory
+usage) as well as being very easy to use both as a user and developer.
+
+%description -l hu.UTF-8
+libtorrent-rasterbar egy C++ könyvtár, amely egy jó alternatívája
+kíván lenni az összes többi BitTorrent implementációjának. Ez "csak"
+egy könyvtár, és nem egy szolgáltatásgazdag kliens, habár ad egy
+működő példa-klienst.
+
+A fő céljai, hogy nagyon hatékony legyen (CPU és memória-használat) és
+könnyű legyen használni mind a felhasználóknak, mind a fejlesztőknek.
+
+%description -l pl.UTF-8
+libtorrent-rasterbar 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
+pakiet zawiera działającego przykładowego klienta.
+
+Główne cele biblioteki to bycie bardzo efektywną (w rozumieniu
+wykorzystania procesora i pamięci) jak również łatwą w użyciu zarówno
+dla użytkownika, jak i programisty.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+License:	BSD, zlib/libpng License, Boost Software License
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	boost-devel
+Requires:	openssl-devel
+## Same pkgconfig file, and unsuffixed shared library symlink.:(
+Conflicts:	libtorrent-devel
+
+%description    devel
+The libtorrent-rasterbar-devel package contains libraries and header
+files for developing applications that use libtorrent-rasterbar.
+
+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 hu.UTF-8
+A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és
+fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó
+alkalmazásokat fejleszthetsz.
+
+%description devel -l pl.UTF-8
+Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do
+rozwijania aplikacji używających libtorrent-rasterbar.
+
+Różne pliki źródłowe i nagłówki dostarcozne z tym pakietem są
+licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public.
+
+%package static
+Summary:	Static %{name} library
+Summary(pl.UTF-8):	Statyczna biblioteka %{name}
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libtorrent-rasterbar library.
+
+%description static -l hu.UTF-8
+Statikus libtorrent-rasterbar könyvtár.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libtorrent-rasterbar.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+## 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 | 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
+## Fix the installed pkgconfig file: we don't need linkage that the
+## libtorrent DSO already takes care of.
+%{__sed} -i -e 's/^Libs:.*$/Libs: -L${libdir} -ltorrent/' libtorrent-rasterbar.pc.in
+
+%build
+%{__aclocal} -I m4
+%{__libtoolize}
+%{__autoconf}
+%{__automake}
+%configure \
+	--with-boost-system=boost_system\
+	--with-boost-date-time=boost_date_time\
+	--with-boost-filesystem=boost_filesystem\
+	--with-boost-thread=boost_thread\
+	--with-boost-regex=boost_regex\
+	--with-boost-program-options=boost_program_options\
+	--with-{asio,zlib}=system
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+## Ensure that we preserve our timestamps properly.
+#export CPPROG="%{__cp} -p"
+#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.
+rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog COPYING README
+%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so*
+
+%files devel
+%defattr(644,root,root,755)
+%doc docs/
+%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so
+%{_libdir}/libtorrent-rasterbar.la
+%{_pkgconfigdir}/libtorrent-rasterbar.pc
+%{_includedir}/libtorrent
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libtorrent-rasterbar.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.1  2008/08/31 11:25:25  uzsolt
+- rb_libtorrent renamed to libtorrent-rasterbar
+- up to 0.13.1
+- added some patches
+
+Revision 1.12  2008/05/21 01:12:24  sls
+- added boost_1_35.patch
+
+Revision 1.11  2008-04-29 14:06:07  pluto
+- reorganize boost BRs (boost-devel >= 1.35.0).
+
+Revision 1.10  2008-04-16 19:19:42  lisu
+- STBR for last revision
+
+Revision 1.9  2008-04-16 19:18:41  lisu
+- 0.13
+- use auto tools
+- use sed macro
+- STBR
+
+Revision 1.8  2008-02-03 11:21:44  lisu
+- 0.12.1
+- shared library has a new name in ths version
+
+Revision 1.7  2008-01-24 22:03:56  blues
+- rel.2
+
+Revision 1.6  2007/10/04 15:19:10  dzeus
+- rel.1
+
+Revision 1.5  2007/07/22 01:03:11  lisu
+- 0.12.0
+
+Revision 1.4  2007/03/31 17:56:29  qboosh
+- pl fixes, cleanup
+
+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
================================================================


More information about the pld-cvs-commit mailing list