diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ed743c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/libconfig-1.7.2.pdf +SOURCES/libconfig-1.7.2.tar.gz diff --git a/.libconfig.metadata b/.libconfig.metadata new file mode 100644 index 0000000..f302fbe --- /dev/null +++ b/.libconfig.metadata @@ -0,0 +1,2 @@ +0a844d17022a58df84d93d9fe4de90b1c9ffb197 SOURCES/libconfig-1.7.2.pdf +1da1e7f4e0e376582a8414d2be1acc9dbf6649b5 SOURCES/libconfig-1.7.2.tar.gz diff --git a/SOURCES/generate-pdf.sh b/SOURCES/generate-pdf.sh new file mode 100755 index 0000000..38df6b7 --- /dev/null +++ b/SOURCES/generate-pdf.sh @@ -0,0 +1,30 @@ +#! /bin/sh + +# This script builds the PDF version of the libconfig documentation. +# Inspired by the PostgreSQL package. + +set -e + +# Pass package version and name optionally as argument +VERSION=$1 +PKGNAME=${2-libconfig} + +test -z "$VERSION" && VERSION=`awk '/^Version:/ { print $2; }' "$PKGNAME".spec` + +TARGETFILE=`readlink -f "$PKGNAME-$VERSION.pdf"` +test -f "$TARGETFILE" && echo "$TARGETFILE exists" && exit 1 + +echo Building $TARGETFILE ... + +tar xf "$PKGNAME"-$VERSION.tar.* +cd "$PKGNAME"-$VERSION + +# Apply any patches that affect the PDF documentation +# patch -p1 < ../xxx.patch + +# Build the PDF docs +./configure >/dev/null +make pdf +mv -f doc/libconfig.pdf "$TARGETFILE" + +exit 0 diff --git a/SPECS/libconfig.spec b/SPECS/libconfig.spec new file mode 100644 index 0000000..a450e80 --- /dev/null +++ b/SPECS/libconfig.spec @@ -0,0 +1,229 @@ +%bcond_without check + +Name: libconfig +Summary: C/C++ configuration file library +Version: 1.7.2 +Release: 9%{?dist} +License: LGPLv2+ +URL: http://www.hyperrealm.com/libconfig/ +Source0: https://hyperrealm.github.io/%name/dist/%name-%version.tar.gz +# Generated from libconfig 1.7.2 on Fedora 28 x86_64 (2018-07-18) +Source1: libconfig-%version.pdf +# Helper script to generate Source1 (locally) +Source2: generate-pdf.sh + +BuildRequires: gcc, gcc-c++ +BuildRequires: texinfo +BuildRequires: bison, flex +BuildRequires: make + +%description +Libconfig is a simple library for manipulating structured configuration +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}%{?_isa} = %{version}-%{release} + +%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-silent-rules \ + --disable-static + +make %{?_smp_mflags} + + +%install +%make_install +rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la +rm -rf $RPM_BUILD_ROOT%{_infodir}/dir +install -p %{SOURCE1} doc/ + + +%if %{with check} +%check +make check +%endif + + +%ldconfig_scriptlets + +%files +%license COPYING.LIB +%doc AUTHORS ChangeLog README +%{_libdir}/libconfig*.so.11* + + +%files devel +%doc doc/libconfig-%version.pdf +%{_includedir}/libconfig* +%{_libdir}/cmake/%{name} +%{_libdir}/cmake/%{name}++ +%{_libdir}/libconfig*.so +%{_libdir}/pkgconfig/libconfig*.pc +%{_infodir}/libconfig.info* + + +%changelog +* Mon Aug 09 2021 Mohan Boddu - 1.7.2-9 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.7.2-8 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.7.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.7.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.7.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.7.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.7.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 24 2018 Rex Dieter - 1.7.2-2 +- %%files: track library sonames, so bumps aren't a surprise +- %%build: --disable-silent-rules +- -devel: tighten subpkg dep with %%_isa, drop hard-coded pkgconfig dep +- use %%make_build %%make_install %%ldconfig_scriptlets + +* Mon Jul 23 2018 Pavel Raiskup - 1.7.2-1 +- new upstream release (rhbz#1602423) + +* 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 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 1.5-8 +- Switch to %%ldconfig_scriptlets + +* Thu Aug 03 2017 Fedora Release Engineering - 1.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Dec 17 2015 Tom Callaway - 1.5-3 +- fix pdf file by having a pre-generated pdf as source1 (bz 1292449) + +* Wed Jun 17 2015 Fedora Release Engineering - 1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue May 19 2015 Tom Callaway - 1.5-1 +- update to 1.5 + +* Thu Apr 16 2015 Dominik Mierzejewski - 1.4.9-8 +- rebuilt for gcc-5.0.0-0.22.fc23 + +* Sun Aug 17 2014 Fedora Release Engineering - 1.4.9-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.4.9-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Sep 4 2013 Tom Callaway - 1.4.9-5 +- handle everything with doc + +* Sat Aug 03 2013 Fedora Release Engineering - 1.4.9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jun 21 2013 Pavel Raiskup - 1.4.9-3 +- enable simple upstream test-suite during check phase + +* Thu Feb 14 2013 Fedora Release Engineering - 1.4.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Oct 1 2012 Tom Callaway - 1.4.9-1 +- update to 1.4.9 + +* Thu Jul 19 2012 Fedora Release Engineering - 1.4.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.4.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Aug 12 2011 Tom Callaway - 1.4.8-1 +- update to 1.4.8 + +* Wed Mar 23 2011 Tom Callaway - 1.4.7-1 +- update to 1.4.7 + +* Tue Mar 1 2011 Stanislav Ochotnicky - 1.4.6-1 +- Update to 1.4.6 +- Install libconfig_tests +- Fix rpmlint warnings + +* Mon Feb 07 2011 Fedora Release Engineering - 1.4.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed May 5 2010 Tom "spot" Callaway - 1.4.5-1 +- update to 1.4.5 + +* Wed Aug 19 2009 Tom "spot" Callaway - 1.3.2-1 +- update to 1.3.2 + +* Fri Jul 24 2009 Fedora Release Engineering - 1.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Dec 24 2008 Tom "spot" Callaway - 1.3.1-2 +- prevent multilib conflicts with the generated pdf + +* Fri Sep 12 2008 Tom "spot" Callaway - 1.3.1-1 +- update to 1.3.1 + +* Tue Feb 19 2008 Fedora Release Engineering - 1.2.1-2 +- Autorebuild for GCC 4.3 + +* Tue Feb 19 2008 Tom "spot" Callaway 1.2.1-1 +- bump to 1.2.1 + +* Fri Nov 30 2007 Tom "spot" Callaway 1.2-4 +- nuke %%{_infodir}/dir, we handle it in %%post + +* Fri Nov 30 2007 Tom "spot" Callaway 1.2-3 +- move all docs to devel +- move scriptlets around to match +- move requires around to match + +* Fri Nov 30 2007 Tom "spot" Callaway 1.2-2 +- BR: texinfo-tex (not Requires) + +* Fri Nov 30 2007 Tom "spot" Callaway 1.2-1 +- Initial package for Fedora