/[smeserver]/rpms/daemontools/sme7/daemontools.spec
ViewVC logotype

Annotation of /rpms/daemontools/sme7/daemontools.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Wed Apr 9 13:51:46 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -0 lines
Add Id to top of spec

1 slords 1.2 # $Id$
2    
3 slords 1.1 %define destdir %buildroot
4     %global myhome /usr/local
5     Buildroot: %_builddir/%name-%version-root
6     License: Check with djb
7     Group: Utilities/System
8     Name: daemontools
9     Provides: daemontools
10     Release: 6%{?dist}
11     Source: http://cr.yp.to/%name/%name-%version.tar.gz
12     Summary: Various tools to start/stop/monitor daemons.
13     %define debug_package %{nil}
14     %define __arch_install_post %{nil}
15     URL: http://cr.yp.to/%name.html
16     Version: 0.76
17    
18     %description
19     daemontools is a collection of tools for managing UNIX services.
20    
21     supervise monitors a service. It starts the service and restarts the
22     service if it dies. Setting up a new service is easy: all supervise
23     needs is a directory with a run script that runs the service.
24    
25     multilog saves error messages to one or more logs. It optionally
26     timestamps each line and, for each log, includes or excludes lines
27     matching specified patterns. It automatically rotates logs to limit
28     the amount of disk space used. If the disk fills up, it pauses and
29     tries again, without losing any data.
30    
31     %prep
32     %setup -c -n %destdir/package
33    
34     %build
35     mkdir -p %destdir%myhome/bin
36     cd admin/%name-%version
37     sed -e 's}^parent.*}parent=/package/admin}' \
38     -e 's} /command/} %destdir/command/}g' \
39     -e 's}-p /command}-p %destdir/command}' \
40     -e 's}ln -s %destdir/command/}ln -s /command/}' \
41     -e 's} /usr/local/bin/} %destdir/usr/local/bin/}g' \
42     -e 's}/usr/local}%myhome}g' \
43     package/upgrade > package/upgrade'{new}'
44    
45     if [ "$?" != 0 ]; then
46     exit 1
47     else
48     mv package/upgrade'{new}' package/upgrade
49     chmod 755 package/upgrade
50     fi
51    
52     echo gcc -O2 --include /usr/include/errno.h > src/conf-cc
53     package/compile
54    
55     COMPILER="Compiler: $(gcc -v 2>&1 | tail -1)"
56     HARDWARE="Hardware: $(uname -m)"
57     LIBRARY="Library: $(rpm -q glibc)"
58     OSVERSION="OSversion: $(uname -sr)"
59     PACKAGER="Packager: %packager"
60     REDHATRELEASE="RedHat release: $(cat /etc/redhat-release)"
61     RPMVERSION="rpm version: $(rpm -q rpm)"
62    
63     echo "The %name rpm was created in the following environment:
64     " > README.rpm
65     echo "$COMPILER
66     $HARDWARE
67     $LIBRARY
68     $OSVERSION
69     $PACKAGER
70     $REDHATRELEASE
71     $RPMVERSION
72    
73     The packager above has made an honest attempt to make sure
74     the package behaves correctly.
75     " >> README.rpm
76    
77     if test "%myhome" != "/usr/local"; then
78     echo "" >> README.rpm
79     echo "You cannot distribute this rpm publicly" >> README.rpm
80     fi
81    
82     mkdir -p %destdir/%{_docdir}/%name-%version
83     mv README.rpm %destdir/%{_docdir}/%name-%version
84     mv package/README %destdir/%{_docdir}/%name-%version
85     mv src/{CHANGES,TODO} %destdir/%{_docdir}/%name-%version
86     mkdir -p %destdir/service
87    
88     %install
89     cd admin/%name-%version
90     package/upgrade
91     /bin/rm %destdir/package/admin/%name-%version/src/*
92     /bin/rm -r %destdir/package/admin/%name-%version/compile
93    
94    
95     %post
96     cd /package/admin/%name-%version
97     package/run
98     echo You may want to add /command to PATH.
99    
100     %clean
101     rm -rf %destdir
102    
103    
104     %changelog
105     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
106     - Clean up spec so package can be built by koji/plague
107    
108     * Tue Apr 24 2007 Charlie Brady <charlieb@e-smith.com> 0.76-6
109     - disable build of debuginfo package.
110    
111     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
112     - Update to new release naming. No functional changes.
113     - Make Packager generic
114    
115     * Tue Dec 20 2005 Charlie Brady <charlieb@e-smith.com> 0.76-4es1
116     - Fixes for build under CentOS4 and FC4.
117     - Move documentation to RedHat canonical location.
118    
119     * Wed Jun 23 2004 Charlie Brady <charlieb@e-smith.com> 0.76-3es1
120     - Adjust compiler configuration to work around glibc errno issue
121    
122     * Thu Aug 23 2001 Mate Wierdl <mw@csi.hu>
123     - adjusted for slashpackage setup
124    
125     %files
126     %defattr(-,root,root)
127     %doc %dir %{_docdir}/%name-%version
128     %doc %{_docdir}/%name-%version/CHANGES
129     %doc %{_docdir}/%name-%version/README*
130     %doc %{_docdir}/%name-%version/TODO
131     %dir%attr(1755,root,root) /package
132     %dir%attr(755,root,root) /command
133     %dir%attr(755,root,root) /service
134     %dir /package/admin/%name-%version/src
135     /package/admin/%name-%version/command
136     /package/admin/%name-%version/package
137     /package/admin/%name
138     /command/*
139     %myhome/bin/*
140    
141    
142    
143    
144    
145    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed