Modern macro.
This commit is contained in:
parent
5c71d435ba
commit
7dfd2516eb
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/libpsl-0.5.0.tar.gz
|
110
libpsl.spec
Normal file
110
libpsl.spec
Normal file
@ -0,0 +1,110 @@
|
||||
Name: libpsl
|
||||
Version: 0.5.0
|
||||
Release: 2%{?dist}
|
||||
Summary: C library for the Publix Suffix List
|
||||
License: MIT
|
||||
URL: https://rockdaboot.github.io/libpsl
|
||||
Source0: https://github.com/rockdaboot/libpsl/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: libicu-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libxslt
|
||||
|
||||
%description
|
||||
libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
|
||||
domain name under which Internet users can directly register own names.
|
||||
|
||||
Browsers and other web clients can use it to
|
||||
|
||||
- Avoid privacy-leaking "supercookies";
|
||||
- Avoid privacy-leaking "super domain" certificates;
|
||||
- Domain highlighting parts of the domain in a user interface;
|
||||
- Sorting domain lists by site;
|
||||
|
||||
Libpsl...
|
||||
|
||||
- has built-in PSL data for fast access;
|
||||
- allows to load PSL data from files;
|
||||
- checks if a given domain is a "public suffix";
|
||||
- provides immediate cookie domain verification;
|
||||
- finds the longest public part of a given domain;
|
||||
- finds the shortest private part of a given domain;
|
||||
- works with international domains (UTF-8 and IDNA2008 Punycode);
|
||||
- is thread-safe;
|
||||
- handles IDNA2008 UTS#46;
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%package -n psl
|
||||
Summary: Commandline utility to explore the Public Suffix List
|
||||
|
||||
%description -n psl
|
||||
This package contains a commandline utility to explore the Public Suffix List,
|
||||
for example it checks if domains are public suffixes, checks if cookie-domain
|
||||
is acceptable for domains and so on.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure --disable-silent-rules \
|
||||
--disable-static \
|
||||
--enable-man \
|
||||
--enable-gtk-doc
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -name '*.la' -delete -print
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc COPYING
|
||||
%{_libdir}/libpsl.so.*
|
||||
|
||||
%files devel
|
||||
%doc AUTHORS NEWS README.md
|
||||
%{_datadir}/gtk-doc/html/libpsl/
|
||||
%{_datadir}/libpsl/
|
||||
%exclude %{_datadir}/libpsl/test_psl.txt
|
||||
%{_includedir}/libpsl.h
|
||||
%{_libdir}/libpsl.so
|
||||
%{_libdir}/pkgconfig/libpsl.pc
|
||||
%{_mandir}/man3/libpsl.3*
|
||||
|
||||
%files -n psl
|
||||
%doc AUTHORS COPYING NEWS README.md
|
||||
%{_bindir}/psl
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2014 Christopher Meng <rpm@cicku.me> - 0.5.0-2
|
||||
- Drop useless test data
|
||||
- Add missing gettext-devel
|
||||
- psl is now separately packaged recommended by the upstream
|
||||
|
||||
* Fri Jul 04 2014 Christopher Meng <rpm@cicku.me> - 0.5.0-1
|
||||
- Update to 0.5.0
|
||||
|
||||
* Tue Jul 01 2014 Christopher Meng <rpm@cicku.me> - 0.4.0-1
|
||||
- Update to 0.4.0
|
||||
|
||||
* Tue Apr 08 2014 Christopher Meng <rpm@cicku.me> - 0.2-1
|
||||
- Initial Package.
|
Loading…
Reference in New Issue
Block a user