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