]> git.pld-linux.org Git - packages/libtorrent-rasterbar.git/blobdiff - libtorrent-rasterbar.spec
- release 3
[packages/libtorrent-rasterbar.git] / libtorrent-rasterbar.spec
index 150c36cdec31719f3d9578dcefeecde2aba54faa..b7591f63c07ec66941c958a449050c0791919722 100644 (file)
@@ -2,14 +2,16 @@ 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.14.7
-Release:       1
+Version:       0.15.4
+Release:       3
+Epoch:         1
 License:       BSD
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/libtorrent/%{name}-%{version}.tar.gz
-# Source0-md5: 6959f719245d82758235fd73d93373b2
+Source0:       http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5: 58750b3a246d056335745f9e805bb949
 URL:           http://www.rasterbar.com/products/libtorrent/
 Patch0:                bashizm.patch
+Patch1:                py27.patch
 BuildRequires: GeoIP-devel
 BuildRequires: autoconf
 BuildRequires: automake
@@ -20,6 +22,8 @@ BuildRequires:        libtool
 BuildRequires: openssl-devel
 BuildRequires: pkgconfig >= 1:0.20
 BuildRequires: python-devel
+BuildRequires: python-modules
+BuildRequires: rpm-pythonprov
 BuildRequires: sed >= 4.0
 BuildRequires: util-linux-ng
 BuildRequires: which
@@ -60,7 +64,7 @@ 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:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      boost-devel
 Requires:      openssl-devel
 Obsoletes:     rb_libtorrent-devel
@@ -90,7 +94,7 @@ License.
 Summary:       Static %{name} library
 Summary(pl.UTF-8):     Statyczna biblioteka %{name}
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}-%{release}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 Obsoletes:     rb_libtorrent-static
 
 %description static
@@ -105,14 +109,15 @@ Statyczna biblioteka libtorrent-rasterbar.
 %package -n python-libtorrent-rasterbar
 Summary:       Python bindings for libtorrent-rasterbar
 Group:         Libraries/Python
-Requires:      %{name} = %{version}-%{release}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n python-libtorrent-rasterbar
 Python bindings for libtorrent-rasterbar.
 
 %prep
 %setup -q
-%patch0 -p1
+# %patch0 -p1
+# %patch1 -p1
 %{__sed} -i 's/ACLOCAL_AMFLAGS = -I m4/#ACLOCAL_AMFLAGS = -I m4/' Makefile.am
 
 ## Some of the sources and docs are executable, which makes rpmlint against
@@ -129,7 +134,9 @@ rm -f docs/*.rst
 %{__autoconf}
 %{__automake}
 %configure \
+       LIBS="-lpthread -lrt" \
        --enable-python-binding \
+       --with-boost-libdir=%{_libdir} \
        --with-boost-system=boost_system \
        --with-boost-filesystem=boost_filesystem \
        --with-boost-thread=boost_thread \
@@ -140,7 +147,7 @@ rm -f docs/*.rst
        --with-libgeoip=system \
        --with-ssl
 
-%{__make} LDFLAGS="-L%{_libdir}64 %{rpmldflags}"
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -177,5 +184,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libtorrent-rasterbar.a
 
 %files -n python-libtorrent-rasterbar
+%defattr(644,root,root,755)
 %{py_sitedir}/libtorrent.so
 %{py_sitedir}/python_libtorrent-*.egg-info
This page took 0.04656 seconds and 4 git commands to generate.