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

Contents of /updates/2/perl-URPM/current/SPECS/perl-URPM.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30