/[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 144431 - (show annotations) (download)
Sat Sep 17 10:21:40 2011 UTC (13 years, 2 months ago) by tv
File size: 2216 byte(s)
- fix calling method in string
  (spoted by perl_checker, introduced in revision mga#267800 ("honour search
   medias when using --auto-select") but teuf on Fri Apr 23 2010
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 %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://svn.mandriva.com/cgi-bin/viewvc.cgi/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
45 %build
46 %{__perl} Makefile.PL INSTALLDIRS=vendor
47 # (tv) fix segfaulting (#61144); -O1 is OK, -O2 is not, the flag that made the difference is -fno-gcse:
48 # (tv) 2011-03-07: -fno-gcse is no more enough with newer gcc:
49 %{__make} OPTIMIZE="$RPM_OPT_FLAGS -O1"
50
51 %check
52 %{__make} test
53
54 %install
55 %{__rm} -rf %{buildroot}
56 %{compat_makeinstall_std}
57
58 %clean
59 %{__rm} -rf %{buildroot}
60
61 %files
62 %defattr(-,root,root)
63 %doc README ChangeLog
64 %{_mandir}/man3/*
65 %{compat_perl_vendorarch}/URPM.pm
66 %{compat_perl_vendorarch}/URPM
67 %dir %{compat_perl_vendorarch}/auto/URPM
68 %{compat_perl_vendorarch}/auto/URPM/URPM.so

  ViewVC Help
Powered by ViewVC 1.1.30