source: ProjectBuilder/pbconf/devel/rpmbootstrap/rpm/rpmbootstrap.spec@ 1740

Last change on this file since 1740 was 1740, checked in by Bruno Cornec, 11 years ago
  • All rpm packages need rpmbuild to be built (added automatically by pb in the VM) thus solving part of #53
File size: 1.3 KB
RevLine 
[972]1#
2# $Id$
3#
[1654]4%define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
[972]5%define srcname PBPKG
6
7Summary: PBSUMMARY
[1336]8Summary(fr): Outil similaire à debootstrap pour une distribution RPM.
[972]9
10Name: PBPKG
11Version: PBVER
12Release: PBTAGPBSUF
[1150]13License: PBLIC
[972]14Group: PBGRP
15Url: PBURL
16Source: PBREPO/PBSRC
17BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
[1654]18PBBUILDARCH: noarch
[1310]19Requires: perl >= 5.8.4,perl-ProjectBuilder,perl-libwww-perl,wget,PBDEP
[1740]20BuildRequires: rpmbuild
[972]21
22%description
23PBDESC
24
25%description -l fr
[1151]26La commande rpmbootstrap crée un environnement chrooté pour la distribution
27RPM concernée.
[972]28Il est similaire à debootstrap pour les distributions .deb
29
30%prep
31%setup -q
32
33%build
[1654]34PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
[972]35make
36
37%install
38%{__rm} -rf $RPM_BUILD_ROOT
39make DESTDIR=${RPM_BUILD_ROOT} install
40find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
41find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
42
[1168]43PBMKTEST
[972]44
45%clean
46%{__rm} -rf $RPM_BUILD_ROOT
47
48%files
49%defattr(-,root,root)
50%doc NEWS AUTHORS
51%doc INSTALL COPYING README
52
[981]53#%{perlvendorlib}/*
[972]54%{_bindir}/*
55%{_mandir}/man1/*
[981]56#%{_mandir}/man3/*
[972]57
58%changelog
59PBLOG
Note: See TracBrowser for help on using the repository browser.