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