Move .so file into devel package
(cherry picked from commit 55ef3f2461f813e124d580c8f87834fef746bb82)
This commit is contained in:
parent
000f128a29
commit
924384baf4
34
popt.spec
34
popt.spec
@ -1,10 +1,10 @@
|
|||||||
Name: popt
|
Name: popt
|
||||||
Version: 1.19
|
Version: 1.19
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: C library for parsing command line parameters
|
Summary: C library for parsing command line parameters
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/rpm-software-management/popt/
|
URL: https://github.com/rpm-software-management/popt/
|
||||||
Source0: http://ftp.rpm.org/%{name}/releases/%{name}-1.x/%{name}-%{version}.tar.gz
|
Source0: https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: fix-obscure-iconv-mis-call-error-path-could-lead-to-.patch
|
Patch0: fix-obscure-iconv-mis-call-error-path-could-lead-to-.patch
|
||||||
Patch1: fix-handle-newly-added-asset-.-call-like-elsewhere.patch
|
Patch1: fix-handle-newly-added-asset-.-call-like-elsewhere.patch
|
||||||
@ -13,7 +13,7 @@ Patch3: fix-coverity-CID-1057440-Unused-pointer-value-UNUSED.patch
|
|||||||
|
|
||||||
Patch9000: revert-fix-memory-leak-regressions-in-popt.patch
|
Patch9000: revert-fix-memory-leak-regressions-in-popt.patch
|
||||||
|
|
||||||
BuildRequires: gcc git gettext
|
BuildRequires: gcc gettext
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The popt library exists essentially for parsing command line options. Some
|
The popt library exists essentially for parsing command line options. Some
|
||||||
@ -26,7 +26,6 @@ of help and usage messages.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
|
||||||
Provides: %{name}-static = %{version}-%{release}
|
Provides: %{name}-static = %{version}-%{release}
|
||||||
Obsoletes: %{name}-static < %{version}-%{release}
|
Obsoletes: %{name}-static < %{version}-%{release}
|
||||||
|
|
||||||
@ -34,12 +33,7 @@ Obsoletes: %{name}-static < %{version}-%{release}
|
|||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%package help
|
%package_help
|
||||||
Summary: Doc files for %{name}
|
|
||||||
Buildarch: noarch
|
|
||||||
|
|
||||||
%description help
|
|
||||||
The %{name}-help package contains doc files for %{name}.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
@ -50,37 +44,33 @@ The %{name}-help package contains doc files for %{name}.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm -f %{buildroot}/%{_libdir}/libpopt.la
|
%delete_la
|
||||||
mkdir -p %{buildroot}/%{_sysconfdir}/popt.d
|
mkdir -p %{buildroot}/%{_sysconfdir}/popt.d
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
%make_build check
|
||||||
|
|
||||||
%pre
|
|
||||||
|
|
||||||
%preun
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_sysconfdir}/%{name}.d
|
%{_sysconfdir}/%{name}.d
|
||||||
%{_libdir}/lib%{name}.so*
|
%{_libdir}/lib%{name}.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/%{name}.h
|
%{_includedir}/%{name}.h
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
%{_libdir}/lib%{name}.so
|
||||||
%{_libdir}/lib%{name}.a
|
%{_libdir}/lib%{name}.a
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc README
|
%doc README
|
||||||
%{_mandir}/man3/%{name}.3.gz
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* 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
|
- Revert fix memory leak regressions in popt introduced by updating to 1.19
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user