94 lines
2.4 KiB
RPMSpec
94 lines
2.4 KiB
RPMSpec
Name: libconfig
|
|
Summary: C/C++ configuration file library
|
|
Version: 1.2.1
|
|
Release: 2%{?dist}
|
|
License: LGPLv2+
|
|
Group: System Environment/Libraries
|
|
Source0: http://www.hyperrealm.com/libconfig/libconfig-%{version}.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
|
|
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
%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
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-1
|
|
- bump to 1.2.1
|
|
|
|
* Fri Nov 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-4
|
|
- nuke %%{_infodir}/dir, we handle it in %%post
|
|
|
|
* Fri Nov 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> 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 <tcallawa@redhat.com> 1.2-2
|
|
- BR: texinfo-tex (not Requires)
|
|
|
|
* Fri Nov 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-1
|
|
- Initial package for Fedora
|