Summary: Small HTTP/SSL proxy daemon Summary(pl.UTF-8): Mały demon proxy Name: tinyproxy Version: 1.8.4 Release: 1 License: GPL v2 Group: Networking/Daemons/HTTP Source0: https://github.com/tinyproxy/tinyproxy/releases/download/%{version}/%{name}-%{version}.tar.bz2 # Source0-md5: 1c65daa8ca3394999f218a832112f35f Source1: %{name}.init URL: https://tinyproxy.github.io/ BuildRequires: rpmbuild(macros) >= 1.228 Requires(post,preun): /sbin/chkconfig Requires: rc-scripts BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Tinyproxy is a small, efficient HTTP/SSL proxy daemon. Tinyproxy is very useful in a small network. %description -l pl.UTF-8 Tinyproxy jest małym, wydajnym demonem proxy HTTP/SSL. Jest bardzo przydatny w małych sieciach lokalnych. %prep %setup -q %build %configure \ --disable-silent-rules \ --sysconfdir=%{_sysconfdir}/%{name} \ --enable-transparent %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/rc.d/init.d cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/tinyproxy %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add tinyproxy %service tinyproxy restart "tinyproxy daemon" %preun if [ "$1" = "0" ]; then %service tinyproxy stop /sbin/chkconfig --del tinyproxy fi %files %defattr(644,root,root,755) %doc AUTHORS README TODO %attr(755,root,root) %{_sbindir}/tinyproxy %{_datadir}/%{name} %dir %{_sysconfdir}/%{name} %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/tinyproxy.conf %attr(754,root,root) /etc/rc.d/init.d/tinyproxy %{_mandir}/man5/tinyproxy.conf.5* %{_mandir}/man8/tinyproxy.8*