snappy 1.1.7

This commit is contained in:
idriskalp
2019-12-27 13:15:30 +03:00
parent d3bdf40be3
commit 27566510bd
3 changed files with 38 additions and 12 deletions
+13 -9
View File
@@ -7,24 +7,28 @@
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import get from pisi.actionsapi import get
def setup(): def setup():
pisitools.flags.remove("-DNDEBUG") pisitools.flags.remove("-DNDEBUG")
shelltools.system("./autogen.sh") #shelltools.system("./autogen.sh")
autotools.configure("--prefix=/usr \ #autotools.configure("--prefix=/usr \
--disable-static \ #--disable-static \
--enable-shared") #--enable-shared")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
cmaketools.configure("-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_LIBDIR=lib")
def build(): def build():
autotools.make() cmaketools.make()
def build(): def check():
autotools.make("check") cmaketools.make("test")
def install(): def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR()) autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("README", "COPYING", "ChangeLog", "NEWS", "AUTHORS") pisitools.dodoc("README.md", "COPYING", "AUTHORS")
+10
View File
@@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: snappy
Description: A fast compression/decompression library
Version: 1.1.7
Libs: -L${libdir} -lsnappy
Cflags: -I${includedir}
+15 -3
View File
@@ -15,10 +15,11 @@
<BuildDependencies> <BuildDependencies>
<Dependency>lzo-devel</Dependency> <Dependency>lzo-devel</Dependency>
<Dependency>zlib-devel</Dependency> <Dependency>zlib-devel</Dependency>
<Dependency>cmake</Dependency>
</BuildDependencies> </BuildDependencies>
<Archive sha1sum="63f7a3d2c865a6a39aca9bc5d3412a8b2d607bb4" type="targz">https://github.com/google/snappy/releases/download/1.1.3/snappy-1.1.3.tar.gz</Archive> <Archive sha1sum="1ec676b842fc96fd8a95b03c12758935e7f257b0" type="targz">https://github.com/google/snappy/archive/1.1.7.tar.gz</Archive>
<Patches> <Patches>
<Patch level="1">snappy-unittest.patch</Patch> <!-- <Patch level="1">snappy-unittest.patch</Patch> -->
</Patches> </Patches>
</Source> </Source>
<Package> <Package>
@@ -37,11 +38,22 @@
<RuntimeDependencies> <RuntimeDependencies>
<Dependency release="current">snappy</Dependency> <Dependency release="current">snappy</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/lib/pkgconfig/snappy.pc">snappy.pc</AdditionalFile>
</AdditionalFiles>
<Files> <Files>
<Path fileType="header">/usr/include</Path> <Path fileType="header">/usr/lib/pkgconfig</Path>
<Path fileType="header">/usr/include</Path>
</Files> </Files>
</Package> </Package>
<History> <History>
<Update release="5">
<Date>2019-12-27</Date>
<Version>1.1.7</Version>
<Comment>Version bump</Comment>
<Name>idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Update>
<Update release="4"> <Update release="4">
<Date>2018-07-15</Date> <Date>2018-07-15</Date>
<Version>1.1.3</Version> <Version>1.1.3</Version>