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

Contents of /updates/infra_2/perl-URPM/current/SPECS/perl-URPM.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 619291 - (show annotations) (download)
Thu May 1 12:39:03 2014 UTC (7 years, 3 months ago) by tmb
File size: 2257 byte(s)
bump URPM.xs buffer size to 128k for hdlist generation (fix from tv)
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.40.3
6 %define subrel 1
7 %define release %mkrel 1
8
9 %define group %(perl -e 'printf "%%s\\n", "%_vendor" =~ /\\bmandr|\\bmageia/i ? "Development/Perl" : "Applications/CPAN"')
10 %define rpm_version %(rpm -q --queryformat '%|EPOCH?{[%{EPOCH}:%{VERSION}]}:{%{VERSION}}|' rpm)
11
12 %{expand:%%define compat_makeinstall_std %(perl -e 'printf "%%s\n", "%{?makeinstall_std:1}" ? "%%makeinstall_std" : "%%{__make} install PREFIX=%%{buildroot}%%{_prefix}"')}
13 %{expand:%%define compat_perl_vendorarch %(perl -MConfig -e 'printf "%%s\n", "%{?perl_vendorarch:1}" ? "%%{perl_vendorarch}" : "$Config{installvendorarch}"')}
14
15 Summary: URPM module for perl
16 Name: %{name}
17 Version: %{version}
18 Release: %{release}
19 License: GPL or Artistic
20 Group: %{group}
21 Source: %{real_name}-%{version}.tar.xz
22 Patch0: URPM.xs-buffer-128k.patch
23 URL: http://svnweb.mageia.org/soft/rpm/perl-URPM/
24 BuildRequires: perl-devel
25 BuildRequires: rpm-devel
26 BuildRequires: perl(MDV::Packdrakeng)
27 # For tests:
28 BuildRequires: perl-Test-Pod
29
30 # we can now expect librpm API to be backward compatible
31 Requires: rpm >= %{rpm_version}
32 Requires: perl(MDV::Packdrakeng)
33 Provides: perl(URPM::Build) = %{version}-%{release}
34 Provides: perl(URPM::Resolve) = %{version}-%{release}
35 Provides: perl(URPM::Signature) = %{version}-%{release}
36
37
38 %define _requires_exceptions perl(URPM::DB)\\|perl(URPM::Package)\\|perl(URPM::Transaction)
39
40 %description
41 The URPM module allows you to manipulate rpm files, rpm header files and
42 hdlist files and manage them in memory.
43
44 %prep
45 %setup -q -n %{real_name}-%{version}
46 %patch0 -p1
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 NEWS
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.28