Spec cleanup: Use make_build, make_install, __cc, and __cxx macros

This commit is contained in:
Tom Stellard 2020-01-18 02:50:22 +00:00
parent e6426d8a3b
commit 9cac7dc72f

View File

@ -2,7 +2,7 @@
Name: libplist
Version: 2.1.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Library for manipulating Apple Binary and XML Property Lists
License: LGPLv2+
@ -50,17 +50,17 @@ Requires: python3
NOCONFIGURE=1 ./autogen.sh
%build
export CC=gcc
export CXX=g++
export CC=%{__cc}
export CXX=%{__cxx}
export CFLAGS='%optflags -fno-strict-aliasing'
export CXXFLAGS='%optflags -fno-strict-aliasing'
export PYTHON='python3'
%configure --disable-static
make %{?_smp_mflags} V=1
%make_build V=1
%install
make install DESTDIR=%{buildroot}
%make_install
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
@ -91,6 +91,9 @@ make check
%{python3_sitearch}/plist*
%changelog
* Sat Jan 18 2020 Tom Stellard <tstellar@redhat.com> - 2.1.0-2
- Spec cleanup: Use make_build, make_install, __cc, and __cxx macros
* Sat Nov 23 2019 Bastien Nocera <bnocera@redhat.com> - 2.1.0-1
+ libplist-2.1.0-1
- Update to 2.1.0