From 07a17f598760c83a3bd7582b49e5d46eaf841188 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Fri, 30 Nov 2007 15:51:49 +0000 Subject: [PATCH] cvs-import --- .cvsignore | 1 + libconfig.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 85 insertions(+) create mode 100644 libconfig.spec diff --git a/.cvsignore b/.cvsignore index e69de29..24fbe19 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libconfig-1.2.tar.gz diff --git a/libconfig.spec b/libconfig.spec new file mode 100644 index 0000000..94c4f88 --- /dev/null +++ b/libconfig.spec @@ -0,0 +1,83 @@ +Name: libconfig +Summary: C/C++ configuration file library +Version: 1.2 +Release: 3%{?dist} +License: LGPLv2+ +Group: System Environment/Libraries +Source0: http://www.hyperrealm.com/libconfig/libconfig-1.2.tar.gz +URL: http://www.hyperrealm.com/libconfig/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: texinfo-tex + +%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 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info + +%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 +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install install-pdf +rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%post devel +/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : + +%postun -p /sbin/ldconfig + +%preun devel +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : +fi + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING.LIB README +%{_libdir}/libconfig*.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/libconfig* +%{_libdir}/libconfig*.so +%{_libdir}/pkgconfig/libconfig*.pc +%{_defaultdocdir}/%{name}/ +%{_infodir}/libconfig.info* + +%changelog +* 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 diff --git a/sources b/sources index e69de29..52279e6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fa52507f0db285673f23b7193af4efd4 libconfig-1.2.tar.gz