From 5edde7b7e4cd1824cc432258bad9dbbc3da8365f137aea4d093075fc92430587 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Sat, 9 May 2015 09:07:00 +0000 Subject: [PATCH] Accepting request 306063 from home:pluskalm:branches:Application:Geo - Do not build or ship static libraries and .la files - Remove useless conditions OBS-URL: https://build.opensuse.org/request/show/306063 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/geotiff?expand=0&rev=3 --- geotiff.changes | 6 ++++++ geotiff.spec | 19 +++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/geotiff.changes b/geotiff.changes index 37b2e4a..628bd0a 100644 --- a/geotiff.changes +++ b/geotiff.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 9 09:05:53 UTC 2015 - mpluskal@suse.com + +- Do not build or ship static libraries and .la files +- Remove useless conditions + ------------------------------------------------------------------- Sat Jan 31 17:38:30 UTC 2015 - mpluskal@suse.com diff --git a/geotiff.spec b/geotiff.spec index e2d08a9..89715b5 100644 --- a/geotiff.spec +++ b/geotiff.spec @@ -1,7 +1,7 @@ # # spec file for package geotiff # -# Copyright (c) 2015 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 @@ -26,14 +26,12 @@ Url: http://trac.osgeo.org/geotiff Source0: ftp://ftp.remotesensing.org/pub/%{name}/lib%{name}/lib%{name}-%{version}.tar.gz BuildRequires: doxygen BuildRequires: gcc-c++ +BuildRequires: graphviz BuildRequires: libjpeg-devel BuildRequires: libproj-devel BuildRequires: libtiff-devel +BuildRequires: pkg-config BuildRequires: zlib-devel -%if 0%{?suse_version} -BuildRequires: pkg-config -BuildRequires: graphviz -%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -97,17 +95,13 @@ export CXXFLAGS="%{optflags} $CXXFLAGS -g -fstack-protector -fno-strict-aliasing --with-jpeg \ --with-zip \ --with-pic \ + --enable-static=no \ --enable-debug=yes make %{?_smp_mflags} %install -%if 0%{?suse_version} make DESTDIR=%{buildroot} install %{?_smp_mflags} INSTALL="install -p" -%else -%makeinstall INSTALL="%{__install} -p" \ - includedir=%{buildroot}/%{_includedir}/lib%{name} -%endif # install pkgconfig file cat > libgeotiff.pc <> %{buildroot}%{_datadir}/epsg_csv/codes.csv +# do not ship la files +find %{buildroot}%{_libdir} -name "*.la" -delete -print + %post -n lib%{name}2 -p /sbin/ldconfig %postun -n lib%{name}2 -p /sbin/ldconfig @@ -156,8 +153,6 @@ echo >> %{buildroot}%{_datadir}/epsg_csv/codes.csv %dir %{_includedir}/lib%{name} %{_includedir}/lib%{name}/*.h %{_includedir}/lib%{name}/*.inc -%{_libdir}/lib%{name}.a -%{_libdir}/lib%{name}.la %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/lib%{name}.pc