cvs-import
This commit is contained in:
parent
fc05681c3b
commit
07a17f5987
@ -0,0 +1 @@
|
||||
libconfig-1.2.tar.gz
|
83
libconfig.spec
Normal file
83
libconfig.spec
Normal file
@ -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 <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
|
Loading…
Reference in New Issue
Block a user