Accepting request 416646 from server:database

1

OBS-URL: https://build.opensuse.org/request/show/416646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sqlite3?expand=0&rev=89
This commit is contained in:
Dominique Leuenberger 2016-08-05 16:14:18 +00:00 committed by Git OBS Bridge
commit 623c6840ed
2 changed files with 18 additions and 16 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Aug 2 13:41:17 UTC 2016 - astieger@suse.com
- Fix SLE 11 for previous change: noarch subpackages not supported
-------------------------------------------------------------------
Tue Aug 2 11:00:30 UTC 2016 - tchvatal@suse.com
- Reduce the conditions a bit and sort with spec-cleaner
- Remove condition for old sle10 ppc machines
-------------------------------------------------------------------
Wed May 18 19:43:17 UTC 2016 - idonmez@suse.com

View File

@ -16,11 +16,9 @@
#
# Simplify building on RH for Application:Geo (SR#212812).
%define pname sqlite3
%define oname sqlite
%define tarversion 3130000
Name: %{pname}
Name: sqlite3
Version: 3.13.0
Release: 0
Summary: Embeddable SQL Database Engine
@ -34,22 +32,14 @@ Patch1: sqlite-fts5-link.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: libsqlite3-0 = %{version}
Provides: %{oname} = %{version}
Obsoletes: %{oname} < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version:1}
BuildRequires: update-desktop-files
%endif
# bug437293
%ifarch ppc64
Obsoletes: sqlite-64bit < %{version}
Provides: sqlite-64bit = %{version}
%endif
#
%description
SQLite is a C library that implements an embeddable SQL database
@ -105,7 +95,7 @@ application which supports the Qt database plug-ins.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Group: Documentation/Other
%if 0%{?suse_version} >= 1130
BuildArch: noarch
%endif
@ -123,7 +113,7 @@ rm -v sqlite-doc-%{tarversion}/releaselog/current.html
ln -sv `echo %{version} | sed "s/\./_/g"`.html sqlite-doc-%{tarversion}/releaselog/current.html
%build
autoreconf -fi
autoreconf -fiv
export CFLAGS="%{optflags} \
-DSQLITE_ENABLE_API_ARMOR \
-DSQLITE_ENABLE_COLUMN_METADATA \
@ -144,11 +134,12 @@ export CFLAGS="%{optflags} \
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libsqlite3-0 -p /sbin/ldconfig
%postun -n libsqlite3-0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/sqlite3