libnatpmp/libnatpmp.spec

84 lines
2.1 KiB
RPMSpec
Raw Normal View History

Name: libnatpmp
Version: 20240116
Release: 1mamba
Summary: NAT Port Mapping Protocol (NAT-PMP) library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://miniupnp.free.fr/
Source: https://github.com/miniupnp/libnatpmp.git/master/libnatpmp-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
%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
#% cmake -d build \
# -DBUILD_SHARED_LIBS=ON
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall PREFIX=%{buildroot} INSTALLDIRLIB=%{buildroot}%{_libdir} DESTDIR=""
%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
%{_includedir}/natpmp_declspec.h
%{_libdir}/libnatpmp.a
%{_libdir}/libnatpmp.so
%{_libdir}/pkgconfig/natpmp.pc
%doc README
%files tools
%defattr(-,root,root)
%{_bindir}/natpmpc
%changelog
* Fri Mar 01 2024 Automatic Build System <autodist@openmamba.org> 20240116-1mamba
- automatic version update by autodist
* Sun Jun 18 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 20230616-1mamba
- update to 20230616
* Sun Apr 21 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 20150609-1mamba
- package created using the webbuild interface