/[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 196303 - (show annotations) (download)
Sun Jan 15 03:17:44 2012 UTC (12 years, 8 months ago) by blino
File size: 2413 byte(s)
- 3.38.6
- support kernel 3.x in kmod resolution

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.6
6 %define release %mkrel 1
7
8 # Use subrel to have an higher release in update_testing, the time we test rpm 4.9 w/o libio
9 %define subrel 4
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 Patch0: URPM-3.38.5-switch-from-forking-unpacker-to-using-librpm.diff
25 URL: http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/rpm/perl-URPM/
26 BuildRequires: perl-devel
27 BuildRequires: rpm-devel
28 BuildRequires: perl(MDV::Packdrakeng)
29 # For tests:
30 BuildRequires: perl-Test-Pod
31
32 # we can now expect librpm API to be backward compatible
33 Requires: rpm >= %{rpm_version}
34 Requires: perl(MDV::Packdrakeng)
35 Provides: perl(URPM::Build) = %{version}-%{release}
36 Provides: perl(URPM::Resolve) = %{version}-%{release}
37 Provides: perl(URPM::Signature) = %{version}-%{release}
38
39
40 %define _requires_exceptions perl(URPM::DB)\\|perl(URPM::Package)\\|perl(URPM::Transaction)
41
42 %description
43 The URPM module allows you to manipulate rpm files, rpm header files and
44 hdlist files and manage them in memory.
45
46 %prep
47 %setup -q -n %{real_name}-%{version}
48 %apply_patches
49
50 %build
51 %{__perl} Makefile.PL INSTALLDIRS=vendor
52 # (tv) fix segfaulting (#61144); -O1 is OK, -O2 is not, the flag that made the difference is -fno-gcse:
53 # (tv) 2011-03-07: -fno-gcse is no more enough with newer gcc:
54 %{__make} OPTIMIZE="$RPM_OPT_FLAGS -O1"
55
56 %check
57 %{__make} test
58
59 %install
60 %{__rm} -rf %{buildroot}
61 %{compat_makeinstall_std}
62
63 %clean
64 %{__rm} -rf %{buildroot}
65
66 %files
67 %defattr(-,root,root)
68 %doc README ChangeLog
69 %{_mandir}/man3/*
70 %{compat_perl_vendorarch}/URPM.pm
71 %{compat_perl_vendorarch}/URPM
72 %dir %{compat_perl_vendorarch}/auto/URPM
73 %{compat_perl_vendorarch}/auto/URPM/URPM.so

  ViewVC Help
Powered by ViewVC 1.1.30