/[packages]/cauldron/perl-RPM4/current/SPECS/perl-RPM4.spec
ViewVC logotype

Annotation of /cauldron/perl-RPM4/current/SPECS/perl-RPM4.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 185219 - (hide annotations) (download)
Wed Dec 21 00:45:55 2011 UTC (12 years, 9 months ago) by tv
File size: 1578 byte(s)
- fix for a random segfault
- report script errors
1 jquelin 14433 # This spec is in the SVN
2     # $Id: perl-RPM4.spec 141783 2007-03-12 14:05:45Z nanardon $
3    
4     %define module RPM4
5     %define name perl-%{module}
6 tv 185219 %define version 0.26
7     %define release %mkrel 1
8 jquelin 14433
9     %define rpm_version %(rpm -q --queryformat '%|EPOCH?{[%{EPOCH}:%{VERSION}]}:{%{VERSION}}|' rpm)
10    
11     Name: %{name}
12     Version: %{version}
13     Release: %{release}
14     Summary: Perl bindings to use rpmlib and manage hdlist files
15     License: GPL
16     Group: Development/Perl
17     Source: %{module}-%{version}.tar.gz
18 tv 182199 # disable 3 tests with rpm-4.8:
19     Patch0: RPM4-0.25-disable-more-tests.diff
20 jquelin 14433 Url: http://search.cpan.org/dist/RPM4/
21 sander85 104940
22     BuildRequires: perl-devel >= 5.8.0
23     BuildRequires: rpm-devel
24     BuildRequires: perl-Digest-SHA1
25     BuildRequires: librpmconstant-devel
26     BuildRequires: packdrake
27     BuildRequires: perl-MDV-Packdrakeng
28     BuildRequires: gnupg
29    
30 jquelin 14433 Requires: perl
31     # we can now expect librpm API to be at least backward compatible
32     Requires: rpm >= %{rpm_version}
33    
34     %description
35     This module provides a perl interface to the rpmlib.
36    
37     It allows to write scripts to:
38     - query rpm headers,
39     - query rpm database,
40     - build rpm specs,
41     - install/uninstall specfiles,
42     - check dependencies.
43    
44 tv 183471 It includes:
45 jquelin 14433 - rpm_produced, give what rpm will be produced by a src.rpm or a specfile.
46    
47     %prep
48     %setup -q -n %{module}-%{version}
49 tv 182205 %patch0 -p0
50 jquelin 14433
51     %build
52     %{__perl} Makefile.PL INSTALLDIRS=vendor
53     %make
54    
55     %check
56     PERL5DIR=`pwd`/src/blib/arch TMPDIR=/tmp %make test
57    
58     %clean
59     rm -rf $RPM_BUILD_ROOT
60    
61     %install
62     rm -rf $RPM_BUILD_ROOT
63     %makeinstall_std
64    
65     %files
66     %defattr(-,root,root)
67 tv 165905 %doc README
68 jquelin 14433 %doc examples
69     %_bindir/*
70     %{perl_vendorarch}/*
71     %{_mandir}/*/*
72    
73    

  ViewVC Help
Powered by ViewVC 1.1.30