diff --git a/leveldb-1.18.tar.bz2 b/leveldb-1.18.tar.bz2 deleted file mode 100644 index 58ee61e..0000000 --- a/leveldb-1.18.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5c449b7057f7991e6ede897ba524889cb925120a53f6533398ee9685749665d -size 159372 diff --git a/leveldb.changes b/leveldb.changes index d114c64..04ecd1a 100644 --- a/leveldb.changes +++ b/leveldb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Apr 5 13:29:58 UTC 2015 - mpluskal@suse.com + +- Update project url +- Use url for source +- Enable tests + ------------------------------------------------------------------- Mon Oct 20 12:13:47 UTC 2014 - dmueller@suse.com diff --git a/leveldb.spec b/leveldb.spec index 7137ee1..a6437bb 100644 --- a/leveldb.spec +++ b/leveldb.spec @@ -1,7 +1,7 @@ # # spec file for package leveldb # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,8 +22,8 @@ Release: 0 Summary: A key/value-store License: BSD-3-Clause Group: Development/Libraries/C and C++ -Url: http://code.google.com/p/leveldb/ -Source: leveldb-%{version}.tar.bz2 +Url: https://github.com/google/leveldb +Source0: https://github.com/google/leveldb/archive/v%{version}.tar.gz Patch0: 0001-debian-ports.patch BuildRequires: gcc-c++ BuildRequires: snappy-devel @@ -33,6 +33,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build leveldb implements a system for maintaining a persistent key/value store. %define lib_name libleveldb1 + %package -n %{lib_name} Summary: Shared library from leveldb Group: System/Libraries @@ -69,7 +70,10 @@ This package holds the development files for statically linking leveldb. %patch0 -p1 %build -make %{?_smp_flags} OPT="%{optflags}" +make %{?_smp_mflags} OPT="%{optflags}" + +%check +make %{?_smp_mflags} check %install install -d -m 0755 %{buildroot}%{_includedir} %{buildroot}%{_libdir} @@ -80,9 +84,10 @@ cp -a \ %{buildroot}%{_libdir} cp -a include/leveldb %{buildroot}%{_includedir} -find %{buildroot} -name \*.la -delete -print +find %{buildroot} -type f -name "*.la" -delete -print %post -n %{lib_name} -p /sbin/ldconfig + %postun -n %{lib_name} -p /sbin/ldconfig %files -n %{lib_name} diff --git a/v1.18.tar.gz b/v1.18.tar.gz new file mode 100644 index 0000000..14175c8 --- /dev/null +++ b/v1.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4aa1a7479bc567b95a59ac6fb79eba49f61884d6fd400f20b7af147d54c5cee5 +size 209376