cleanup spec file
Version: 1.5-12
This commit is contained in:
parent
608f59068b
commit
5ce723e4bd
@ -1,14 +1,13 @@
|
|||||||
Name: libconfig
|
Name: libconfig
|
||||||
Summary: C/C++ configuration file library
|
Summary: C/C++ configuration file library
|
||||||
Version: 1.5
|
Version: 1.5
|
||||||
Release: 10%{?dist}
|
Release: 12%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.hyperrealm.com/libconfig/
|
URL: http://www.hyperrealm.com/libconfig/
|
||||||
Source0: http://www.hyperrealm.com/libconfig/libconfig-%{version}.tar.gz
|
Source0: http://www.hyperrealm.com/libconfig/libconfig-%{version}.tar.gz
|
||||||
# Generated from libconfig 1.5 on Fedora 23 x86_64 (2015-12-17)
|
# Generated from libconfig 1.5 on Fedora 23 x86_64 (2015-12-17)
|
||||||
Source1: libconfig.pdf
|
Source1: libconfig.pdf
|
||||||
BuildRequires: gcc gcc-c++
|
BuildRequires: gcc, gcc-c++
|
||||||
BuildRequires: glibc-common
|
|
||||||
BuildRequires: texinfo-tex, tex(ecbx1095.tfm), tex(ecrm1095.tfm), tex(cm-super-t1.enc)
|
BuildRequires: texinfo-tex, tex(ecbx1095.tfm), tex(ecrm1095.tfm), tex(cm-super-t1.enc)
|
||||||
BuildRequires: bison, flex
|
BuildRequires: bison, flex
|
||||||
|
|
||||||
@ -18,27 +17,29 @@ 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
|
unlike XML, it is type-aware, so it is not necessary to do string parsing
|
||||||
in application code.
|
in application code.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for libconfig
|
Summary: Development files for libconfig
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development libraries and headers for developing software against
|
Development libraries and headers for developing software against
|
||||||
libconfig.
|
libconfig.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
iconv -f iso-8859-1 -t utf-8 -o AUTHORS{.utf8,}
|
iconv -f iso-8859-1 -t utf-8 -o AUTHORS{.utf8,}
|
||||||
mv AUTHORS{.utf8,}
|
mv AUTHORS{.utf8,}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
make pdf
|
make pdf
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
@ -47,24 +48,17 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
|
|||||||
rm -rf doc/libconfig.pdf
|
rm -rf doc/libconfig.pdf
|
||||||
install -p %{SOURCE1} doc/
|
install -p %{SOURCE1} doc/
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./tests/libconfig_tests
|
./tests/libconfig_tests
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
|
||||||
|
|
||||||
%post devel
|
|
||||||
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
||||||
|
|
||||||
%preun devel
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING.LIB
|
%license COPYING.LIB
|
||||||
%doc AUTHORS ChangeLog README
|
%doc AUTHORS ChangeLog README
|
||||||
%{_libdir}/libconfig*.so.*
|
%{_libdir}/libconfig*.so.*
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc doc/libconfig.pdf
|
%doc doc/libconfig.pdf
|
||||||
%{_includedir}/libconfig*
|
%{_includedir}/libconfig*
|
||||||
@ -72,7 +66,11 @@ fi
|
|||||||
%{_libdir}/pkgconfig/libconfig*.pc
|
%{_libdir}/pkgconfig/libconfig*.pc
|
||||||
%{_infodir}/libconfig.info*
|
%{_infodir}/libconfig.info*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 23 2018 Pavel Raiskup <praiskup@redhat.com> - 1.5-12
|
||||||
|
- cleanup
|
||||||
|
|
||||||
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-11
|
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-11
|
||||||
- Add missing gcc-c++ dep, spec cleanups
|
- Add missing gcc-c++ dep, spec cleanups
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user