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

Contents of /cauldron/perl-URPM/current/SPECS/perl-URPM.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153855 - (show annotations) (download)
Tue Oct 11 08:34:11 2011 UTC (12 years, 11 months ago) by dmorgan
File size: 2317 byte(s)
Add subrel for testing
1 # $Id: perl-URPM.spec 36978 2006-06-12 10:31:28Z rafael $
2
3 %define name perl-URPM
4 %define real_name URPM
5 %define version 3.38.4
6 %define release %mkrel 1
7
8 # Use subrel to have an higher release in update_testing, the time we test rpm 4.9
9 %define subrel 2
10
11 %define group %(perl -e 'printf "%%s\\n", "%_vendor" =~ /\\bmandr|\\bmageia/i ? "Development/Perl" : "Applications/CPAN"')
12 %define rpm_version %(rpm -q --queryformat '%|EPOCH?{[%{EPOCH}:%{VERSION}]}:{%{VERSION}}|' rpm)
13
14 %{expand:%%define compat_makeinstall_std %(perl -e 'printf "%%s\n", "%{?makeinstall_std:1}" ? "%%makeinstall_std" : "%%{__make} install PREFIX=%%{buildroot}%%{_prefix}"')}
15 %{expand:%%define compat_perl_vendorarch %(perl -MConfig -e 'printf "%%s\n", "%{?perl_vendorarch:1}" ? "%%{perl_vendorarch}" : "$Config{installvendorarch}"')}
16
17 Summary: URPM module for perl
18 Name: %{name}
19 Version: %{version}
20 Release: %{release}
21 License: GPL or Artistic
22 Group: %{group}
23 Source: %{real_name}-%{version}.tar.xz
24 URL: http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/rpm/perl-URPM/
25 BuildRequires: perl-devel
26 BuildRequires: rpm-devel
27 BuildRequires: perl(MDV::Packdrakeng)
28 # For tests:
29 BuildRequires: perl-Test-Pod
30
31 # we can now expect librpm API to be backward compatible
32 Requires: rpm >= %{rpm_version}
33 Requires: perl(MDV::Packdrakeng)
34 Provides: perl(URPM::Build) = %{version}-%{release}
35 Provides: perl(URPM::Resolve) = %{version}-%{release}
36 Provides: perl(URPM::Signature) = %{version}-%{release}
37
38
39 %define _requires_exceptions perl(URPM::DB)\\|perl(URPM::Package)\\|perl(URPM::Transaction)
40
41 %description
42 The URPM module allows you to manipulate rpm files, rpm header files and
43 hdlist files and manage them in memory.
44
45 %prep
46 %setup -q -n %{real_name}-%{version}
47
48 %build
49 %{__perl} Makefile.PL INSTALLDIRS=vendor
50 # (tv) fix segfaulting (#61144); -O1 is OK, -O2 is not, the flag that made the difference is -fno-gcse:
51 # (tv) 2011-03-07: -fno-gcse is no more enough with newer gcc:
52 %{__make} OPTIMIZE="$RPM_OPT_FLAGS -O1"
53
54 %check
55 %{__make} test
56
57 %install
58 %{__rm} -rf %{buildroot}
59 %{compat_makeinstall_std}
60
61 %clean
62 %{__rm} -rf %{buildroot}
63
64 %files
65 %defattr(-,root,root)
66 %doc README ChangeLog
67 %{_mandir}/man3/*
68 %{compat_perl_vendorarch}/URPM.pm
69 %{compat_perl_vendorarch}/URPM
70 %dir %{compat_perl_vendorarch}/auto/URPM
71 %{compat_perl_vendorarch}/auto/URPM/URPM.so

  ViewVC Help
Powered by ViewVC 1.1.30