diff --git a/libconfig-1.7.3.tar.gz b/libconfig-1.7.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..424e971d6aca7a414b8413524a632ec916c83cdb Binary files /dev/null and b/libconfig-1.7.3.tar.gz differ diff --git a/libconfig.spec b/libconfig.spec new file mode 100644 index 0000000000000000000000000000000000000000..64b7a7a103b99af341cdf0851397158df041b724 --- /dev/null +++ b/libconfig.spec @@ -0,0 +1,79 @@ +%define anolis_release 1 +%bcond_without check + +Name: libconfig +Summary: C/C++ configuration file library +Version: 1.7.3 +Release: %{anolis_release}%{?dist} +License: LGPLv2+ +URL: http://www.hyperrealm.com/libconfig/ +Source0: https://hyperrealm.github.io/%name/dist/%name-%version.tar.gz + +BuildRequires: gcc, gcc-c++ +BuildRequires: texinfo +BuildRequires: bison, flex +BuildRequires: make + +%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 +Requires: %{name}%{?_isa} = %{version}-%{release} + +%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-silent-rules \ + --disable-static + +make %{?_smp_mflags} + + +%install +%make_install +rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la +rm -rf $RPM_BUILD_ROOT%{_infodir}/dir + + +%if %{with check} +%check +make check +%endif + + +%ldconfig_scriptlets + +%files +%license COPYING.LIB +%doc AUTHORS ChangeLog README +%{_libdir}/libconfig*.so.11* + + +%files devel +%{_includedir}/libconfig* +%{_libdir}/cmake/%{name} +%{_libdir}/cmake/%{name}++ +%{_libdir}/libconfig*.so +%{_libdir}/pkgconfig/libconfig*.pc +%{_infodir}/libconfig.info* + + +%changelog +* Thu Apr 21 2022 mgb01105731 - 1.7.3-1 +- Init from upstream version 1.7.3 +