blob: ea38e0887b967c30631f8c358737ec9915c0a239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
Name: debuginfofs
Version: 0.1
Release: 1%{?dist}
Summary: Network-mountable filesystem for debuginfo
Group: Development/Debuggers
License: GPLv2+
URL: http://fedorapeople.org/gitweb?p=wwoods/public_git/debuginfofs.git
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: wdfs
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
%description
debuginfofs is a network-mountable filesystem that provides the debugging
symbols needed to generate a fully annotated backtrace.
%package server
Summary: Server setup for debuginfofs
Group: Development/Debuggers
Requires: rpm cpio httpd
%description server
Server tools and config files for running a debuginfofs server
%prep
%setup -q
%build
# not needed
%install
rm -rf $RPM_BUILD_ROOT
# client
mkdir -p $RPM_BUILD_ROOT{%{_initrddir},/etc/sysconfig}
install -m 0755 debuginfofs.init $RPM_BUILD_ROOT%{_initrddir}/debuginfofs
install -m 0644 debuginfofs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/debuginfofs
# server
mkdir -p $RPM_BUILD_ROOT{/etc/httpd/conf.d,/usr/sbin}
mkdir -p $RPM_BUILD_ROOT/var/{www,cache}/debuginfofs
install -m 0755 debuginfofs-mirror $RPM_BUILD_ROOT/usr/sbin
#uncomment when this is ready
#install -m 0755 repofs.py $RPM_BUILD_ROOT/usr/sbin
install -m 0644 debuginfofs.conf $RPM_BUILD_ROOT/etc
install -m 0644 dav-debuginfo.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add debuginfofs
%preun
if [ "$1" == "0" ] ; then
/sbin/service debuginfofs stop >/dev/null 2>&1
/sbin/chkconfig --del debuginfofs
fi
%postun
if [ "$1" -ge "1" ] ; then
/sbin/service debuginfofs condrestart >/dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc README.client
%{_initrddir}/debuginfofs
%config(noreplace) /etc/sysconfig/debuginfofs
%files server
%defattr(-,root,root,-)
%doc README TODO COPYING
%dir /var/www/debuginfofs
%dir /var/cache/debuginfofs
%config(noreplace) /etc/debuginfofs.conf
%config /etc/httpd/conf.d/dav-debuginfo.conf
%{_sbindir}/debuginfofs-mirror
%changelog
* Tue Mar 03 2009 Will Woods <wwoods@redhat.com> - 0.1-1
- Package Review: Add COPYING, fix up initscript, clean up specfile
* Mon Feb 23 2009 Will Woods <wwoods@redhat.com> - 0.1-0
- Initial package creation
|