forked from pool/perl-XML-XSLT
Accepting request 840400 from home:pmonrealgonzalez:branches:devel:languages:perl
- Fix build and update spec file - Add cpanspec file - Add fdupes macro OBS-URL: https://build.opensuse.org/request/show/840400 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-XSLT?expand=0&rev=16
This commit is contained in:
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
preamble: |-
|
||||
BuildRequires: fdupes
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
post_install: |-
|
||||
%fdupes %{buildroot}
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 9 08:13:29 UTC 2020 - Pedro Monreal <pmonreal@suse.com>
|
||||
|
||||
- Fix build and update spec file
|
||||
- Add cpanspec file
|
||||
- Add fdupes macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 18 11:09:52 UTC 2011 - coolo@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-XML-XSLT
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,61 +12,65 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-XML-XSLT
|
||||
BuildRequires: perl-XML-DOM perl-XML-Parser perl-libwww-perl
|
||||
BuildRequires: perl-macros
|
||||
Version: 0.48
|
||||
Release: 180
|
||||
Requires: perl-XML-Parser perl-XML-DOM perl-libwww-perl perl-URI perl-XML-RegExp
|
||||
AutoReqProv: on
|
||||
Release: 0
|
||||
%define cpan_name XML-XSLT
|
||||
Summary: Perl module for processing XSLT
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
License: Artistic
|
||||
Url: http://cpan.org/modules/by-module/XML/
|
||||
Summary: Perl module XML::XSLT
|
||||
Source: XML-XSLT-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# MANUAL BEGIN
|
||||
BuildRequires: fdupes
|
||||
# MANUAL END
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(XML::DOM) >= 1.25
|
||||
BuildRequires: perl(XML::Parser) >= 2.23
|
||||
Requires: perl(XML::DOM) >= 1.25
|
||||
Requires: perl(XML::Parser) >= 2.23
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This is a Perl module to parse XSL Transformational sheets.
|
||||
This module implements the W3C's XSLT specification. The goal is full
|
||||
implementation of this spec, but we have not yet achieved that. However, it
|
||||
already works well. See XML::XSLT Commands for the current status of each
|
||||
command.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Geert Josten <gjosten@sci.kun.nl>
|
||||
Egon Willighagen <egonw@sci.kun.nl>
|
||||
XML::XSLT makes use of XML::DOM and LWP::Simple, while XML::DOM uses
|
||||
XML::Parser. Therefore XML::Parser, XML::DOM and LWP::Simple have to be
|
||||
installed properly for XML::XSLT to run.
|
||||
|
||||
%prep
|
||||
%setup -n XML-XSLT-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
chmod 755 examples
|
||||
chmod 644 README
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
# MANUAL BEGIN
|
||||
%fdupes -s examples
|
||||
# MANUAL END
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc ChangeLog README examples
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/XML/*
|
||||
%{perl_vendorarch}/auto/XML/XSLT/
|
||||
%{_bindir}/*
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc ChangeLog examples README xslt-parser
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user