summaryrefslogtreecommitdiff
path: root/perl-RPM.spec
blob: 4524a9d326c29d3a9f05f2bcefa14c38a83842fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
%bcond_with	tests	# perform "make test" (uses rpm database, which must not
			# be broken by gettext-in-header patch)
#
%include	/usr/lib/rpm/macros.perl
Summary:	Native bindings to the RPM Package Manager API for Perl
Summary(pl):	Natywne dowiązania do API zarządcy pakietów RPM dla Perla
Name:		perl-RPM
Version:	0.40
Release:	9
License:	Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/RPM/Perl-RPM-%{version}.tar.gz
# Source0-md5:	f15aa29bd0af0e1102d757ce20500f26
Patch0:		%{name}-43.patch
Patch1:		%{name}-45.patch
URL:		http://www.blackperl.com/Perl-RPM/
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-devel >= 4.4.1
BuildRequires:	rpm-perlprov >= 4.1-13
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes:	Perl-RPM

%description
The Perl-RPM package is an attempt to provide Perl-level access to the
complete application programming interface that is a part of the RPM
Package Manager (RPM). Rather than have scripts rely on executing RPM
commands and parse the resultant output, this modules aims to provide
Perl programmers the ability to do anything that would otherwise have
been done in C or C++.

%description -l pl
Pakiet Perl-RPM to próba dostarczenia dostępu z poziomu Perla do
pełnego interfejsu programistycznego, będącego częścią zarządcy
pakietów RPM. Zamiast polegać na wywoływaniu poleceń RPM i
analizowaniu ich wyjścia, te moduły próbują dostarczyć programistom
perlowym możliwość robienia wszystkiego, co musiałoby być robione w C
lub C++.

%prep
%setup -q -n Perl-RPM-%{version}
%patch -p1
%patch1 -p1

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make} \
	OPTIMIZE="%{rpmcflags}"

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_bindir}/rpmprune
%{perl_vendorarch}/RPM.pm
%{perl_vendorarch}/RPM
%dir %{perl_vendorarch}/auto/RPM
%{perl_vendorarch}/auto/RPM/*.bs
%attr(755,root,root) %{perl_vendorarch}/auto/RPM/*.so
%{_mandir}/man[13]/*