From 4b0bc3a062b65c3b94bc504b73d0a5342666de2f Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Wed, 16 Aug 2006 20:10:43 +0000 Subject: [PATCH] auto-import libconfuse-2.5-2.fc6 on branch devel from libconfuse-2.5-2.fc6.src.rpm --- .cvsignore | 1 + libconfuse.spec | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 97 insertions(+) create mode 100644 libconfuse.spec diff --git a/.cvsignore b/.cvsignore index e69de29..f462e2f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +confuse-2.5.tar.gz diff --git a/libconfuse.spec b/libconfuse.spec new file mode 100644 index 0000000..e96bd95 --- /dev/null +++ b/libconfuse.spec @@ -0,0 +1,95 @@ +Name: libconfuse +Version: 2.5 +Release: 2%{?dist} +Summary: A configuration file parser library + +Group: System Environment/Libraries +License: LGPL +URL: http://www.nongnu.org/confuse/ +Source0: http://download.savannah.nongnu.org/releases/confuse/confuse-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: check-devel, pkgconfig + +%description +libConfuse is a configuration file parser library, licensed +under the terms of the LGPL, 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} +Group: Development/Libraries +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} + +%check +make check + +%install +rm -rf $RPM_BUILD_ROOT +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/ + +%find_lang confuse + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files -f confuse.lang +%defattr(-,root,root,-) +%doc ABOUT-NLS AUTHORS COPYING NEWS README +%doc doc/html +%{_libdir}/libconfuse.so.* +%{_mandir}/man?/*.* + +%files devel +%defattr(-,root,root,-) +%doc ex2/examples +%{_includedir}/confuse.h +%{_libdir}/libconfuse.so +%{_libdir}/pkgconfig/libconfuse.pc + + +%changelog +* 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..ca0cb61 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4bc9b73d77ebd571ac834619ce0b3582 confuse-2.5.tar.gz