Accepting request 294636 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/294636
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/leveldb?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2015-04-07 07:29:59 +00:00 committed by Git OBS Bridge
commit 8801ae20fa
4 changed files with 20 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d5c449b7057f7991e6ede897ba524889cb925120a53f6533398ee9685749665d
size 159372

View File

@ -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

View File

@ -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}

3
v1.18.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4aa1a7479bc567b95a59ac6fb79eba49f61884d6fd400f20b7af147d54c5cee5
size 209376