-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstart-stop-daemon.spec
52 lines (42 loc) · 1.31 KB
/
start-stop-daemon.spec
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
%define debug_package %{nil}
Name: start-stop-daemon
Version: 1.18.2
Release: 1%{?dist}
Summary: Start and stop system daemon programs
Group: System Environment/Daemons
License: GPL2
Source: dpkg_%{version}.tar.gz
Prefix: %{_prefix}
Packager: William Garcia
BuildRequires: tar
BuildRequires: make
BuildRequires: gcc
BuildRequires: ncurses-devel
BuildRequires: ncurses
%description
start-stop-daemon is used to control the creation and termination of
system-level processes. Using one of the matching options,
start-stop-daemon can be configured to find existing instances of a
running process.
%prep
%setup -q -n dpkg-%{version}
%build
./configure
make -C lib/compat
make -C utils
%install
rm -rf $RPM_BUILD_ROOT
%{__mkdir} -p "%{buildroot}/%{_prefix}/share/man/man8"
%{__cp} -aR "man/start-stop-daemon.8" "%{buildroot}/%{_prefix}/share/man/man8/"
%{__mkdir} -p "%{buildroot}/%{_sbindir}"
%{__cp} -aR "utils/start-stop-daemon" "%{buildroot}/%{_sbindir}/start-stop-daemon"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}/share/man/man8/start-stop-daemon.8.gz
%defattr(755,root,root)
%{_sbindir}/start-stop-daemon
%changelog
* Tue Aug 19 2015 William Garcia <garcia.rodriguez.william@gmail.com>
- Initial version