libpsl/libpsl.spec

84 lines
2.0 KiB
RPMSpec

Name: libpsl
Version: 0.21.1
Release: 1mamba
Summary: C library for the Public Suffix List
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://rockdaboot.github.io/libpsl
Source: https://github.com/rockdaboot/libpsl.git/%{version}/libpsl-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libicu-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
C library for the Public Suffix List.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%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
./autogen.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libpsl.so.*
%doc AUTHORS COPYING LICENSE
%files devel
%defattr(-,root,root)
%{_includedir}/libpsl.h
%{_libdir}/libpsl.a
%{_libdir}/libpsl.la
%{_libdir}/libpsl.so
%{_libdir}/pkgconfig/libpsl.pc
%doc NEWS README.md
%files tools
%defattr(-,root,root)
%{_bindir}/psl
%{_mandir}/man1/psl-make-dafsa.1*
%{_mandir}/man1/psl.1*
%changelog
* Sun Sep 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.21.1-1mamba
- update to 0.21.1
* Sat Sep 07 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.21.0-1mamba
- package created using the webbuild interface