/[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 142599 - (show annotations) (download)
Mon Sep 12 06:36:55 2011 UTC (10 years ago) by tv
File size: 2174 byte(s)
reverse previous uneeded commit (SILENT)
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.2
6 %define release %mkrel 5
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
26 # we can now expect librpm API to be backward compatible
27 Requires: rpm >= %{rpm_version}
28 Requires: perl(MDV::Packdrakeng)
29 Provides: perl(URPM::Build) = %{version}-%{release}
30 Provides: perl(URPM::Resolve) = %{version}-%{release}
31 Provides: perl(URPM::Signature) = %{version}-%{release}
32
33
34 %define _requires_exceptions perl(URPM::DB)\\|perl(URPM::Package)\\|perl(URPM::Transaction)
35
36 %description
37 The URPM module allows you to manipulate rpm files, rpm header files and
38 hdlist files and manage them in memory.
39
40 %prep
41 %setup -q -n %{real_name}-%{version}
42
43 %build
44 %{__perl} Makefile.PL INSTALLDIRS=vendor
45 # (tv) fix segfaulting (#61144); -O1 is OK, -O2 is not, the flag that made the difference is -fno-gcse:
46 # (tv) 2011-03-07: -fno-gcse is no more enough with newer gcc:
47 %{__make} OPTIMIZE="$RPM_OPT_FLAGS -O1"
48
49 %check
50 %{__make} test
51
52 %install
53 %{__rm} -rf %{buildroot}
54 %{compat_makeinstall_std}
55
56 %clean
57 %{__rm} -rf %{buildroot}
58
59 %files
60 %defattr(-,root,root)
61 %doc README ChangeLog
62 %{_mandir}/man3/*
63 %{compat_perl_vendorarch}/URPM.pm
64 %{compat_perl_vendorarch}/URPM
65 %dir %{compat_perl_vendorarch}/auto/URPM
66 %{compat_perl_vendorarch}/auto/URPM/URPM.so

  ViewVC Help
Powered by ViewVC 1.1.28