popt/popt.spec

105 lines
3.0 KiB
RPMSpec
Raw Normal View History

2019-12-31 23:06:09 +08:00
Name: popt
2022-11-18 17:18:23 +08:00
Version: 1.19
Release: 4
2019-12-31 23:06:09 +08:00
Summary: C library for parsing command line parameters
License: MIT
2020-07-25 17:32:52 +08:00
URL: https://github.com/rpm-software-management/popt/
Source0: https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/%{name}-%{version}.tar.gz
2020-07-25 17:32:52 +08:00
Patch0: fix-obscure-iconv-mis-call-error-path-could-lead-to-.patch
Patch1: fix-handle-newly-added-asset-.-call-like-elsewhere.patch
Patch2: fix-permit-reading-aliases-remove-left-over-goto-exi.patch
Patch3: fix-coverity-CID-1057440-Unused-pointer-value-UNUSED.patch
Patch4: Fix-poptCallbackType-documentation.patch
Patch5: Fix-multiple-typos-in-comments.patch
Patch6: Fix-potential-double-free-in-test3.c.patch
2019-12-31 23:06:09 +08:00
Patch9000: revert-fix-memory-leak-regressions-in-popt.patch
BuildRequires: gcc gettext
2019-12-31 23:06:09 +08:00
%description
The popt library exists essentially for parsing command line options. Some
specific advantages of popt are no global variables (allowing multiple passes
in parsing argv), parsing an arbitrary array of argv-style elements (allowing
parsing of command-line-strings from any source), a standard method of option
aliasing, ability to exec external option filters, and automatic generation
of help and usage messages.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
Obsoletes: %{name}-static < %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package_help
2019-12-31 23:06:09 +08:00
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure
%make_build
%install
%make_install
%delete_la
2019-12-31 23:06:09 +08:00
mkdir -p %{buildroot}/%{_sysconfdir}/popt.d
%find_lang %{name}
%check
%make_build check
2019-12-31 23:06:09 +08:00
%files -f %{name}.lang
%license COPYING
%{_sysconfdir}/%{name}.d
%{_libdir}/lib%{name}.so.*
2019-12-31 23:06:09 +08:00
%files devel
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so
2019-12-31 23:06:09 +08:00
%{_libdir}/lib%{name}.a
%files help
2022-11-18 17:18:23 +08:00
%doc README
%{_mandir}/man3/*
2019-12-31 23:06:09 +08:00
%changelog
* Fri Aug 16 2024 zhangxingrong <zhangxingrong@uniontech.cn> - 1.19-4
- Fix poptCallbackType documentation
- Fix multiple typos in comments
- Fix potential double-free in test3.c
* Tue Aug 06 2024 Funda Wang <fundawang@yeah.net> - 1.19-3
- Move .so file into devel package
* Tue Dec 13 2022 Jiayi Chen <1398871225@qq.com> - 1.19-2
- Revert fix memory leak regressions in popt introduced by updating to 1.19
2022-11-18 17:18:23 +08:00
* Fri Nov 18 2022 dillon chen <dillon.chen@gmail.com> - 1.19-1
- update to 1.19
* Thu Aug 18 2022 zhangruifang <zhangruifang1@h-partners.com> - 1.18-3
- Revert fix memory leak regressions in popt
* Mon Aug 15 2022 panxiaohe <panxh.life@foxmail.com> - 1.18-2
- Fix incorrect handling of leftovers with poptStuffArgs and memory leak
2020-07-25 17:32:52 +08:00
* Sat Jul 25 2020 zhangxingliang <zhangxingliang3@huawei.com> - 1.18-1
- Type:update
- ID:NA
- SUG:NA
- DESC:update to 1.18
2019-12-31 23:06:09 +08:00
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.16-17
- Strenthen spec
* Fri Aug 30 2019 luhuaxin <luhuaxin@huawei.com> - 1.16-16
- Package init