diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ebc9c2e --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +confuse-2.5.tar.gz +confuse-2.6.tar.gz +/confuse-2.7.tar.gz +/confuse-3.0.tar.gz +/confuse-3.1.tar.gz +/confuse-3.2.tar.gz +/confuse-3.2.1.tar.gz +/confuse-3.2.2.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index 8fe692c..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: libconfuse -# $Id$ -NAME := libconfuse -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/libconfuse.spec b/libconfuse.spec new file mode 100644 index 0000000..dada67c --- /dev/null +++ b/libconfuse.spec @@ -0,0 +1,169 @@ +Name: libconfuse +Version: 3.2.2 +Release: 3%{?dist} +Summary: A configuration file parser library + +License: ISC +URL: https://github.com/martinh/libconfuse +Source0: https://github.com/martinh/libconfuse/releases/download/v%{version}/confuse-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: check-devel, pkgconfig +BuildRequires: perl-interpreter + +%description +libConfuse is a configuration file parser library, licensed under +the terms of the ISC license, and written in C. It supports +sections and (lists of) values (strings, integers, floats, +booleans or other sections), as well as some other features (such +as single/double-quoted strings, environment variable expansion, +functions and nested include statements). It makes it very +easy to add configuration file capability to a program using +a simple API. + +The goal of libConfuse is not to be the configuration file parser +library with a gazillion of features. Instead, it aims to be +easy to use and quick to integrate with your code. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Development files for %{name}. + + +%prep +%setup -q -n confuse-%{version} +perl -pi.orig -e 's|confuse.h|../src/confuse.h|g' tests/check_confuse.c + +%build +%configure --enable-shared --disable-static +make %{?_smp_mflags} AM_CFLAGS="-Wall -Wextra" + +%check +make check + +%install +make install DESTDIR=$RPM_BUILD_ROOT +# Nuke libtool archive(s) +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +# Install man pages +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/ +cp -p doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3/ +# Extract the example sources +mkdir -p ex2/examples +cp -p examples/{ftpconf.c,ftp.conf,simple.c,simple.conf,reread.c,reread.conf} \ + ex2/examples/ + +#Remove spurious docs +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/confuse + +%find_lang confuse + + +%ldconfig_scriptlets + + +%files -f confuse.lang +%license LICENSE +%doc AUTHORS README.md +%doc doc/html +%{_libdir}/libconfuse.so.* +%{_mandir}/man?/*.* + +%files devel +%doc ex2/examples +%{_includedir}/confuse.h +%{_libdir}/libconfuse.so +%{_libdir}/pkgconfig/libconfuse.pc + + +%changelog +* Thu Jul 25 2019 Fedora Release Engineering - 3.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 3.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Nov 13 2018 Gwyn Ciesla - 3.2.2-1 +- 3.2.2, fix for CVE-2018-14447. + +* Fri Jul 13 2018 Fedora Release Engineering - 3.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 3.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Aug 18 2017 Gwyn Ciesla - 3.2.1-1 +- 3.2.1, BZ 1482712 + +* Thu Aug 03 2017 Fedora Release Engineering - 3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 05 2017 Gwyn Ciesla - 3.2-1 +- 3.2, BZ 1458525 + +* Thu May 25 2017 Gwyn Ciesla - 3.1-1 +- 3.1, BZ 1455367 + +* Fri Feb 10 2017 Fedora Release Engineering - 3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jun 14 2016 Jon Ciesla - 3.0-1 +- New upstream URL, latest release. + +* Thu Feb 04 2016 Fedora Release Engineering - 2.7-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 2.7-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 2.7-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 2.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 2.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 2.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 2.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 2.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jan 26 2011 Jon Ciesla - 2.7-1 +- New upstream release + +* Fri Jul 24 2009 Fedora Release Engineering - 2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 04 2008 Jarod Wilson 2.6-1 +- New upstream release +- Switch from LGPL to ISC license +- Build fix from Hans Ulrich Niedermann + +* Tue Sep 05 2006 Jarod Wilson 2.5-3 +- Rebuild for new glibc + +* Wed Aug 16 2006 Jarod Wilson 2.5-2 +- Put -devel package in the right Group +- Add defattr for -devel files + +* Wed Aug 16 2006 Jarod Wilson 2.5-1 +- Initial build diff --git a/sources b/sources index e69de29..b8c8a43 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (confuse-3.2.2.tar.gz) = 2415aae20135331e577e727c152eaad129d591155e6fcdd64720f81ad74f4c29a13d6e401deaa90f313dc070e44df2b6d1e7146f21aef41dc206f86bd47e95ed