2013-05-27 09:52:38 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-RPM2
|
|
|
|
|
#
|
2018-01-19 20:52:49 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-05-27 09:52:38 +00:00
|
|
|
#
|
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2011-04-02 19:36:19 +00:00
|
|
|
|
|
|
|
|
Name: perl-RPM2
|
2018-01-19 20:52:49 +00:00
|
|
|
Version: 1.4
|
2011-04-02 19:36:19 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Perl bindings for the RPM Package Manager API
|
2013-05-27 09:52:38 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-04-02 19:36:19 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-05-27 09:52:38 +00:00
|
|
|
Url: http://search.cpan.org/dist/RPM2/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/L/LK/LKUNDRAK/RPM2-%{version}.tar.gz
|
|
|
|
|
BuildRequires: perl
|
2016-08-12 05:12:14 +00:00
|
|
|
BuildRequires: pkgconfig
|
2013-05-27 09:52:38 +00:00
|
|
|
BuildRequires: rpm-devel >= 4.6
|
2011-04-02 19:36:19 +00:00
|
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
2016-08-12 05:12:14 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.4200
|
2011-04-02 19:36:19 +00:00
|
|
|
Requires: perl(File::Basename)
|
2013-05-27 09:52:38 +00:00
|
|
|
Requires: perl(File::Spec)
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-08-12 05:12:14 +00:00
|
|
|
%{perl_requires}
|
2011-04-02 19:36:19 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The RPM2 module provides an object-oriented interface to querying both the
|
|
|
|
|
installed RPM database as well as files on the filesystem.
|
|
|
|
|
|
|
|
|
|
%prep
|
2013-05-27 09:52:38 +00:00
|
|
|
%setup -q -n RPM2-%{version}
|
2011-04-02 19:36:19 +00:00
|
|
|
|
|
|
|
|
%build
|
2016-08-12 05:12:14 +00:00
|
|
|
perl ./Build.PL
|
2011-04-02 19:36:19 +00:00
|
|
|
./Build
|
|
|
|
|
|
|
|
|
|
%install
|
2016-08-12 05:12:14 +00:00
|
|
|
./Build pure_install --destdir %{buildroot} --installdirs vendor
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
2011-04-02 19:36:19 +00:00
|
|
|
%perl_process_packlist
|
2013-05-27 09:52:38 +00:00
|
|
|
%perl_gen_filelist
|
2011-04-02 19:36:19 +00:00
|
|
|
|
|
|
|
|
%check
|
2016-08-12 05:12:14 +00:00
|
|
|
./Build test verbose=1
|
2011-04-02 19:36:19 +00:00
|
|
|
|
2013-05-27 09:52:38 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,-)
|
2011-04-02 19:36:19 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
|
2013-05-27 09:52:38 +00:00
|
|
|
%changelog
|