Accepting request 568875 from home:jengelh:branches:graphics

- Remove %__-type macro indirections. Fix SRPM group.
- Use %_smp_mflags for parallel build.
- Drop pointless --with-pic (no effect since --disable-static).

OBS-URL: https://build.opensuse.org/request/show/568875
OBS-URL: https://build.opensuse.org/package/show/graphics/libexif?expand=0&rev=32
This commit is contained in:
Ismail Dönmez 2018-01-24 13:10:08 +00:00 committed by Git OBS Bridge
parent 2923373f20
commit bfddd3280c
2 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 24 11:36:21 UTC 2018 - jengelh@inai.de
- Remove %__-type macro indirections. Fix SRPM group.
- Use %_smp_mflags for parallel build.
- Drop pointless --with-pic (no effect since --disable-static).
-------------------------------------------------------------------
Wed Jan 17 09:32:25 UTC 2018 - kbabioch@suse.com

View File

@ -17,27 +17,26 @@
Name: libexif
BuildRequires: doxygen
BuildRequires: pkg-config
Version: 0.6.21
Release: 0
Url: http://libexif.sourceforge.net
Summary: An EXIF Tag Parsing Library for Digital Cameras
License: LGPL-2.1+
Group: System/Libraries
Version: 0.6.21
Release: 0
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: https://downloads.sourceforge.net/project/libexif/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch0: libexif-build-date.patch
Patch1: CVE-2016-6328.patch
Patch2: CVE-2017-7544.patch
BuildRequires: doxygen
BuildRequires: pkg-config
%define pname libexif12
%define debug_package_requires %{pname} = %{version}-%{release}
%package -n %{pname}
Summary: An EXIF Tag Parsing Library for Digital Cameras
Group: System/Libraries
Provides: libexif = %{version}
@ -66,12 +65,13 @@ digital cameras.
%patch0 -p1
%patch1 -p1
%patch2 -p0
%build
export CFLAGS="%optflags $(getconf LFS_CFLAGS)"
%configure --with-pic \
%configure \
--disable-static \
--with-doc-dir=%{_docdir}/%{name}
%{__make} %{?jobs:-j%jobs}
make %{?_smp_mflags}
%check
make check
@ -79,7 +79,7 @@ make check
%install
%makeinstall
%find_lang %{name}-12
%{__rm} -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}/%{_libdir}/*.la
%post -n %{pname} -p /sbin/ldconfig