cleanup spec

(cherry picked from commit 0d598e3cb2c9e8cd1d1e2f7f207101471400d8e4)
This commit is contained in:
Funda Wang 2024-09-03 15:51:49 +08:00 committed by openeuler-sync-bot
parent fa20db2537
commit a9cd60e150

View File

@ -1,8 +1,8 @@
Name: libconfig
Version: 1.7.3
Release: 3
Release: 4
Summary: C/C++ Configuration File Library
License: LGPLv2+
License: LGPL-2.1-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2
URL: http://www.hyperrealm.com/libconfig/libconfig.html
# This tarball comes from libconfig-1.7.2/docs/dist/libconfig-1.7.2.tar.gz
# in archive(https://github.com/hyperrealm/libconfig/archive/v1.7.2.tar.gz)
@ -17,6 +17,7 @@ Patch6002: backport-Added-unit-test-for-config_read.patch
Patch9000: add-to-strbuf_append_string.patch
BuildRequires: gcc gcc-c++ bison flex
BuildRequires: cmake-rpm-macros
BuildRequires: texinfo-tex tex(ecbx1095.tfm) tex(ecrm1095.tfm) tex(cm-super-t1.enc)
%description
@ -26,8 +27,8 @@ Libconfig is a simple library for processing structured configuration files.
Summary: Files for %{name} development
Requires: %{name} = %{version}-%{release}
Provides: libconfig-static
Obsoletes: libconfig-static
Provides: libconfig-static = %{version}-%{release}
Obsoletes: libconfig-static < %{version}-%{release}
%description devel
Files for %{name} development
@ -42,22 +43,18 @@ cp %{SOURCE1} .
%install
%make_install
%delete_la
rm -rf %{buildroot}%{_infodir}/dir
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%make_build check
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README
%license COPYING.LIB
%{_libdir}/%{name}*.so.*
%files devel
%defattr(-,root,root)
%doc libconfig.pdf
%{_includedir}/%{name}*
%{_libdir}/cmake/%{name}*
@ -65,9 +62,11 @@ make check
%{_libdir}/pkgconfig/%{name}*.pc
%{_infodir}/libconfig.info*
%{_libdir}/*.a
%{_libdir}/*.la
%changelog
* Tue Sep 03 2024 Funda Wang <fundawang@yeah.net> - 1.7.3-4
- cleanup spec
* Wed Mar 27 2024 gengqihu <gengqihu2@h-partners.com> - 1.7.3-3
- Type:bugfix
- ID:NA