SHA256
1
0
forked from pool/proj
Martin Pluskal 2019-03-25 09:27:21 +00:00 committed by Git OBS Bridge
parent 7068f9f625
commit 8c6594bf36

View File

@ -32,9 +32,11 @@ BuildRequires: gcc-c++
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: sqlite3
BuildRequires: unzip
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(sqlite3) >= 3.7
Provides: libproj = %{version}
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(gtest)
%endif
%description
This package offers the commandline tools for performing respective
@ -68,8 +70,10 @@ unzip -o %{SOURCE1}
%build
%configure \
--disable-static \
--with-external-gtest
%if 0%{?suse_version} > 1500
--with-external-gtest \
%endif
--disable-static
make %{?_smp_mflags}
%install
@ -77,7 +81,10 @@ make %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%check
# Tests dont work on i586 and noone cares
%ifnarch %{ix86}
make %{?_smp_mflags} check
%endif
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig