libtorrent-rasterbar ver. bump

This commit is contained in:
Rmys
2021-07-07 22:54:58 +03:00
committed by GitHub
parent c9d4411399
commit 50d7a29c0c
2 changed files with 40 additions and 25 deletions
+26 -21
View File
@@ -1,38 +1,43 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
#WorkDir = "libtorrent-rasterbar-%s" % get.srcVERSION()
def setup():
autotools.autoreconf("-vfi")
autotools.configure("--disable-static \
--enable-python-binding \
--enable-encryption \
--with-boost-filesystem=mt \
--with-boost-thread=mt \
--with-zlib=system \
--with-libiconv \
--with-libgeoip=system \
--enable-export-all")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
pisitools.dosed("Makefile", "PREFIX=/usr/local/", "PREFIX=/usr")
shelltools.system("mkdir build")
shelltools.cd("build")
cmaketools.configure("-GNinja .. \
-DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-Dbuild_examples=ON \
-Dbuild_tests=ON \
-Dbuild_tools=ON \
-Dpython-bindings=ON \
-Dpython-egg-info=ON \
-Dpython-install-system-dir=ON", sourceDir="..")
def build():
autotools.make("CXX=%s" % get.CXX())
shelltools.cd("build")
shelltools.system("ninja")
#cmaketools.make()
#def check():
#cmaketools.make("test")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#pisitools.removeDir("/usr/bin")
shelltools.cd("build")
shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
#cmaketools.rawInstall("DESTDIR=%s ninja install" % get.installDIR())
shelltools.cd("..")
pisitools.dohtml("docs/*")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "LICENSE")
+14 -4
View File
@@ -12,15 +12,18 @@
<IsA>library</IsA>
<Summary>Full featured torrent client library</Summary>
<Description>Rasterbar's 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.</Description>
<Archive sha1sum="15b3ee86c077ea6284e2eaf6e8da77cee9f00506" type="targz">https://github.com/arvidn/libtorrent/releases/download/v1.2.11/libtorrent-rasterbar-1.2.11.tar.gz</Archive>
<Archive sha1sum="6833baab3d0d1852c72f5ddd4869956e3f5f3788" type="targz">https://github.com/arvidn/libtorrent/releases/download/v2.0.4/libtorrent-rasterbar-2.0.4.tar.gz</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>ninja</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>boost-devel</Dependency>
<Dependency>boost-python</Dependency>
<Dependency>boost-python3</Dependency>
<Dependency>geoip-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>libtool</Dependency>
<Dependency>python3-setuptools</Dependency>
</BuildDependencies>
</Source>
@@ -32,7 +35,7 @@
<Dependency>libgcc</Dependency>
<Dependency>boost</Dependency>
<Dependency>geoip</Dependency>
<Dependency>boost-python</Dependency><!--revdep-rebuild eksik olarak buldu -->
<Dependency>boost-python3</Dependency><!--revdep-rebuild eksik olarak buldu -->
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
@@ -56,6 +59,13 @@
</Package>
<History>
<Update release="14">
<Date>2021-07-06</Date>
<Version>2.0.4</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="13">
<Date>2021-03-12</Date>
<Version>1.2.11</Version>