Mageia Bugzilla – Attachment 11096 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
Updated spec to generate python modules
miniupnpc.spec (text/plain), 5.30 KB, created by
katnatek
on 2019-06-16 01:57:48 CEST
(
hide
)
Description:
Updated spec to generate python modules
Filename:
MIME Type:
Creator:
katnatek
Created:
2019-06-16 01:57:48 CEST
Size:
5.30 KB
patch
obsolete
>%define major 17 >%define libname %mklibname %{name} %{major} >%define develname %mklibname %{name} -d >%define subrel 1 > >#Taked from fedora's spec >%global 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.1 >Release: %mkrel 1 >License: LGPLv2+ >Group: System/Libraries >URL: http://miniupnp.free.fr/ >Source: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz >Patch0: %{name}-2.1-upstream-fix.patch ># taken from Fedora ># Do not create libminiupnpc.so.%%{version} and libminiupnpc.so.%%{major} linking to it >Patch1: %{name}-version.patch ># taken from Fedora >Source1: USAGE > >BuildRequires: cmake > >#For python modules >BuildRequires: python2-devel python2-setuptools >BuildRequires: python3-devel python3-setuptools > >%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 python2-%{name} >%{?python_provide:%python_provide python2-%{name}} >Summary: Python interface to %{name} >Requires: %{name}%{?_isa} = %{version}-%{release} > >%description -n python2-%{name} >This package contains python interfaces to %{name}. > >%package -n python3-%{name} >Summary: Python3 interface to %{name} >Requires: %{name}%{?_isa} = %{version}-%{release} > >%description -n python3-%{name} >This package contains python3 interfaces to %{name}. > > >%prep >%setup -q >%autopatch -p1 > >cp %{SOURCE1} . > >%build > >%py2_build >%py3_build > >%cmake -DUPNPC_BUILD_STATIC=FALSE >%make_build > >### build example client >cd .. >%make_build upnpc-shared all > >%install >%py2_install >%py3_install > >%make_install -C build > ># 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 python2-%{name} >%{python2_sitearch}/miniupnpc-%{version}-py?.?.egg-info >%{python2_sitearch}/miniupnpc.so > >%files -n python3-%{name} >%{python3_sitearch}/miniupnpc-%{version}-py?.?.egg-info >%{python3_sitearch}/miniupnpc*.so > >%changelog >* Fri Aug 24 2018 daviddavid <daviddavid> 2.1-1.mga7 > (not released yet) >+ Revision: 1253795 >- new version: 2.1 >- now libmajor is 17 > >* 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 17 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d %define subrel 1 #Taked from fedora's spec %global 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.1 Release: %mkrel 1 License: LGPLv2+ Group: System/Libraries URL: http://miniupnp.free.fr/ Source: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz Patch0: %{name}-2.1-upstream-fix.patch # taken from Fedora # Do not create libminiupnpc.so.%%{version} and libminiupnpc.so.%%{major} linking to it Patch1: %{name}-version.patch # taken from Fedora Source1: USAGE BuildRequires: cmake #For python modules BuildRequires: python2-devel python2-setuptools BuildRequires: python3-devel python3-setuptools %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 python2-%{name} %{?python_provide:%python_provide python2-%{name}} Summary: Python interface to %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python2-%{name} This package contains python interfaces to %{name}. %package -n python3-%{name} Summary: Python3 interface to %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python3-%{name} This package contains python3 interfaces to %{name}. %prep %setup -q %autopatch -p1 cp %{SOURCE1} . %build %py2_build %py3_build %cmake -DUPNPC_BUILD_STATIC=FALSE %make_build ### build example client cd .. %make_build upnpc-shared all %install %py2_install %py3_install %make_install -C build # 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 python2-%{name} %{python2_sitearch}/miniupnpc-%{version}-py?.?.egg-info %{python2_sitearch}/miniupnpc.so %files -n python3-%{name} %{python3_sitearch}/miniupnpc-%{version}-py?.?.egg-info %{python3_sitearch}/miniupnpc*.so %changelog * Fri Aug 24 2018 daviddavid <daviddavid> 2.1-1.mga7 (not released yet) + Revision: 1253795 - new version: 2.1 - now libmajor is 17 * 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