This commit is contained in:
parent
7068f9f625
commit
8c6594bf36
13
proj.spec
13
proj.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user