]>
Commit | Line | Data |
---|---|---|
4c15c12b | 1 | # NOTE: |
2 | # - acording to tinyproxy homepage this is unstable *development* version not | |
3 | # suitable for production use. See TINYPROXY_1_6 branch for stable version | |
fa491c52 | 4 | Summary: Small HTTP/SSL proxy daemon |
676926ef | 5 | Summary(pl.UTF-8): Mały demon proxy |
2ec97a87 | 6 | Name: tinyproxy |
5d67dd4e | 7 | Version: 1.7.0 |
d604e75f | 8 | Release: 2 |
2cfd7c08 | 9 | License: GPL v2 |
ebcdfde7 | 10 | Group: Networking/Daemons/HTTP |
11b44fc6 | 11 | Source0: http://dl.sourceforge.net/tinyproxy/%{name}-%{version}.tar.gz |
5d67dd4e | 12 | # Source0-md5: ccacdd9cb093202886b6c7c9e453a804 |
11b44fc6 ER |
13 | Source1: %{name}.init |
14 | Patch0: %{name}-config.patch | |
9b9b770c | 15 | Patch1: %{name}-ac.patch |
2ec97a87 | 16 | URL: http://tinyproxy.sourceforge.net/ |
2cfd7c08 | 17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
19 | BuildRequires: libtool | |
4c15c12b | 20 | BuildRequires: rpmbuild(macros) >= 1.228 |
8003ce6b | 21 | Requires(post,preun): /sbin/chkconfig |
11b44fc6 | 22 | Requires: rc-scripts |
2ec97a87 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
202004cc | 26 | Tinyproxy is a small, efficient HTTP/SSL proxy daemon. Tinyproxy is |
2ec97a87 | 27 | very useful in a small network. |
28 | ||
07f4a36f JR |
29 | %description -l pl.UTF-8 |
30 | Tinyproxy jest małym, wydajnym demonem proxy HTTP/SSL. Jest bardzo | |
31 | przydatny w małych sieciach lokalnych. | |
2ec97a87 | 32 | |
33 | %prep | |
34 | %setup -q | |
ae6ea8a8 | 35 | %patch0 -p1 |
9b9b770c | 36 | %patch1 -p1 |
2ec97a87 | 37 | |
38 | %build | |
2cfd7c08 | 39 | %{__libtoolize} |
40 | %{__aclocal} | |
41 | %{__autoconf} | |
42 | %{__autoheader} | |
43 | %{__automake} | |
32d2851a | 44 | %configure \ |
45 | --enable-transparent-proxy | |
2ec97a87 | 46 | |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
d604e75f MŁ |
51 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/tinyproxy,/etc/rc.d/init.d,%{_datadir}/%{name}} |
52 | install src/tinyproxy $RPM_BUILD_ROOT%{_bindir} | |
53 | install doc/tinyproxy.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
54 | install doc/tinyproxy.conf $RPM_BUILD_ROOT%{_sysconfdir}/tinyproxy | |
55 | install doc/stats.html $RPM_BUILD_ROOT%{_datadir}/%{name} | |
56 | install doc/default.html $RPM_BUILD_ROOT%{_datadir}/%{name} | |
2cfd7c08 | 57 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/tinyproxy |
58 | ||
2ec97a87 | 59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
2cfd7c08 | 62 | %post |
63 | /sbin/chkconfig --add tinyproxy | |
4c15c12b | 64 | %service tinyproxy restart "tinyproxy daemon" |
2cfd7c08 | 65 | |
66 | %preun | |
67 | if [ "$1" = "0" ]; then | |
4c15c12b | 68 | %service tinyproxy stop |
d10c1b6b | 69 | /sbin/chkconfig --del tinyproxy |
2cfd7c08 | 70 | fi |
71 | ||
2ec97a87 | 72 | %files |
73 | %defattr(644,root,root,755) | |
473e6597 | 74 | %doc AUTHORS README TODO |
299d2e42 | 75 | %attr(755,root,root) %{_bindir}/* |
d604e75f MŁ |
76 | %{_datadir}/%{name} |
77 | %dir %{_sysconfdir}/tinyproxy | |
78 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinyproxy/tinyproxy.conf | |
2cfd7c08 | 79 | %attr(754,root,root) /etc/rc.d/init.d/tinyproxy |
2ec97a87 | 80 | %{_mandir}/man8/tinyproxy* |