]> git.pld-linux.org Git - SPECS.git/blob - tinyproxy.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / tinyproxy.spec
1 Summary:        Small HTTP/SSL proxy daemon
2 Summary(pl.UTF-8):      Mały demon proxy
3 Name:           tinyproxy
4 Version:        1.8.4
5 Release:        1
6 License:        GPL v2
7 Group:          Networking/Daemons/HTTP
8 Source0:        https://github.com/tinyproxy/tinyproxy/releases/download/%{version}/%{name}-%{version}.tar.bz2
9 # Source0-md5:  1c65daa8ca3394999f218a832112f35f
10 Source1:        %{name}.init
11 URL:            https://tinyproxy.github.io/
12 BuildRequires:  rpmbuild(macros) >= 1.228
13 Requires(post,preun):   /sbin/chkconfig
14 Requires:       rc-scripts
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Tinyproxy is a small, efficient HTTP/SSL proxy daemon. Tinyproxy is
19 very useful in a small network.
20
21 %description -l pl.UTF-8
22 Tinyproxy jest małym, wydajnym demonem proxy HTTP/SSL. Jest bardzo
23 przydatny w małych sieciach lokalnych.
24
25 %prep
26 %setup -q
27
28 %build
29 %configure \
30         --disable-silent-rules \
31         --sysconfdir=%{_sysconfdir}/%{name} \
32         --enable-transparent
33
34 %{__make}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 %{__make} install \
39         DESTDIR=$RPM_BUILD_ROOT
40
41 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
42 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/tinyproxy
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /sbin/chkconfig --add tinyproxy
49 %service tinyproxy restart "tinyproxy daemon"
50
51 %preun
52 if [ "$1" = "0" ]; then
53         %service tinyproxy stop
54         /sbin/chkconfig --del tinyproxy
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc AUTHORS README TODO
60 %attr(755,root,root) %{_sbindir}/tinyproxy
61 %{_datadir}/%{name}
62 %dir %{_sysconfdir}/%{name}
63 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/tinyproxy.conf
64 %attr(754,root,root) /etc/rc.d/init.d/tinyproxy
65 %{_mandir}/man5/tinyproxy.conf.5*
66 %{_mandir}/man8/tinyproxy.8*
This page took 0.409762 seconds and 3 git commands to generate.