From d215b49cfb171cf23da9c142dc7a76802ef8d957 Mon Sep 17 00:00:00 2001 From: Peter Gordon Date: Jan 28 2007 17:14:28 +0000 Subject: auto-import rb_libtorrent-0.11-4 on branch devel from rb_libtorrent-0.11-4.src.rpm Initial import (approved in bug #221372). --- diff --git a/.cvsignore b/.cvsignore index e69de29..df2f1b6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libtorrent-0.11.tar.gz diff --git a/rb_libtorrent-COPYING.Boost b/rb_libtorrent-COPYING.Boost new file mode 100644 index 0000000..36b7cd9 --- /dev/null +++ b/rb_libtorrent-COPYING.Boost @@ -0,0 +1,23 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/rb_libtorrent-COPYING.zlib b/rb_libtorrent-COPYING.zlib new file mode 100644 index 0000000..fbd9dd7 --- /dev/null +++ b/rb_libtorrent-COPYING.zlib @@ -0,0 +1,17 @@ +This software is provided 'as-is', without any express or implied warranty. In +no event will the authors be held liable for any damages arising from the use +of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not claim + that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. \ No newline at end of file diff --git a/rb_libtorrent-README-renames.Fedora b/rb_libtorrent-README-renames.Fedora new file mode 100644 index 0000000..cf5ed57 --- /dev/null +++ b/rb_libtorrent-README-renames.Fedora @@ -0,0 +1,14 @@ +Author: Peter Gordon +This document is placed in the public domain. + +Please note that, due to potential issues in having somewhat of a +limited namespace in the standard $BINDIR (e.g., /usr/bin or /usr/bin64), some +of the files in this package had to renamed from what they are shipped as in +the upstream tarball. They are as follows: + +There are multiple example programs for rb_libtorrent. Of them, client_test +had to be renamed to torrent_client_test and simple_client had to be renamed +to simple_torrent_client. + +We appreciate your understanding in this matter, and work is underway to +resolve this issue upstream. Thanks. \ No newline at end of file diff --git a/rb_libtorrent.spec b/rb_libtorrent.spec new file mode 100644 index 0000000..ee34974 --- /dev/null +++ b/rb_libtorrent.spec @@ -0,0 +1,140 @@ +Name: rb_libtorrent +Version: 0.11 +Release: 4%{?dist} +Summary: A C++ BitTorrent library aiming to be the best alternative + +Group: System Environment/Libraries +License: BSD +URL: http://www.rasterbar.com/products/libtorrent/ + +Source0: http://dl.sourceforge.net/sourceforge/libtorrent/libtorrent-%{version}.tar.gz +Source1: %{name}-README-renames.Fedora +Source2: %{name}-COPYING.Boost +Source3: %{name}-COPYING.zlib + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: boost-devel +BuildRequires: zlib-devel + +## The following is taken from it's website listing...mostly. +%description +%{name} 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. (Due to potential +namespace conflicts, a couple of the examples had to be renamed. See the +included documentation for more details.) + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +License: BSD, zlib/libpng License, Boost Software License +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +## Same headers directory, pkgconfig file, and unsuffixed shared library +## symlink. :( +Conflicts: libtorrent +## Needed for various headers retrieved via #include directives... +Requires: boost-devel +Requires: openssl-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +The various source and header files included in this package are licensed +under the revised BSD, zlib/libpng, and Boost Public licenses. See the various +COPYING files in the included documentation for the full text of these +licenses, as well as the comments blocks in the source code for which license +a given source or header file is released under. + + +%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 '{}' \; +## The RST files are the sources used to create the final HTML files; and are +## not needed. +rm -f docs/*.rst +## Ensure that we get the licenses installed appropriately. +install -p -m 0644 COPYING COPYING.BSD +install -p -m 0644 %{SOURCE2} COPYING.Boost +install -p -m 0644 %{SOURCE3} COPYING.zlib + + +%build +## We don't need multiple zlib link options in the installed pkgconfig file. +%{__sed} -i -e 's/@ZLIB@//' libtorrent.pc.in +%configure --disable-static --enable-examples --with-zlib=system +make %{?_smp_mflags} + + +%check +make check + + +%install +rm -rf %{buildroot} +## Ensure that we preserver our timestamps properly. +export CPPROG="%{__cp} -p" +make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" +## Do the renaming due to the somewhat limited %%_bindir namespace. +rename client torrent_client %{buildroot}%{_bindir}/* +install -p -m 0644 %{SOURCE1} README-renames.Fedora + + +%clean +rm -rf %{buildroot} + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README README-renames.Fedora +%{_bindir}/*torrent* +%{_libdir}/libtorrent.so.* +%exclude %{_libdir}/*.la + +%files devel +%defattr(-,root,root,-) +%doc COPYING.Boost COPYING.BSD COPYING.zlib docs/ +%{_libdir}/pkgconfig/libtorrent.pc +%{_includedir}/libtorrent/ +%{_libdir}/libtorrent.so + + +%changelog +* Sat Jan 27 2007 Peter Gordon - 0.11-4 +- Clarify potential licensing issues in the -devel subpackage: + + COPYING.zlib + + COPYING.Boost +- Add my name in the Fedora-specific documentation (README-renames.Fedora) and + fix some spacing issues in it. +- Strip the @ZLIB@ (and thus, the extra '-lz' link option) from the installed + pkgconfig file, as that is only useful when building a statically-linked + libtorrent binary. + +* Wed Jan 17 2007 Peter Gordon - 0.11-3 +- Fix License (GPL -> BSD) +- Don't package RST (docs sources) files. +- Only make the -devel subpackage conflict with libtorrent-devel. +- Rename some of the examples more appropriately; and add the + README-renames.Fedora file to %%doc which explains this. + +* Fri Jan 05 2007 Peter Gordon - 0.11-2 +- Add Requires: pkgconfig to the -devel subpackage since it installs a .pc + file. + +* Wed Jan 03 2007 Peter Gordon - 0.11-1 +- Initial packaging for Fedora Extras diff --git a/sources b/sources index e69de29..107a67e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +56e9071b95a6e3f9377121f2fead3499 libtorrent-0.11.tar.gz