]> git.pld-linux.org Git - packages/tinyproxy.git/blame - tinyproxy.spec
- drop AM_C_PROTOTYPES (no longer supported by automake)
[packages/tinyproxy.git] / tinyproxy.spec
CommitLineData
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 4Summary: Small HTTP/SSL proxy daemon
676926ef 5Summary(pl.UTF-8): Mały demon proxy
2ec97a87 6Name: tinyproxy
5d67dd4e 7Version: 1.7.0
d604e75f 8Release: 2
2cfd7c08 9License: GPL v2
ebcdfde7 10Group: Networking/Daemons/HTTP
11b44fc6 11Source0: http://dl.sourceforge.net/tinyproxy/%{name}-%{version}.tar.gz
5d67dd4e 12# Source0-md5: ccacdd9cb093202886b6c7c9e453a804
11b44fc6
ER
13Source1: %{name}.init
14Patch0: %{name}-config.patch
9b9b770c 15Patch1: %{name}-ac.patch
2ec97a87 16URL: http://tinyproxy.sourceforge.net/
2cfd7c08 17BuildRequires: autoconf
18BuildRequires: automake
19BuildRequires: libtool
4c15c12b 20BuildRequires: rpmbuild(macros) >= 1.228
8003ce6b 21Requires(post,preun): /sbin/chkconfig
11b44fc6 22Requires: rc-scripts
2ec97a87 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
202004cc 26Tinyproxy is a small, efficient HTTP/SSL proxy daemon. Tinyproxy is
2ec97a87 27very useful in a small network.
28
07f4a36f
JR
29%description -l pl.UTF-8
30Tinyproxy jest małym, wydajnym demonem proxy HTTP/SSL. Jest bardzo
31przydatny 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
50rm -rf $RPM_BUILD_ROOT
d604e75f
51install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/tinyproxy,/etc/rc.d/init.d,%{_datadir}/%{name}}
52install src/tinyproxy $RPM_BUILD_ROOT%{_bindir}
53install doc/tinyproxy.8 $RPM_BUILD_ROOT%{_mandir}/man8
54install doc/tinyproxy.conf $RPM_BUILD_ROOT%{_sysconfdir}/tinyproxy
55install doc/stats.html $RPM_BUILD_ROOT%{_datadir}/%{name}
56install doc/default.html $RPM_BUILD_ROOT%{_datadir}/%{name}
2cfd7c08 57install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/tinyproxy
58
2ec97a87 59%clean
60rm -rf $RPM_BUILD_ROOT
61
2cfd7c08 62%post
63/sbin/chkconfig --add tinyproxy
4c15c12b 64%service tinyproxy restart "tinyproxy daemon"
2cfd7c08 65
66%preun
67if [ "$1" = "0" ]; then
4c15c12b 68 %service tinyproxy stop
d10c1b6b 69 /sbin/chkconfig --del tinyproxy
2cfd7c08 70fi
71
2ec97a87 72%files
73%defattr(644,root,root,755)
473e6597 74%doc AUTHORS README TODO
299d2e42 75%attr(755,root,root) %{_bindir}/*
d604e75f
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*
This page took 0.08839 seconds and 4 git commands to generate.