Mageia Bugzilla – Attachment 9977 Details for
Bug 22455
Please adjust miniupnpc for nicotine+ (A graphical client for the SoulSeek peer-to-peer system)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Revised version of spec for miniupnpc
miniupnpc.bdk.spec (text/plain), 5.58 KB, created by
katnatek
on 2018-02-10 21:09:40 CET
(
hide
)
Description:
Revised version of spec for miniupnpc
Filename:
MIME Type:
Creator:
katnatek
Created:
2018-02-10 21:09:40 CET
Size:
5.58 KB
patch
obsolete
>%define major 16 >%define libname %mklibname %{name} %{major} >%define develname %mklibname -d %{name} >%define basepy3dir %(echo ../`basename %{py3dir}`) >%filter_provides_in %{python_sitearch}/.*\.so$ > >Summary: Library and tool to control NAT in UPnP-enabled routers >Name: miniupnpc >Version: 2.0.20170509 >Release: %mkrel 3 >License: LGPLv2+ >Group: System/Libraries >URL: http://miniupnp.free.fr/ >Source: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz ># taken from Fedora ># Do not create libminiupnpc.so.%%{version} and libminiupnpc.so.%%{major} linking to it >Patch0: %{name}-version.patch >Source1: USAGE > >BuildRequires: cmake >BuildRequires: pkgconfig(python2) > >%description >miniupnpc is an implementation of a UPnP client library, enabling >applications to access the services provided by an UPnP "Internet >Gateway Device" present on the network. In UPnP terminology, it is >a UPnP Control Point. > >%package -n %{libname} >Summary: Library and tool to control NAT in UPnP-enabled routers >Group: System/Libraries > >%description -n %{libname} >miniupnpc is an implementation of a UPnP client library, enabling >applications to access the services provided by an UPnP "Internet >Gateway Device" present on the network. In UPnP terminology, it is >a UPnP Control Point. > >%package -n %{develname} >Summary: Header files, libraries and development documentation for miniupnpc >Group: Development/C >Requires: %{libname} = %{version}-%{release} >Provides: %{name}-devel = %{version}-%{release} > >%description -n %{develname} >This package contains the header files and development documentation for >miniupnpc. If you like to develop programs using miniupnpc, you will need >to install miniupnpc-devel. > >%package -n python-%{name} >Summary: Python interface to %{name} >Group: System Environment/Libraries >Requires: %{name}%{?_isa} = %{version} > >%description -n python-%{name} >This package contains python interfaces to %{name}. > >%package -n python3-%{name} >Summary: Python3 interface to %{name} >Group: System Environment/Libraries >Requires: %{name}%{?_isa} = %{version} >BuildRequires: python3-devel > >%description -n python3-%{name} >This package contains python3 interfaces to %{name}. > >%prep >%setup -q >%patch0 -p1 > >cp %{SOURCE1} . >sed -i "s|\(\tpython setup.py install\)$|\1 --root=\$(DESTDIR)/|" Makefile > >sed -i "s|\(\tpython3 setup.py install\)$|\1 --root=\$(DESTDIR)/|" Makefile > ># version not updated in setup.py >sed -i 's/"1\.7"/"%{version}"/' setup.py > ># Changelog says added -ansi without reason, but that ># breaks C files (python module) using C++ comments >sed -i 's/\(CFLAGS += -ansi\)/#\1/' Makefile > >%build >%cmake -DUPNPC_BUILD_STATIC=OFF -DUPNPC_BUILD_TESTS=ON > ># build example client >cd .. >%make upnpc-shared all > >make pythonmodule > >make pythonmodule3 > >make upnpc-shared > >%install >%make_install -C build > >make DESTDIR=$RPM_BUILD_ROOT installpythonmodule > >make DESTDIR=$RPM_BUILD_ROOT installpythonmodule3 > ># install manpage and binary for example client using libminiupnpc >install -D -m 644 man3/miniupnpc.3 %buildroot/%{_mandir}/man3/miniupnpc.3 >install -D -m 0755 upnpc-shared %buildroot%{_bindir}/upnpc > >%check >make CFLAGS="-DMINIUPNPC_SET_SOCKET_TIMEOUT" check > >%files >%doc Changelog.txt LICENSE README USAGE >%{_bindir}/upnpc >%{_mandir}/man3/miniupnpc.3.* > >%files -n %{libname} >%{_libdir}/*.so.%{major} > >%files -n %{develname} >%{_includedir}/miniupnpc >%{_libdir}/*.so > >%files -n python-%{name} >%{python_sitearch}/miniupnpc-2.0-py2.7.egg-info >%{python_sitearch}/miniupnpc.so > >%files -n python3-%{name} >%{python3_sitearch}/miniupnpc-2.0-py3.5.egg-info/* >%{python3_sitearch}/miniupnpc*.so > >%changelog >* Fri Feb 9 2018 katnatek <j.alberto.vc@gmail.com> 2.0.20170509-3bdk.mga6 >- Fix issu wirh patch >- Fix build for clean install/chroots >- Drop conditionals > >* Thu Jan 11 2018 katnatek <j.alberto.vc@gmail.com> 2.0.20170509-2bdk.mga6 >- Make python modules > >* Mon May 15 2017 neoclust <neoclust> 2.0.20170509-1.mga6 >+ Revision: 1101654 >- New version - Fixes CVE-2017-8798 (mga#20851) > >* Mon Feb 15 2016 umeabot <umeabot> 1.9.20151008-3.mga6 >+ Revision: 961431 >- Mageia 6 Mass Rebuild > >* Sat Oct 31 2015 doktor5000 <doktor5000> 1.9.20151008-2.mga6 >+ Revision: 896940 >- reenable tests > >* Tue Oct 13 2015 fwang <fwang> 1.9.20151008-1.mga6 >+ Revision: 890190 >- 1.9.20151008 > >* Sun Dec 14 2014 doktor5000 <doktor5000> 1.9.20141128-1.mga5 >+ Revision: 803179 >- new version 1.9.20141128 >- major changed to 12 >- fix library libminiupnpc.so.%%{version} linking to libminiupnpc.so.%%{major} > o patch %%{name}-version.patch taken from Fedora >- enabled build of example commandline client binary upnpc > o install manpage and USAGE file (latter taken from Fedora) for upnpc client >- prepare to build and enable tests, although testportlistingparse missing > >* Wed Oct 15 2014 umeabot <umeabot> 1.9.20140701-4.mga5 >+ Revision: 744043 >- Second Mageia 5 Mass Rebuild > >* Sat Sep 27 2014 tv <tv> 1.9.20140701-3.mga5 >+ Revision: 727301 >- rebuild for missing pythoneggs deps > >* Tue Sep 16 2014 umeabot <umeabot> 1.9.20140701-2.mga5 >+ Revision: 682525 >- Mageia 5 Mass Rebuild > >* Thu Aug 07 2014 fwang <fwang> 1.9.20140701-1.mga5 >+ Revision: 660778 >- 1.9.20140701 > >* Wed May 14 2014 luigiwalser <luigiwalser> 1.9-1.mga5 >+ Revision: 622807 >- 1.9 (fixes DoS issue) >- library major is now 10 > >* Sat Oct 19 2013 umeabot <umeabot> 1.8-2.mga4 >+ Revision: 533952 >- Mageia 4 Mass Rebuild > >* Sun Sep 08 2013 fwang <fwang> 1.8-1.mga4 >+ Revision: 475855 >- new version 1.8 > >* Sat Jan 12 2013 umeabot <umeabot> 1.6-3.mga3 >+ Revision: 360104 >- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild > >* Sun Aug 07 2011 fwang <fwang> 1.6-2.mga2 >+ Revision: 132178 >- commit header patch >- update header list >- imported package miniupnpc >
%define major 16 %define libname %mklibname %{name} %{major} %define develname %mklibname -d %{name} %define basepy3dir %(echo ../`basename %{py3dir}`) %filter_provides_in %{python_sitearch}/.*\.so$ Summary: Library and tool to control NAT in UPnP-enabled routers Name: miniupnpc Version: 2.0.20170509 Release: %mkrel 3 License: LGPLv2+ Group: System/Libraries URL: http://miniupnp.free.fr/ Source: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz # taken from Fedora # Do not create libminiupnpc.so.%%{version} and libminiupnpc.so.%%{major} linking to it Patch0: %{name}-version.patch Source1: USAGE BuildRequires: cmake BuildRequires: pkgconfig(python2) %description miniupnpc is an implementation of a UPnP client library, enabling applications to access the services provided by an UPnP "Internet Gateway Device" present on the network. In UPnP terminology, it is a UPnP Control Point. %package -n %{libname} Summary: Library and tool to control NAT in UPnP-enabled routers Group: System/Libraries %description -n %{libname} miniupnpc is an implementation of a UPnP client library, enabling applications to access the services provided by an UPnP "Internet Gateway Device" present on the network. In UPnP terminology, it is a UPnP Control Point. %package -n %{develname} Summary: Header files, libraries and development documentation for miniupnpc Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} This package contains the header files and development documentation for miniupnpc. If you like to develop programs using miniupnpc, you will need to install miniupnpc-devel. %package -n python-%{name} Summary: Python interface to %{name} Group: System Environment/Libraries Requires: %{name}%{?_isa} = %{version} %description -n python-%{name} This package contains python interfaces to %{name}. %package -n python3-%{name} Summary: Python3 interface to %{name} Group: System Environment/Libraries Requires: %{name}%{?_isa} = %{version} BuildRequires: python3-devel %description -n python3-%{name} This package contains python3 interfaces to %{name}. %prep %setup -q %patch0 -p1 cp %{SOURCE1} . sed -i "s|\(\tpython setup.py install\)$|\1 --root=\$(DESTDIR)/|" Makefile sed -i "s|\(\tpython3 setup.py install\)$|\1 --root=\$(DESTDIR)/|" Makefile # version not updated in setup.py sed -i 's/"1\.7"/"%{version}"/' setup.py # Changelog says added -ansi without reason, but that # breaks C files (python module) using C++ comments sed -i 's/\(CFLAGS += -ansi\)/#\1/' Makefile %build %cmake -DUPNPC_BUILD_STATIC=OFF -DUPNPC_BUILD_TESTS=ON # build example client cd .. %make upnpc-shared all make pythonmodule make pythonmodule3 make upnpc-shared %install %make_install -C build make DESTDIR=$RPM_BUILD_ROOT installpythonmodule make DESTDIR=$RPM_BUILD_ROOT installpythonmodule3 # install manpage and binary for example client using libminiupnpc install -D -m 644 man3/miniupnpc.3 %buildroot/%{_mandir}/man3/miniupnpc.3 install -D -m 0755 upnpc-shared %buildroot%{_bindir}/upnpc %check make CFLAGS="-DMINIUPNPC_SET_SOCKET_TIMEOUT" check %files %doc Changelog.txt LICENSE README USAGE %{_bindir}/upnpc %{_mandir}/man3/miniupnpc.3.* %files -n %{libname} %{_libdir}/*.so.%{major} %files -n %{develname} %{_includedir}/miniupnpc %{_libdir}/*.so %files -n python-%{name} %{python_sitearch}/miniupnpc-2.0-py2.7.egg-info %{python_sitearch}/miniupnpc.so %files -n python3-%{name} %{python3_sitearch}/miniupnpc-2.0-py3.5.egg-info/* %{python3_sitearch}/miniupnpc*.so %changelog * Fri Feb 9 2018 katnatek <j.alberto.vc@gmail.com> 2.0.20170509-3bdk.mga6 - Fix issu wirh patch - Fix build for clean install/chroots - Drop conditionals * Thu Jan 11 2018 katnatek <j.alberto.vc@gmail.com> 2.0.20170509-2bdk.mga6 - Make python modules * Mon May 15 2017 neoclust <neoclust> 2.0.20170509-1.mga6 + Revision: 1101654 - New version - Fixes CVE-2017-8798 (mga#20851) * Mon Feb 15 2016 umeabot <umeabot> 1.9.20151008-3.mga6 + Revision: 961431 - Mageia 6 Mass Rebuild * Sat Oct 31 2015 doktor5000 <doktor5000> 1.9.20151008-2.mga6 + Revision: 896940 - reenable tests * Tue Oct 13 2015 fwang <fwang> 1.9.20151008-1.mga6 + Revision: 890190 - 1.9.20151008 * Sun Dec 14 2014 doktor5000 <doktor5000> 1.9.20141128-1.mga5 + Revision: 803179 - new version 1.9.20141128 - major changed to 12 - fix library libminiupnpc.so.%%{version} linking to libminiupnpc.so.%%{major} o patch %%{name}-version.patch taken from Fedora - enabled build of example commandline client binary upnpc o install manpage and USAGE file (latter taken from Fedora) for upnpc client - prepare to build and enable tests, although testportlistingparse missing * Wed Oct 15 2014 umeabot <umeabot> 1.9.20140701-4.mga5 + Revision: 744043 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 tv <tv> 1.9.20140701-3.mga5 + Revision: 727301 - rebuild for missing pythoneggs deps * Tue Sep 16 2014 umeabot <umeabot> 1.9.20140701-2.mga5 + Revision: 682525 - Mageia 5 Mass Rebuild * Thu Aug 07 2014 fwang <fwang> 1.9.20140701-1.mga5 + Revision: 660778 - 1.9.20140701 * Wed May 14 2014 luigiwalser <luigiwalser> 1.9-1.mga5 + Revision: 622807 - 1.9 (fixes DoS issue) - library major is now 10 * Sat Oct 19 2013 umeabot <umeabot> 1.8-2.mga4 + Revision: 533952 - Mageia 4 Mass Rebuild * Sun Sep 08 2013 fwang <fwang> 1.8-1.mga4 + Revision: 475855 - new version 1.8 * Sat Jan 12 2013 umeabot <umeabot> 1.6-3.mga3 + Revision: 360104 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Aug 07 2011 fwang <fwang> 1.6-2.mga2 + Revision: 132178 - commit header patch - update header list - imported package miniupnpc
View Attachment As Raw
Actions:
View
Attachments on
bug 22455
:
9928
|
9977
|
11096