diff --git a/README.md b/README.md index 9f399e5..1e78bb4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libnatpmp +NAT Port Mapping Protocol (NAT-PMP) library. + diff --git a/libnatpmp.spec b/libnatpmp.spec new file mode 100644 index 0000000..9c2771b --- /dev/null +++ b/libnatpmp.spec @@ -0,0 +1,73 @@ +Name: libnatpmp +Version: 20150609 +Release: 1mamba +Summary: NAT Port Mapping Protocol (NAT-PMP) library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://miniupnp.free.fr/ +Source: http://miniupnp.free.fr/files/libnatpmp-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +NAT Port Mapping Protocol (NAT-PMP) library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Applications/Networking +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall PREFIX=%{buildroot} INSTALLDIRLIB=%{buildroot}%{_libdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libnatpmp.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/natpmp.h +%{_libdir}/libnatpmp.a +%{_libdir}/libnatpmp.so +%doc README + +%files tools +%defattr(-,root,root) +%{_bindir}/natpmpc + +%changelog +* Sun Apr 21 2019 Silvan Calarco 20150609-1mamba +- package created using the webbuild interface