Accepting request 749480 from home:pmonrealgonzalez:branches:devel:languages:perl:CPAN-A

OBS-URL: https://build.opensuse.org/request/show/749480
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Alien-Libxml2?expand=0&rev=1
This commit is contained in:
Dirk Stoecker 2019-11-19 13:37:36 +00:00 committed by Git OBS Bridge
commit fa8751ca1d
6 changed files with 160 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa583d8e7677f944476bd595e3a25a99935ba15ca0b6a50927951e2ab8415ff3
size 19224

23
cpanspec.yml Normal file
View File

@ -0,0 +1,23 @@
---
#description_paragraphs: 1
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
preamble: |-
BuildRequires: pkgconfig(libxml-2.0) >= 2.9.0
BuildRequires: perl-URI
BuildRequires: perl(Mojo::DOM58)
BuildRequires: perl(Sort::Versions)
#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_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@ -0,0 +1,36 @@
-------------------------------------------------------------------
Mon Nov 18 11:14:40 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- Initial packaging
0.11 2019-10-28 09:54:24 -0600
- Production release identical to 0.11.
0.10_01 2019-07-05 09:36:21 -0400
- Prefer xml2-config over pkg-config (gh#11, gh#12)
0.09 2019-05-14 06:57:21 -0600
- Production release identical to 0.08_01.
0.08_01 2019-05-13 22:10:45 -0600
- Fix bug in xml2-config logic
0.07 2019-03-27 11:37:47 -0400
- Add ability to find libxml2 via pkg-config (requires Alien::Build
1.61 or better). Previous methods for finding libxml2 like
xml2-config or if -lxml2 happens to work will still work (gh#6).
0.06 2019-03-19 22:54:55 -0400
- Fixes for Windows (gh#2, gh#3)
0.05 2019-03-03 14:36:02 -0500
- Use http instead of ftp to fetch libxml2 sources.
0.04_01 2018-07-10 14:15:41 -0400
- Fixed the blacklist of bad versions of libxml2. It is based
on the list of versions rejected by XML-LibXML.
- As with XML-LibXML, you can force Alien-Libxml2 to install by
setting the environment variable FORCE to a true value.
0.03 2017-09-22 06:46:14 -0400
- Look for libxml2 in some standard places.
OS X, for example provides a libxml2, but (unhelpfully) does not
provide the .pc file to go along with it.
- Do not accept same bad versions refused by XML::LibXML
on share install
0.02 2017-08-08 15:17:54 -0400
- Require Alien::Build 0.73 for bug fixes
related to parallel builds
0.01 2017-03-30 18:05:22 -0400
- initial version

74
perl-Alien-Libxml2.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package perl-Alien-Libxml2
#
# Copyright (c) 2019 SUSE LLC.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Alien-Libxml2
Version: 0.11
Release: 0
%define cpan_name Alien-Libxml2
Summary: Install the C libxml2 library on your system
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Alien::Base) >= 0.73
BuildRequires: perl(Alien::Build) >= 1.60
BuildRequires: perl(Alien::Build::MM) >= 1.60
BuildRequires: perl(Alien::Build::Plugin::Build::SearchDep) >= 0.35
BuildRequires: perl(Alien::Build::Plugin::Prefer::BadVersion) >= 1.05
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Test2::V0) >= 0.000060
BuildRequires: perl(Test::Alien)
Requires: perl(Alien::Base) >= 0.73
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl-URI
BuildRequires: perl(Mojo::DOM58)
BuildRequires: perl(Sort::Versions)
BuildRequires: pkgconfig(libxml-2.0) >= 2.9.0
# MANUAL END
%description
This module provides libxml2 for other modules to use. There was an already
existing Alien::LibXML, but it uses the older Alien::Build::ModuleBuild and
has not been actively maintained for a while.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc alienfile author.yml Changes README
%license LICENSE
%changelog