-
Notifications
You must be signed in to change notification settings - Fork 0
/
socklog.spec
83 lines (62 loc) · 1.88 KB
/
socklog.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
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
#
# spec file for package socklog (Version 2.1.0)
#
# Copyright (c) 2010 Ian Meyer <[email protected]>
# Copyright (c) 2015 Brian Shore <[email protected]>
## This package understands the following switches:
## --with dietlibc ... statically links against dietlibc
Name: socklog
Version: 2.1.0
Release: 1%{?_with_dietlibc:diet}%{?dist}.seastar
Group: System/Base
License: BSD
# Override _sbindir being /usr/sbin
# %define _sbindir /sbin
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://smarden.org/socklog/
Source0: http://smarden.org/socklog/socklog-2.1.0.tar.gz
Obsoletes: socklog <= %{version}-%{release}
Provides: socklog = %{version}-%{release}
BuildRequires: make gcc
%if 0%{?rhel} >= 6
BuildRequires: glibc-static
%endif
%{?_with_dietlibc:BuildRequires: dietlibc}
Summary: system and kernel logging services
%description
socklog, in cooperation with the runit package, is a small and secure
replacement for syslogd.
Authors:
---------
Gerrit Pape <[email protected]>
%prep
%setup -q -n admin/%{name}-%{version}
pushd src
echo "%{?_with_dietlibc:diet -Os }%__cc $RPM_OPT_FLAGS" >conf-cc
echo "%{?_with_dietlibc:diet -Os }%__cc -s -Os -pipe" >conf-ld
popd
%build
sh package/compile
%install
%{__rm} -rf %{buildroot}
for i in $(< package/commands) ; do
%{__install} -D -m 0755 command/$i %{buildroot}/bin/$i
done
for i in man/* ; do
sect=${i##*.}
%{__install} -D -m 0644 $i %{buildroot}%{_mandir}/man${sect}/${i##man/}
done
for i in doc/* ; do
%{__install} -D -m 0644 $i %{buildroot}%{_docdir}/${i##doc/}
done
for i in package/CHANGES package/COPYING package/README src/TODO ; do
%{__install} -D -m 0644 $i %{buildroot}%{_docdir}/${i##*/}
done
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
/bin/*
%doc %{_docdir}/*
%doc %{_mandir}/man1/*
%doc %{_mandir}/man8/*