|
|
2f7408e |
%global major 8
|
|
|
2f7408e |
%filter_provides_in %{python_sitearch}/.*\.so$
|
|
|
2f7408e |
|
|
|
2f7408e |
Summary: Library and tool to control NAT in UPnP-enabled routers
|
|
|
2f7408e |
Name: miniupnpc
|
|
|
2f7408e |
Version: 1.6
|
|
|
4956bea |
Release: 10%{?dist}
|
|
|
2f7408e |
License: BSD
|
|
|
2f7408e |
Group: System Environment/Libraries
|
|
|
2f7408e |
URL: http://miniupnp.free.fr/
|
|
|
2f7408e |
Source: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz
|
|
|
2f7408e |
BuildRequires: cmake
|
|
|
2f7408e |
BuildRequires: python-devel
|
|
|
2f7408e |
# Install headers and add extra file to compilation
|
|
|
2f7408e |
# Patch originally from Mageia Linux
|
|
|
2f7408e |
Patch0: %{name}-1.6-files.patch
|
|
|
2f7408e |
# Do not create libminiupnpc.so.1.5 and libminiupnpc.so.8 linking to it
|
|
|
2f7408e |
Patch1: %{name}-1.6-version.patch
|
|
|
2f7408e |
# Link to and find libminiupnpc
|
|
|
2f7408e |
Patch2: %{name}-1.6-tests.patch
|
|
|
0e6f5db |
Source1: USAGE
|
|
|
2f7408e |
|
|
|
2f7408e |
%description
|
|
|
2f7408e |
miniupnpc is an implementation of a UPnP client library, enabling
|
|
|
2f7408e |
applications to access the services provided by an UPnP "Internet
|
|
|
2f7408e |
Gateway Device" present on the network. In UPnP terminology, it is
|
|
|
2f7408e |
a UPnP Control Point.
|
|
|
2f7408e |
|
|
|
0e6f5db |
This package includes upnpc, a UPnP client application for configuring
|
|
|
0e6f5db |
port forwarding in UPnP enabled routers.
|
|
|
0e6f5db |
|
|
|
2f7408e |
%package devel
|
|
|
2f7408e |
Summary: Development files for miniupnpc
|
|
|
2f7408e |
Group: Development/Libraries
|
|
|
2f7408e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
2f7408e |
|
|
|
2f7408e |
%description devel
|
|
|
2f7408e |
This package contains the header files and development documentation
|
|
|
2f7408e |
for %{name}.
|
|
|
2f7408e |
|
|
|
2f7408e |
%package -n python-%{name}
|
|
|
2f7408e |
Summary: Python interface to %{name}
|
|
|
2f7408e |
Group: System Environment/Libraries
|
|
|
2f7408e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
2f7408e |
|
|
|
2f7408e |
%description -n python-%{name}
|
|
|
2f7408e |
This package contains python interfaces to %{name}.
|
|
|
2f7408e |
|
|
|
2f7408e |
%prep
|
|
|
2f7408e |
%setup -q
|
|
|
2f7408e |
%patch0 -p1
|
|
|
2f7408e |
%patch1 -p1
|
|
|
2f7408e |
%patch2 -p1
|
|
|
0e6f5db |
cp %{SOURCE1} .
|
|
|
2f7408e |
|
|
|
2f7408e |
sed -i "s|\(\tpython setup.py install\)$|\1 --root=\$(DESTDIR)/|" Makefile
|
|
|
2f7408e |
|
|
|
2f7408e |
# version not updated in setup.py
|
|
|
2f7408e |
sed -i 's/"1\.5"/"%{version}"/' setup.py
|
|
|
2f7408e |
|
|
|
2f7408e |
%build
|
|
|
2f7408e |
mkdir -p build
|
|
|
2f7408e |
pushd build
|
|
|
2f7408e |
%cmake \
|
|
|
2f7408e |
-DUPNPC_BUILD_STATIC=OFF \
|
|
|
2f7408e |
-DUPNPC_BUILD_TESTS=ON \
|
|
|
2f7408e |
..
|
|
|
2f7408e |
make upnpc-shared all
|
|
|
2f7408e |
popd
|
|
|
2f7408e |
make pythonmodule
|
|
|
0e6f5db |
make upnpc-shared
|
|
|
2f7408e |
|
|
|
2f7408e |
%install
|
|
|
2f7408e |
make install DESTDIR=$RPM_BUILD_ROOT -C build
|
|
|
2f7408e |
make DESTDIR=$RPM_BUILD_ROOT installpythonmodule
|
|
|
2f7408e |
install -D -m644 man3/miniupnpc.3 $RPM_BUILD_ROOT/%{_mandir}/man3/miniupnpc.3
|
|
|
0e6f5db |
install -D -m 0755 upnpc-shared $RPM_BUILD_ROOT%{_bindir}/upnpc
|
|
|
2f7408e |
|
|
|
2f7408e |
%check
|
|
|
2f7408e |
make CFLAGS="%{optflags} -DMINIUPNPC_SET_SOCKET_TIMEOUT" check
|
|
|
2f7408e |
|
|
|
2f7408e |
%post -p /sbin/ldconfig
|
|
|
2f7408e |
|
|
|
2f7408e |
%postun -p /sbin/ldconfig
|
|
|
2f7408e |
|
|
|
2f7408e |
%files
|
|
|
2f7408e |
%doc Changelog.txt
|
|
|
2f7408e |
%doc LICENSE
|
|
|
2f7408e |
%doc README
|
|
|
2f7408e |
%{_libdir}/libminiupnpc.so.%{major}
|
|
|
0e6f5db |
%{_bindir}/upnpc
|
|
|
0e6f5db |
%doc USAGE
|
|
|
2f7408e |
|
|
|
2f7408e |
%files devel
|
|
|
2f7408e |
%{_includedir}/miniupnpc
|
|
|
2f7408e |
%{_libdir}/libminiupnpc.so
|
|
|
2f7408e |
%{_mandir}/man3/miniupnpc.3*
|
|
|
2f7408e |
|
|
|
2f7408e |
%files -n python-%{name}
|
|
|
2f7408e |
%{python_sitearch}/miniupnpc-%{version}-py?.?.egg-info
|
|
|
2f7408e |
%{python_sitearch}/miniupnpc.so
|
|
|
2f7408e |
|
|
|
2f7408e |
%changelog
|
|
|
4956bea |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-10
|
|
|
4956bea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
4956bea |
|
|
|
0e6f5db |
* Tue Mar 05 2013 Domingo Becker <domingobecker@gmail.com> - 1.6-9
|
|
|
0e6f5db |
- Added upnpc, a client side tool, to the main package.
|
|
|
0e6f5db |
- Added USAGE file with instructions on how to use upnpc.
|
|
|
0e6f5db |
|
|
|
ad73942 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-8
|
|
|
ad73942 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
ad73942 |
|
|
|
c3913bc |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-7
|
|
|
c3913bc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c3913bc |
|
|
|
2f7408e |
* Wed May 30 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.6-6
|
|
|
2f7408e |
- Add Changelog.txt to documentation.
|
|
|
2f7408e |
- Correct package version in setup.py.
|
|
|
2f7408e |
- Correct rpmlint warning on source rpm.
|
|
|
2f7408e |
- Filter provides of private python shared object (817311#c19).
|
|
|
2f7408e |
|
|
|
2f7408e |
* Sat May 26 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.6-5
|
|
|
2f7408e |
- Build python module (817311#c14).
|
|
|
2f7408e |
|
|
|
2f7408e |
* Mon May 21 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.6-4
|
|
|
2f7408e |
- Use %%name for source and patch names.
|
|
|
2f7408e |
- Enable %%check.
|
|
|
2f7408e |
|
|
|
2f7408e |
* Mon May 7 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.6-3
|
|
|
2f7408e |
- Prefer %%global over %%define.
|
|
|
2f7408e |
- Add proper documentation to main package.
|
|
|
2f7408e |
- Ensure library is built before making simple test programs.
|
|
|
2f7408e |
|
|
|
2f7408e |
* Wed May 2 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.6-2
|
|
|
2f7408e |
- Rename package to miniupnpc to match source tarball.
|
|
|
2f7408e |
- Add patch to enable build of tests.
|
|
|
2f7408e |
- Include manual page to devel package.
|
|
|
2f7408e |
- Change License to match LICENSE file.
|
|
|
2f7408e |
|
|
|
2f7408e |
* Sat Apr 28 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.6-1
|
|
|
2f7408e |
- Initial libminiupnpc spec.
|