From d8cc7f34b6a6155304a3aec1d72b8dc8d7a94ccf Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 28 Aug 2024 18:20:08 +0800 Subject: [PATCH] cleanup spec --- libpsl.spec | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/libpsl.spec b/libpsl.spec index 14d91b7..30276f7 100644 --- a/libpsl.spec +++ b/libpsl.spec @@ -1,13 +1,18 @@ Name: libpsl Version: 0.21.5 -Release: 1 +Release: 2 Summary: C library to handle the Public Suffix List License: MIT URL: https://github.com/rockdaboot/libpsl Source0: https://github.com/rockdaboot/libpsl/releases/download/%{version}/libpsl-%{version}.tar.gz -BuildRequires: gcc gtk-doc glib2-devel libxslt python3-devel -BuildRequires: libicu-devel libidn2-devel publicsuffix-list libunistring-devel +BuildRequires: gcc make +BuildRequires: pkgconfig(libidn2) +BuildRequires: libunistring-devel +BuildRequires: /usr/bin/xsltproc +BuildRequires: gtk-doc +BuildRequires: publicsuffix-list +BuildRequires: python3-devel Requires: publicsuffix-list %description @@ -36,13 +41,7 @@ Obsoletes: %{name}-static <= %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. -%package help -Summary: Doc files for %{name} -Buildarch: noarch -Requires: man - -%description help -The %{name}-help package contains doc files for %{name}. +%package_help %package -n psl Summary: Commandline utility to explore the Public Suffix List @@ -68,7 +67,7 @@ sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa %configure --enable-man \ --disable-rpath \ --enable-gtk-doc \ - --enable-builtin=libicu \ + --enable-builtin \ --enable-runtime=libidn2 \ --with-psl-distfile=%{_datadir}/publicsuffix/public_suffix_list.dafsa \ --with-psl-file=%{_datadir}/publicsuffix/effective_tld_names.dat \ @@ -77,19 +76,11 @@ sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa %install %make_install +%delete_la install -m0755 src/psl-make-dafsa %{buildroot}/%{_bindir} -rm -f %{buildroot}/%{_libdir}/%{name}.la %check -make check - -%pre - -%preun - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%make_build check %files %license COPYING AUTHORS @@ -116,6 +107,9 @@ make check %{_bindir}/psl-make-dafsa %changelog +* Wed Aug 28 2024 Funda Wang - 0.21.5-2 +- cleanup spec + * Wed Jul 31 2024 dillon chen - 0.21.5-1 - Type:update - ID: NA -- Gitee