commit 2c13ca66214b352bbb921a18635d8de40817fdd0 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:55:16 2019 -0400 Package init diff --git a/add-to-strbuf_append_string.patch b/add-to-strbuf_append_string.patch new file mode 100644 index 0000000..ae97c5b --- /dev/null +++ b/add-to-strbuf_append_string.patch @@ -0,0 +1,21 @@ +From 8e2d7fd1824aa5b864eccbe53dbf54dd43542511 Mon Sep 17 00:00:00 2001 +From: sunguoshuai +Date: Fri, 29 Mar 2019 04:33:45 -0400 +Subject: [PATCH] libconfig: add to strbuf_append_string + +reason: add to strbuf_append_string + +diff --git a/lib/strbuf.h b/lib/strbuf.h +index c27b21c..ab03a75 100644 +--- a/lib/strbuf.h ++++ b/lib/strbuf.h +@@ -33,7 +33,7 @@ typedef struct + size_t capacity; + } strbuf_t; + +-void strbuf_append_string(strbuf_t *buf, const char *s); ++__attribute__ ((visibility("hidden"))) void strbuf_append_string(strbuf_t *buf, const char *s); + + void strbuf_append_char(strbuf_t *buf, char c); + + diff --git a/libconfig-1.7.2.tar.gz b/libconfig-1.7.2.tar.gz new file mode 100644 index 0000000..7baedb9 Binary files /dev/null and b/libconfig-1.7.2.tar.gz differ diff --git a/libconfig.pdf b/libconfig.pdf new file mode 100644 index 0000000..23e5032 Binary files /dev/null and b/libconfig.pdf differ diff --git a/libconfig.spec b/libconfig.spec new file mode 100644 index 0000000..ce34cf5 --- /dev/null +++ b/libconfig.spec @@ -0,0 +1,101 @@ +Name: libconfig +Version: 1.7.2 +Release: 8 +Summary: C/C++ Configuration File Library +License: LGPLv2+ +URL: http://www.hyperrealm.com/libconfig/libconfig.html +Source0: https://github.com/hyperrealm/libconfig/archive/%{name}-%{version}.tar.gz + +Source1: libconfig.pdf +Patch9000: add-to-strbuf_append_string.patch + +BuildRequires: git gcc gcc-c++ bison flex +BuildRequires: texinfo-tex tex(ecbx1095.tfm) tex(ecrm1095.tfm) tex(cm-super-t1.enc) + +%description +Libconfig is a simple library for processing structured configuration files. + +%package devel +Summary: Files for %{name} development +Requires: %{name} = %{version}-%{release} + +Provides: libconfig-static +Obsoletes: libconfig-static + +%description devel +Files for %{name} development + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit +cp %{SOURCE1} . + +%build +%configure +%make_build + +%install +%make_install +rm -rf %{buildroot}%{_infodir}/dir + +%check +make check + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%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}* +%{_libdir}/%{name}*.so +%{_libdir}/pkgconfig/%{name}*.pc +%{_infodir}/libconfig.info* +%{_libdir}/*.a +%{_libdir}/*.la + +%changelog +* Tue Sep 24 2019 shenyangyang - 1.7.2-8 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:revise help package and subpackage + +* Wed Aug 21 2019 openEuler Buildteam - 1.7.2-7 +- Type:NA +- ID:NA +- SUG:NA +- DESC: rewrite spec file + +* Tue Aug 20 2019 fangyufa - 1..7.2-6 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: modify name of patch + +* Fri Aug 09 2019 fangyufa - 1..7.2-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: add head info of patch + +* Wed Jul 31 2019 zhuguodong - 1.7.2-4 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: openEuler Debranding + +* Fri Mar 29 2019 wangye - 1.7.2-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add to strbuf_append_string + +* Thu Jul 12 2018 zhuguodong - 1.7.2-2 +- Package Initialization