libpsl/libpsl.spec

157 lines
4.7 KiB
RPMSpec
Raw Normal View History

2014-07-29 00:56:08 +00:00
Name: libpsl
2015-02-13 10:18:12 +00:00
Version: 0.7.0
Release: 4%{?dist}
2014-07-29 00:56:08 +00:00
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
2015-02-13 10:18:12 +00:00
BuildRequires: publicsuffix-list
2014-07-29 00:56:08 +00:00
%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}
2015-02-15 07:23:08 +00:00
Requires: publicsuffix-list
2014-07-29 00:56:08 +00:00
%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
2015-02-13 10:18:12 +00:00
rm -frv data/effective_tld_names.dat
sed -i 's|effective_tld_names.dat|$(PSL_FILE)|g' data/Makefile.am
2014-07-29 00:56:08 +00:00
%build
2015-02-13 10:18:12 +00:00
# Tarballs from github have 2 versions, one is raw files from repo, and
# the other one from CDN contains pre-generated autotools files.
# But makefile hack is not upstreamed yet so we continue reconfiguring these.
# [ -f configure ] || autoreconf -fiv
2015-02-13 10:18:12 +00:00
autoreconf -fiv
2014-07-29 00:56:08 +00:00
%configure --disable-silent-rules \
--disable-static \
--enable-man \
2015-02-13 10:18:12 +00:00
--enable-gtk-doc \
--with-psl-file=%{_datadir}/publicsuffix/effective_tld_names.dat
2014-07-29 00:56:08 +00:00
%make_build
%install
%make_install
2014-08-04 07:49:55 +00:00
2014-07-29 00:56:08 +00:00
find %{buildroot} -name '*.la' -delete -print
2015-02-13 10:18:12 +00:00
# We need to unbundle the list completely, since the list is not small
# in contrast with normal text files. Thus a symlink is the best choice.
rm -fv %{buildroot}%{_datadir}/libpsl/effective_tld_names.dat
ln -s %{_datadir}/publicsuffix/effective_tld_names.dat %{buildroot}%{_datadir}/libpsl/effective_tld_names.dat
2014-07-29 00:56:08 +00:00
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2015-02-13 10:18:12 +00:00
%license COPYING
2014-07-29 00:56:08 +00:00
%{_libdir}/libpsl.so.*
%files devel
2015-02-13 10:18:12 +00:00
%doc AUTHORS NEWS
2014-07-29 00:56:08 +00:00
%{_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
2015-02-13 10:18:12 +00:00
%doc AUTHORS NEWS
%license COPYING
2014-07-29 00:56:08 +00:00
%{_bindir}/psl
%changelog
* Sat Feb 28 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-4
- Rebuild for publicsuffix-list-20150226
2015-02-20 10:44:47 +00:00
* Fri Feb 20 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-3
- Rebuild for publicsuffix-list-20150217
2015-02-15 07:23:08 +00:00
* Sun Feb 15 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-2
- Correct the dependency
2015-02-13 10:18:12 +00:00
* Mon Feb 02 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-1
- Update to 0.7.0
2015-01-26 15:58:38 +00:00
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 0.6.2-2
- rebuild for ICU 54.1
2014-11-25 07:07:35 +00:00
* Thu Nov 20 2014 Christopher Meng <rpm@cicku.me> - 0.6.2-1
- Update to 0.6.2
2014-08-26 11:57:26 +00:00
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 0.5.1-3
- rebuild for ICU 53.1
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-08-04 07:49:55 +00:00
* Mon Aug 04 2014 Christopher Meng <rpm@cicku.me> - 0.5.1-1
- Update to 0.5.1
- Drop patch merged upstream
* Sat Aug 02 2014 Christopher Meng <rpm@cicku.me> - 0.5.0-3
- Add a patch from Jakub Čajka to complete the tests on non-x86 arch.
2014-07-29 00:56:08 +00:00
* 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.