Compare commits

3 Commits

6 changed files with 88 additions and 27 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-RPM2/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-RPM2)

View File

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

3
RPM2-1.4.tar.gz Normal file
View File

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

36
cpanspec.yml Normal file
View File

@@ -0,0 +1,36 @@
---
#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

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 16 18:32:02 UTC 2018 - asterios.dramis@gmail.com
- Update to version 1.4:
* Remove bogus exports to fix build with RPM 4.14
-------------------------------------------------------------------
Thu Aug 11 22:29:55 UTC 2016 - asterios.dramis@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-RPM2
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,50 +12,57 @@
# 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/
#
%define cpan_name RPM2
Name: perl-RPM2
Version: 1.3
Version: 1.400.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
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/RPM2/
Source0: http://search.cpan.org/CPAN/authors/id/L/LK/LKUNDRAK/RPM2-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/L/LK/LKUNDRAK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
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: rpm-devel >= 4.6
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}
# MANUAL END
%description
The RPM2 module provides an object-oriented interface to querying both the
installed RPM database as well as files on the filesystem.
%prep
%setup -q -n RPM2-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl ./Build.PL
./Build
%install
./Build pure_install --destdir %{buildroot} --installdirs vendor
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%perl_process_packlist
%perl_gen_filelist
perl Build.PL --installdirs=vendor optimize="%{optflags}"
./Build build --flags=%{?_smp_mflags}
%check
./Build test verbose=1
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%changelog