!7 [sync] PR-5: Fix not striped problem and remove rpath
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
727ef4fb62
@ -1,14 +1,12 @@
|
|||||||
#%global debug_package %{nil}
|
|
||||||
|
|
||||||
Name: iniparser
|
Name: iniparser
|
||||||
Version: 4.1
|
Version: 4.1
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: ini file parser
|
Summary: ini file parser
|
||||||
License: MIT and Zlib
|
License: MIT and Zlib
|
||||||
URL: https://github.com/ndevilla/iniparser
|
URL: https://github.com/ndevilla/iniparser
|
||||||
Source0: https://github.com/ndevilla/iniparser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/ndevilla/iniparser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc doxygen
|
BuildRequires: gcc doxygen chrpath
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This modules offers parsing of ini files from the C level. See a complete documentation in HTML format, from this directory open the file html/index.html with any HTML-capable browser.
|
This modules offers parsing of ini files from the C level. See a complete documentation in HTML format, from this directory open the file html/index.html with any HTML-capable browser.
|
||||||
@ -17,6 +15,7 @@ This modules offers parsing of ini files from the C level. See a complete docume
|
|||||||
%setup -q -n %{name}-%{version}/
|
%setup -q -n %{name}-%{version}/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="${RPM_OPT_FLAGS}"
|
||||||
%make_build
|
%make_build
|
||||||
cd doc;make
|
cd doc;make
|
||||||
|
|
||||||
@ -32,11 +31,16 @@ install -d %{buildroot}/%{_docdir}/%{name}
|
|||||||
cp -r example %{buildroot}/%{_docdir}/%{name}
|
cp -r example %{buildroot}/%{_docdir}/%{name}
|
||||||
cp -r html %{buildroot}/%{_docdir}/%{name}
|
cp -r html %{buildroot}/%{_docdir}/%{name}
|
||||||
|
|
||||||
|
chrpath -d %{buildroot}/%{_libdir}/libiniparser.so.1
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%preun
|
%preun
|
||||||
%post
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
%postun
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
@ -46,8 +50,13 @@ cp -r html %{buildroot}/%{_docdir}/%{name}
|
|||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*
|
%{_libdir}/*
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 22 2022 yaoxin <yaoxin20@h-partners.com> - 4.1-4
|
||||||
|
- Fix not striped problem
|
||||||
|
- Remove rpath
|
||||||
|
|
||||||
* Tue Jan 19 2021 Ge Wang <wangge20@huawei.com> - 4.1-3
|
* Tue Jan 19 2021 Ge Wang <wangge20@huawei.com> - 4.1-3
|
||||||
- Modify license information.
|
- Modify license information.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user