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

  ViewVC Help
Powered by ViewVC 1.1.30