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
|
Fri Nov 18 11:09:52 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-XML-XSLT
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Name: perl-XML-XSLT
|
||||||
BuildRequires: perl-XML-DOM perl-XML-Parser perl-libwww-perl
|
|
||||||
BuildRequires: perl-macros
|
|
||||||
Version: 0.48
|
Version: 0.48
|
||||||
Release: 180
|
Release: 0
|
||||||
Requires: perl-XML-Parser perl-XML-DOM perl-libwww-perl perl-URI perl-XML-RegExp
|
%define cpan_name XML-XSLT
|
||||||
AutoReqProv: on
|
Summary: Perl module for processing XSLT
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: Artistic
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Url: http://cpan.org/modules/by-module/XML/
|
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/%{cpan_name}-%{version}.tar.gz
|
||||||
Summary: Perl module XML::XSLT
|
Source1: cpanspec.yml
|
||||||
Source: XML-XSLT-%{version}.tar.gz
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%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.
|
||||||
|
|
||||||
|
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
|
||||||
Authors:
|
installed properly for XML::XSLT to run.
|
||||||
--------
|
|
||||||
Geert Josten <gjosten@sci.kun.nl>
|
|
||||||
Egon Willighagen <egonw@sci.kun.nl>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n XML-XSLT-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%perl_make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
chmod 755 examples
|
%perl_gen_filelist
|
||||||
chmod 644 README
|
|
||||||
|
|
||||||
%clean
|
# MANUAL BEGIN
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%fdupes -s examples
|
||||||
|
# MANUAL END
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-, root, root)
|
%defattr(-,root,root,755)
|
||||||
%doc ChangeLog README examples
|
%doc ChangeLog examples README xslt-parser
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/XML/*
|
|
||||||
%{perl_vendorarch}/auto/XML/XSLT/
|
|
||||||
%{_bindir}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user