|
|
@ -1,16 +1,15 @@
|
|
|
|
Name: libnatpmp
|
|
|
|
Name: libnatpmp
|
|
|
|
Version: 20140401
|
|
|
|
Version: 20150609
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Library of The NAT Port Mapping Protocol (NAT-PMP)
|
|
|
|
Summary: Library of The NAT Port Mapping Protocol (NAT-PMP)
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://miniupnp.free.fr/libnatpmp.html
|
|
|
|
URL: http://miniupnp.free.fr/libnatpmp.html
|
|
|
|
Source0: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: libnatpmp-precluding-cflags-overriding.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
libnatpmp is an attempt to make a portable and fully compliant implementation
|
|
|
|
libnatpmp is an attempt to make a portable and fully compliant implementation
|
|
|
|
of the protocol for the client side. It is based on non blocking sockets and
|
|
|
|
of the protocol for the client side. It is based on non blocking sockets and
|
|
|
|
all calls of the API are asynchronous. It is therefore very easy to integrate
|
|
|
|
all calls of the API are asynchronous. It is therefore very easy to integrate
|
|
|
|
the NAT-PMP code to any event driven code.
|
|
|
|
the NAT-PMP code to any event driven code.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
@ -23,30 +22,37 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
make CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" %{?_smp_mflags}
|
|
|
|
%make_build CFLAGS="-fPIC -Wall -DENABLE_STRNATPMPERR %{optflags}" EXTRA_LD="%{?__global_ldflags}"
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make install INSTALL="install -p" PREFIX=%{buildroot} INSTALLDIRLIB="%{buildroot}%{_libdir}"
|
|
|
|
make install INSTALL="install -p" PREFIX=%{buildroot} INSTALLDIRLIB="%{buildroot}%{_libdir}"
|
|
|
|
find %{buildroot} -name '*.a' -delete -print
|
|
|
|
find %{buildroot} -name '*.a' -delete -print
|
|
|
|
find %{buildroot} -name '*.so' -exec chmod 755 {} ";" -print
|
|
|
|
find %{buildroot} -name '*.so' -exec chmod 755 {} ";" -print
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
make testgetgateway
|
|
|
|
|
|
|
|
./testgetgateway
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc Changelog.txt LICENSE README
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/natpmpc
|
|
|
|
%{_bindir}/natpmpc
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%doc Changelog.txt README
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_includedir}/natpmp.h
|
|
|
|
%{_includedir}/natpmp.h
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Aug 22 2015 Christopher Meng <rpm@cicku.me> - 20150609-1
|
|
|
|
|
|
|
|
- Update to 20150609
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140401-3
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140401-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|