source: trunk/server/fedora/specs/whoisd.spec @ 2493

Last change on this file since 2493 was 2066, checked in by achernya, 13 years ago
Merge branches/fc15-dev to trunk
File size: 1.4 KB
Line 
1Summary:   whoisd for <scripts.mit.edu> (virtualhost aware)
2Group:     Applications/System
3Name:      whoisd
4Version:   0.%{scriptsversion}
5Release:   1
6Vendor:    The scripts.mit.edu Team (scripts@mit.edu)
7URL:       http://scripts.mit.edu
8License:   GPL
9Source0:   %{name}.tar.gz
10
11%define debug_package %{nil}
12
13Requires:      python-twisted-core
14BuildRequires: systemd-units
15
16Requires(post):   systemd-units
17Requires(preun):  systemd-units
18Requires(postun): systemd-units
19Requires(post):   systemd-sysv
20
21%description
22
23
24%prep
25%setup -q -n %{name}
26
27%build
28./configure
29
30%install
31make install DESTDIR=$RPM_BUILD_ROOT exec_prefix=/usr/local
32
33%post
34if [ $1 -eq 1 ] ; then
35    # Initial installation
36    /bin/systemctl enable scripts-whoisd.service >/dev/null 2>&1 || :
37fi
38
39%preun
40if [ $1 -eq 0 ]; then
41    /bin/systemctl --no-reload disable scripts-whoisd.service >/dev/null 2>&1 || :
42    /bin/systemctl stop scripts-whoisd.service > /dev/null 2>&1 || :
43fi
44
45%postun
46/bin/systemctl daemon-reload >/dev/null 2>&1 || :
47if [ $1 -ge 1 ]; then
48    /bin/systemctl try-restart scripts-whoisd.service >/dev/null 2>&1 || :
49fi
50
51%files
52%defattr(0644,root,root,-)
53/usr/local/libexec/whoisd.tac
54%defattr(0644,root,root)
55/lib/systemd/system/scripts-whoisd.service
56
57%changelog
58* Thu Aug 25 2011 Alexander Chernyakhovsky <achernya@mit.edu> 0-1
59- package systemd service file
60
61* Tue Jun 03 2008 Joe Presbrey <presbrey@mit.edu> 0.00
62- prerelease
Note: See TracBrowser for help on using the repository browser.