source: ProjectBuilder/pbconf/devel/ProjectBuilder/rpm/perl-ProjectBuilder.spec @ 2138

Last change on this file since 2138 was 2138, checked in by Bruno Cornec, 5 years ago

Fix missing conf file moved into /usr/share/pb for rpm !

File size: 1.4 KB
Line 
1#
2# $Id$
3#
4%define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
5%define srcname PBPKG
6
7Summary:    PBSUMMARY
8Summary(fr):    Module Perl pour le support de divers OS (Linux/Solaris/...)
9
10Name:       PBREALPKG
11Version:    PBVER
12Release:    PBTAGPBSUF
13License:    PBLIC
14Group:      PBGRP
15Url:        PBURL
16Source:     PBREPO/PBSRC
17BuildRoot:  %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
18PBBUILDARCH:    noarch
19Requires:   perl >= 5.6.2,PBDEP
20PBBUILDDEP
21
22%description
23PBDESC
24
25%description -l fr
26PBREALPKG est un ensemble de fonctions pour aider à développer
27des projets perl et à traiter de diverses distributions Linux.
28
29%prep
30%setup -q -n %{srcname}-%{version}PBEXTDIR
31
32%build
33PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR SYSCONFDIR=%{_sysconfdir}/pb CONFDIR=%{_datadir}/pb MANDIR=%{_mandir}
34make %{?_smp_mflags}
35
36%install
37%{__rm} -rf $RPM_BUILD_ROOT
38make DESTDIR=${RPM_BUILD_ROOT} install
39find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
40find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
41
42PBMKTEST
43
44%clean
45%{__rm} -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(-,root,root,-)
49%doc NEWS AUTHORS
50%doc COPYING README
51%dir %{_datadir}/pb
52%config %{_datadir}/pb/*
53%config(noreplace) %{_sysconfdir}/pb
54
55%{perlvendorlib}/*
56%{_bindir}/*
57%{_mandir}/man1/*
58%{_mandir}/man3/*
59%{_mandir}/man5/*
60
61%changelog
62PBLOG
Note: See TracBrowser for help on using the repository browser.