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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 619291 - (hide annotations) (download)
Thu May 1 12:39:03 2014 UTC (10 years, 5 months ago) by tmb
File size: 2257 byte(s)
bump URPM.xs buffer size to 128k for hdlist generation (fix from tv)
1 jquelin 7310 # $Id: perl-URPM.spec 36978 2006-06-12 10:31:28Z rafael $
2    
3     %define name perl-URPM
4     %define real_name URPM
5 tv 410121 %define version 3.40.3
6 tmb 619291 %define subrel 1
7 tv 206168 %define release %mkrel 1
8 jquelin 7310
9 blino 23430 %define group %(perl -e 'printf "%%s\\n", "%_vendor" =~ /\\bmandr|\\bmageia/i ? "Development/Perl" : "Applications/CPAN"')
10 jquelin 7310 %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 blino 23429 Release: %{release}
19 jquelin 7310 License: GPL or Artistic
20     Group: %{group}
21 tv 141926 Source: %{real_name}-%{version}.tar.xz
22 tmb 619291 Patch0: URPM.xs-buffer-128k.patch
23 dmorgan 206234 URL: http://svnweb.mageia.org/soft/rpm/perl-URPM/
24 tv 142599 BuildRequires: perl-devel
25 misc 71331 BuildRequires: rpm-devel
26 jquelin 7310 BuildRequires: perl(MDV::Packdrakeng)
27 tv 142600 # For tests:
28     BuildRequires: perl-Test-Pod
29 jquelin 7310
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 tmb 619291 %patch0 -p1
47 jquelin 7310
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 65812 # (tv) 2011-03-07: -fno-gcse is no more enough with newer gcc:
52     %{__make} OPTIMIZE="$RPM_OPT_FLAGS -O1"
53 jquelin 7310
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 tv 197648 %doc README NEWS
67 jquelin 7310 %{_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