12 Star 0 Fork 7

src-openEuler/iniparser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
iniparser.spec 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
wk333 提交于 2023-06-25 10:16 . Fix CVE-2023-33461
Name: iniparser
Version: 4.1
Release: 5
Summary: ini file parser
License: MIT and Zlib
URL: https://github.com/ndevilla/iniparser
Source0: https://github.com/ndevilla/iniparser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: CVE-2023-33461.patch
BuildRequires: gcc doxygen chrpath
%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.
%prep
%autosetup -n %{name}-%{version} -p1
%build
export CFLAGS="${RPM_OPT_FLAGS}"
%make_build
cd doc;make
%install
install -d %{buildroot}/%{_includedir}/%{name}
install -m 644 -t %{buildroot}%{_includedir}/%{name} src/dictionary.h src/iniparser.h
install -d %{buildroot}/%{_libdir}
install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.1
ln -s libiniparser.so.1 %{buildroot}%{_libdir}/libiniparser.so
install -d %{buildroot}/%{_docdir}/%{name}
cp -r example %{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
%preun
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%check
%files
%license LICENSE
%doc README.md INSTALL AUTHORS FAQ-en.md FAQ-zhcn.md
%{_includedir}/*
%{_libdir}/*
%{_docdir}/*
%config(noreplace) /etc/ld.so.conf.d/*
%changelog
* Sun Jun 25 2023 wangkai <13474090681@163.com> - 4.1-5
- Fix CVE-2023-33461
* 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
- Modify license information.
* Tue Oct 13 2020 liqingqing_1229 <liqingqing3@huawei.com>
- update source0
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/iniparser.git
git@gitee.com:src-openeuler/iniparser.git
src-openeuler
iniparser
iniparser
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385