forked from pool/perl-RPM2
Compare commits
3 Commits
Author | SHA256 | Date | |
---|---|---|---|
fbf56914ad | |||
|
16eac194ca | ||
aa2ef40ebd |
12
README.md
12
README.md
@@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
## Build Results
|
|
||||||
|
|
||||||
Current state of perl in openSUSE:Factory is
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
The current state of perl in the devel project build (devel:languages:perl)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
36
cpanspec.yml
36
cpanspec.yml
@@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
#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:
|
|
||||||
# baz.patch: PATCH-FIX-OPENSUSE
|
|
||||||
preamble: |-
|
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: rpm-devel >= 4.6
|
|
||||||
#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: |-
|
|
||||||
# sed on %{name}.files
|
|
||||||
#license: SUSE-NonFree
|
|
||||||
#skip_noarch: 1
|
|
||||||
#custom_build: |-
|
|
||||||
#./Build build flags=%{?_smp_mflags} --myflag
|
|
||||||
#custom_test: |-
|
|
||||||
#startserver && make test
|
|
||||||
#ignore_requires: Bizarre::Module
|
|
||||||
skip_doc: hdlist-test.hdr test-rpm-1.0-1.noarch.rpm test-rpm-1.0-1.src.rpm
|
|
||||||
#add_doc: files to add to docs
|
|
||||||
#misc: |-
|
|
||||||
#anything else to be added to spec file
|
|
||||||
#follows directly after %files section, so it can contain new blocks or also
|
|
||||||
#changes to %files section
|
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-RPM2
|
# spec file for package perl-RPM2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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,57 +12,50 @@
|
|||||||
# 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 https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define cpan_name RPM2
|
|
||||||
Name: perl-RPM2
|
Name: perl-RPM2
|
||||||
Version: 1.400.0
|
Version: 1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
# 1.4 -> normalize -> 1.400.0
|
|
||||||
%define cpan_version 1.4
|
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
||||||
Summary: Perl bindings for the RPM Package Manager API
|
Summary: Perl bindings for the RPM Package Manager API
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Source0: https://cpan.metacpan.org/authors/id/L/LK/LKUNDRAK/%{cpan_name}-%{cpan_version}.tar.gz
|
Group: Development/Libraries/Perl
|
||||||
Source1: cpanspec.yml
|
Url: http://search.cpan.org/dist/RPM2/
|
||||||
Source100: README.md
|
Source0: http://search.cpan.org/CPAN/authors/id/L/LK/LKUNDRAK/RPM2-%{version}.tar.gz
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
|
||||||
BuildRequires: perl(ExtUtils::CBuilder)
|
|
||||||
BuildRequires: perl(Module::Build) >= 0.42
|
|
||||||
Provides: perl(RPM2) = %{version}
|
|
||||||
Provides: perl(RPM2::DB)
|
|
||||||
Provides: perl(RPM2::Header)
|
|
||||||
Provides: perl(RPM2::PackageIterator)
|
|
||||||
Provides: perl(RPM2::Transaction)
|
|
||||||
%undefine __perllib_provides
|
|
||||||
%{perl_requires}
|
|
||||||
# MANUAL BEGIN
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: rpm-devel >= 4.6
|
BuildRequires: rpm-devel >= 4.6
|
||||||
# MANUAL END
|
BuildRequires: perl(ExtUtils::CBuilder)
|
||||||
|
BuildRequires: perl(Module::Build) >= 0.4200
|
||||||
|
Requires: perl(File::Basename)
|
||||||
|
Requires: perl(File::Spec)
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The RPM2 module provides an object-oriented interface to querying both the
|
The RPM2 module provides an object-oriented interface to querying both the
|
||||||
installed RPM database as well as files on the filesystem.
|
installed RPM database as well as files on the filesystem.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
%setup -q -n RPM2-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
perl ./Build.PL
|
||||||
./Build build --flags=%{?_smp_mflags}
|
./Build
|
||||||
|
|
||||||
%check
|
|
||||||
./Build test
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
./Build pure_install --destdir %{buildroot} --installdirs vendor
|
||||||
|
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
||||||
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
|
%check
|
||||||
|
./Build test verbose=1
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user