/[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 675428 - (show annotations) (download)
Sun Sep 14 15:10:19 2014 UTC (6 years, 10 months ago) by tv
File size: 2219 byte(s)
- make it compatible with rpm-4.12.0
- use new recommends tags instead of suggests ones
- add support for generating @recommends@ lines instead of @suggests@ ones in
  synthesis
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.50
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 URL: http://search.cpan.org/~tvignaud/URPM/URPM.pm
23 BuildRequires: perl-devel
24 BuildRequires: rpm-devel >= 4.11.3
25 BuildRequires: perl(MDV::Packdrakeng)
26 # For tests:
27 BuildRequires: perl-Test-Pod
28
29 # we can now expect librpm API to be backward compatible
30 Requires: rpm >= %{rpm_version}
31 Requires: perl(MDV::Packdrakeng)
32 Provides: perl(URPM::Build) = %{version}-%{release}
33 Provides: perl(URPM::Resolve) = %{version}-%{release}
34 Provides: perl(URPM::Signature) = %{version}-%{release}
35
36
37 %define _requires_exceptions perl(URPM::DB)\\|perl(URPM::Package)\\|perl(URPM::Transaction)
38
39 %description
40 The URPM module allows you to manipulate rpm files, rpm header files and
41 hdlist files and manage them in memory.
42
43 %prep
44 %setup -q -n %{real_name}-%{version}
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.28