diff --git a/libconfig.spec b/libconfig.spec index e994c1f..df89961 100644 --- a/libconfig.spec +++ b/libconfig.spec @@ -1,16 +1,15 @@ -Name: libconfig -Summary: C/C++ configuration file library -Version: 1.5 -Release: 10%{?dist} -License: LGPLv2+ -URL: http://www.hyperrealm.com/libconfig/ -Source0:http://www.hyperrealm.com/libconfig/libconfig-%{version}.tar.gz +Name: libconfig +Summary: C/C++ configuration file library +Version: 1.5 +Release: 12%{?dist} +License: LGPLv2+ +URL: http://www.hyperrealm.com/libconfig/ +Source0: http://www.hyperrealm.com/libconfig/libconfig-%{version}.tar.gz # Generated from libconfig 1.5 on Fedora 23 x86_64 (2015-12-17) -Source1: libconfig.pdf -BuildRequires: gcc gcc-c++ -BuildRequires: glibc-common -BuildRequires: texinfo-tex, tex(ecbx1095.tfm), tex(ecrm1095.tfm), tex(cm-super-t1.enc) -BuildRequires: bison, flex +Source1: libconfig.pdf +BuildRequires: gcc, gcc-c++ +BuildRequires: texinfo-tex, tex(ecbx1095.tfm), tex(ecrm1095.tfm), tex(cm-super-t1.enc) +BuildRequires: bison, flex %description Libconfig is a simple library for manipulating structured configuration @@ -18,27 +17,29 @@ files. This file format is more compact and more readable than XML. And unlike XML, it is type-aware, so it is not necessary to do string parsing in application code. + %package devel -Summary: Development files for libconfig -Requires: %{name} = %{version}-%{release} -Requires: pkgconfig -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info +Summary: Development files for libconfig +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig %description devel Development libraries and headers for developing software against libconfig. + %prep %setup -q iconv -f iso-8859-1 -t utf-8 -o AUTHORS{.utf8,} mv AUTHORS{.utf8,} + %build %configure --disable-static make %{?_smp_mflags} make pdf + %install make DESTDIR=$RPM_BUILD_ROOT install rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la @@ -47,24 +48,17 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}/dir rm -rf doc/libconfig.pdf install -p %{SOURCE1} doc/ + %check ./tests/libconfig_tests -%ldconfig_scriptlets - -%post devel -/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : - -%preun devel -if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : -fi %files %license COPYING.LIB %doc AUTHORS ChangeLog README %{_libdir}/libconfig*.so.* + %files devel %doc doc/libconfig.pdf %{_includedir}/libconfig* @@ -72,7 +66,11 @@ fi %{_libdir}/pkgconfig/libconfig*.pc %{_infodir}/libconfig.info* + %changelog +* Mon Jul 23 2018 Pavel Raiskup - 1.5-12 +- cleanup + * Sun Jul 22 2018 Peter Robinson 1.5-11 - Add missing gcc-c++ dep, spec cleanups