source: pbconf/devel/project-builder/rpm/project-builder.spec @ 2345

Last change on this file since 2345 was 2345, checked in by bruno, 11 months ago

Fixes build dependencies for pb's rpm

File size: 1.5 KB
Line 
1#
2# $Id$
3#
4%define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
5%define srcname PBPKG
6
7Name:       PBPKG
8Version:    PBVER
9Release:    PBTAGPBSUF
10Summary:    PBSUMMARY
11Summary(fr):    Project Builder ou pb produit des paquets pour diverses distributions
12License:    PBLIC
13Group:      PBGRP
14Url:        PBURL
15Source:     PBREPO/PBSRC
16BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
17Requires:   perl >= 5.6.2,perl-DateManip,perl-ProjectBuilder,perl-File-MimeInfo,PBDEP
18BuildRequires: perl-DateManip,perl-ProjectBuilder,perl-File-MimeInfo
19PBBUILDARCH:    noarch
20PBBUILDDEP
21
22%description
23PBDESC
24
25%description -l fr
26Project Builder ou pb est un programme pour produire des paquets pour
27diverses distributions.
28Il réalise cela en minimisant la duplication des informations requises
29et par un jeu de fichiers de configuration très simples.
30
31%prep
32%setup -q -n %{srcname}-%{version}PBEXTDIR
33
34%build
35PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
36make
37
38%install
39%{__rm} -rf $RPM_BUILD_ROOT
40make DESTDIR=${RPM_BUILD_ROOT} install
41find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
42find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
43
44%check
45make test
46
47%clean
48%{__rm} -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(-,root,root)
52%doc NEWS AUTHORS COPYING README
53%{perl_vendorlib}/ProjectBuilder/
54%{_bindir}/pb*
55%{_mandir}/man1/*
56%{_mandir}/man3/*
57
58%changelog
59PBLOG
Note: See TracBrowser for help on using the repository browser.