SPECS: libtorrent.spec (NEW) - new

charles charles at pld-linux.org
Thu Jun 16 14:05:20 CEST 2005


Author: charles                      Date: Thu Jun 16 12:05:20 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: SPECS/libtorrent.spec
diff -u /dev/null SPECS/libtorrent.spec:1.1
--- /dev/null	Thu Jun 16 14:05:20 2005
+++ SPECS/libtorrent.spec	Thu Jun 16 14:05:14 2005
@@ -0,0 +1,95 @@
+# $Revision$, $Date$
+Summary:	LibTorrent - a BitTorrent library written in C++ for Unix
+Name:		libtorrent
+Version:	0.6.5
+Release:	0.1
+License:	GPL v2
+Group:		Libraries
+Source0:	http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.gz
+# Source0-md5:	19546b552dc02a4b78328e5630317a3f
+URL:		http://libtorrent.rakshasa.no/
+BuildRequires:	libsigc++-devel >= 2.0
+BuildRequires:	libstdc++-devel
+BuildRequires:	pkgconfig
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LibTorrent is a BitTorrent library written in C++ for Unix. It is
+designed to avoid the redundant buffers and data copying that most
+(all?) other BitTorrent implementations suffer from. The library is
+single-threaded and the client handles the select loop.
+
+%package devel
+Summary:	Development files for libtorrent
+Summary(pl):	Pliki programistyczne libtorrent
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libsigc++-devel >= 2.0
+
+%description devel
+Development files for libtorrent.
+
+%description devel -l pl
+Pliki programistyczne libtorrent.
+
+%package static
+Summary:	Static libtorrent library
+Summary(pl):	Statyczna biblioteka libtorrent
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libtorrent library.
+
+%description static -l pl
+Statyczna biblioteka libtorrent.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--%{?debug:en}%{!?debug:dis}able-debug \
+	--enable-static
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+cd $RPM_BUILD_ROOT%{_libdir}
+ln -sf libtorrent.so.*.*.* libtorrent.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_libdir}/libtorrent.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libtorrent.so
+%{_libdir}/libtorrent.la
+%{_includedir}/torrent
+%{_pkgconfigdir}/libtorrent.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libtorrent.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  2005/06/16 12:05:14  charles
+- new
+
================================================================



More information about the pld-cvs-commit mailing list