Last change
on this file since 1892 was 476, checked in by Bruno Cornec, 16 years ago |
moving post install from %post to a dedicated external perl script
|
File size:
1.4 KB
|
Line | |
---|
1 | #
|
---|
2 | # $Id$
|
---|
3 | #
|
---|
4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
5 |
|
---|
6 | Summary: dploy.org common tools
|
---|
7 | Summary(fr): Outils communs pour dploy.org
|
---|
8 |
|
---|
9 | Name: PBPKG
|
---|
10 | Version: PBVER
|
---|
11 | Release: PBTAGPBSUF
|
---|
12 | License: GPL
|
---|
13 | Group: PBGRP
|
---|
14 | Url: PBURL
|
---|
15 | Source: PBSRC
|
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
17 | BuildArch: noarch
|
---|
18 | Requires: openssh, PBDEP
|
---|
19 |
|
---|
20 | %description
|
---|
21 | PBDESC
|
---|
22 |
|
---|
23 | %description -l fr
|
---|
24 | Outils communs pour dploy.org
|
---|
25 |
|
---|
26 | %prep
|
---|
27 | %setup -q
|
---|
28 |
|
---|
29 | %build
|
---|
30 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
31 | make
|
---|
32 |
|
---|
33 | %install
|
---|
34 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
35 | export DESTDIR=$RPM_BUILD_ROOT
|
---|
36 | export PREFIX=%{_exec_prefix}
|
---|
37 | export CONFDIR=%{_sysconfdir}/PBPROJ
|
---|
38 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
39 | ./install.sh
|
---|
40 | find ${RPM_BUILD_ROOT} -name perllocal.pod | xargs rm -f
|
---|
41 |
|
---|
42 |
|
---|
43 | %clean
|
---|
44 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
45 |
|
---|
46 | %files
|
---|
47 | %defattr(-,root,root)
|
---|
48 | %doc ChangeLog
|
---|
49 | %doc INSTALL COPYING README
|
---|
50 | %config(noreplace) %{_sysconfdir}/PBPROJ
|
---|
51 | %doc AUTHORS
|
---|
52 | #NEWS
|
---|
53 |
|
---|
54 | %{perlvendorlib}/*
|
---|
55 | %{_bindir}/*
|
---|
56 | %{_mandir}/man1/*
|
---|
57 | %{_mandir}/man3/*
|
---|
58 |
|
---|
59 | %pre
|
---|
60 | # Create dploy Account and group if needed
|
---|
61 | grep -qE '^PBPROJ:' %{_sysconfdir}/group
|
---|
62 | if [ $? -ne 0 ]; then
|
---|
63 | groupadd PBPROJ
|
---|
64 | fi
|
---|
65 | grep -qE '^PBPROJ:' %{_sysconfdir}/passwd
|
---|
66 | if [ $? -ne 0 ]; then
|
---|
67 | useradd -g PBPROJ PBPROJ
|
---|
68 | fi
|
---|
69 |
|
---|
70 | %post
|
---|
71 | %{_bindir}/dploy-common-post
|
---|
72 |
|
---|
73 | %changelog
|
---|
74 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.