8
0
2021-09-14 19:35:05 +00:00
committed by Git OBS Bridge
parent 1bc1b9918b
commit e6c808a4b8
2 changed files with 13 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 14 19:34:31 UTC 2021 - Dirk Stoecker <opensuse@dstoecker.de>
- refresh spec file
-------------------------------------------------------------------
Thu Nov 8 06:24:49 UTC 2018 - Stephan Kulow <coolo@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTML-Selector-XPath
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,16 @@
#
%define cpan_name HTML-Selector-XPath
Name: perl-HTML-Selector-XPath
Version: 0.25
Release: 0
%define cpan_name HTML-Selector-XPath
Summary: CSS Selector to XPath compiler
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Summary: CSS Selector to XPath compiler
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CO/CORION/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Base)
@@ -38,14 +36,14 @@ HTML::Selector::XPath is a utility function to compile full set of CSS2 and
partial CSS3 selectors to the equivalent XPath expression.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -53,7 +51,6 @@ perl Makefile.PL INSTALLDIRS=vendor
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog