source: ProjectBuilder/projects/mondorescue/pbconf/devel/MondoRescue/rpm/perl-MondoRescue.spec@ 1059

Last change on this file since 1059 was 1059, checked in by Bruno Cornec, 14 years ago

r3905@wsip-70-165-197-185: bruno | 2010-06-19 20:55:52 +0200

  • devel version of mondorescue now builds correctly
File size: 1.3 KB
RevLine 
[384]1#
[689]2# $Id$
[384]3#
[689]4%define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
5%define srcname PBPKG
[384]6
[959]7Summary: PBSUMMARY
[689]8Summary(fr): Une bibliotheque de fonction de bas niveau pour le projet MondoRescue
[384]9
[689]10Name: PBREALPKG
[384]11Version: PBVER
12Release: PBTAGPBSUF
[488]13License: PBLIC
[384]14Group: PBGRP
[488]15Url: PBURL
[429]16Source: PBREPO/PBSRC
[689]17BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
18BuildArch: noarch
19Requires: perl >= 5.8.4, PBDEP
[384]20
21%description
[689]22PBDESC
[384]23
24%description -l fr
[689]25Une bibliotheque de fonction de bas niveau pour le projet MondoRescue
[384]26
27%prep
[689]28%setup -q -n %{srcname}-%{version}
[384]29
30%build
[1059]31%{__perl} Makefile.PL PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR CONFDIR=%{_sysconfdir} CACHEDIR=%{_var}/cache TARGET=%{_exec_prefix}
[689]32make %{?_smp_mflags}
[384]33
34%install
[488]35rm -rf $RPM_BUILD_ROOT
[384]36make DESTDIR=$RPM_BUILD_ROOT install
[689]37find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
38find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
[384]39
[689]40%check
41make test
42
[384]43%clean
[689]44%{__rm} -rf $RPM_BUILD_ROOT
[384]45
46%files
[960]47%defattr(-,root,root,-)
48%config(noreplace) %{_sysconfdir}/PBPROJ
49%doc ChangeLog INSTALL COPYING README NEWS AUTHORS
[384]50
[960]51%{_bindir}/*
52%{_mandir}/man1/*
[689]53%{perlvendorlib}/*
54%{_mandir}/man3/*
[1055]55%{_mandir}/man5/*
56#%{_datadir}/PBPROJ
57#%{_var}/cache/PBPROJ
[384]58
[960]59
[384]60%changelog
61PBLOG
Note: See TracBrowser for help on using the repository browser.