diff --git a/miniupnpc.spec b/miniupnpc.spec index 07ec19f..2786ce9 100644 --- a/miniupnpc.spec +++ b/miniupnpc.spec @@ -1,6 +1,6 @@ Name: miniupnpc -Version: 1.9.20150430 -Release: 1mamba +Version: 2.1 +Release: 2mamba Summary: The MiniUPnP client library is useful whenever an application needs to listen for incoming connections Group: System/Libraries Vendor: openmamba @@ -13,18 +13,30 @@ License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The MiniUPnP client library is useful whenever an application needs to listen for incoming connections -%package devel -Group: Development/Libraries -Summary: Static libraries and headers for %{name} +%package -n lib%{name} +Group: System/Libraries +Summary: The MiniUPnP client library is useful whenever an application needs to listen for incoming connections Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -%description devel -This package contains static libraries and header files need for development. +%description -n lib%{name} +The MiniUPnP client library is useful whenever an application needs to listen for incoming connections +This package contains the %{name} shared library. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: %{name}-devel +Obsoletes: %{name}-devel + +%description -n lib%{name}-devel +This package contains static libraries and header files needed for development. %prep %setup -q @@ -41,26 +53,67 @@ This package contains static libraries and header files need for development. %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -n lib%{name} +/sbin/ldconfig +: +%postun -n lib%{name} +/sbin/ldconfig +: %files %defattr(-,root,root) %{_bindir}/external-ip %{_bindir}/upnpc + +%files -n lib%{name} +%defattr(-,root,root) %{_libdir}/libminiupnpc.so.* %doc LICENSE -%files devel +%files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/miniupnpc %{_includedir}/miniupnpc/*.h %{_libdir}/libminiupnpc.a %{_libdir}/libminiupnpc.so -%{_mandir}/man3/miniupnpc.3.gz +%{_mandir}/man3/miniupnpc.3* +%{_libdir}/pkgconfig/miniupnpc.pc %changelog +* Wed Aug 29 2018 Silvan Calarco 2.1-2mamba +- added library subpackage + +* Wed May 09 2018 Automatic Build System 2.1-1mamba +- automatic version update by autodist + +* Thu Apr 19 2018 Automatic Build System 2.0.20180410-1mamba +- automatic version update by autodist + +* Thu Apr 12 2018 Automatic Build System 2.0.20180406-1mamba +- automatic version update by autodist + +* Sat Mar 24 2018 Automatic Build System 2.0.20180222-1mamba +- automatic version update by autodist + +* Wed Dec 20 2017 Automatic Build System 2.0.20171212-1mamba +- automatic update by autodist + +* Sat Nov 18 2017 Automatic Build System 2.0.20171102-1mamba +- automatic update by autodist + +* Mon Aug 07 2017 Automatic Build System 2.0.20170509-1mamba +- automatic version update by autodist + +* Sat Aug 06 2016 Automatic Build System 2.0-1mamba +- automatic version update by autodist + +* Tue Jan 26 2016 Automatic Build System 1.9.20151026-1mamba +- automatic version update by autodist + +* Wed Jun 10 2015 Automatic Build System 1.9.20150609-1mamba +- automatic update by autodist + * Thu May 07 2015 Automatic Build System 1.9.20150430-1mamba - automatic update by autodist