/[packages]/cauldron/ziproxy/current/SPECS/ziproxy.spec
ViewVC logotype

Contents of /cauldron/ziproxy/current/SPECS/ziproxy.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 404859 - (show annotations) (download)
Sun Mar 24 15:20:47 2013 UTC (11 years ago) by colin
File size: 3696 byte(s)
Add systemd requires and general post/pre fixes (mga#9302)
1 Summary: A http compression and optimizer, non-caching, fully configurable proxy
2 Name: ziproxy
3 Version: 3.2.1
4 Release: %mkrel 3
5 License: GPL
6 Group: System/Servers
7 URL: http://ziproxy.sourceforge.net/
8 Source0: http://www.dancab.com/proj/ziproxy/files/%{name}-%{version}.tar.bz2
9 Source1: ziproxy.init
10 Source2: ziproxy.sysconfig
11 Source3: ziproxy.logrotate
12 Patch0: ziproxy-mdv_conf.diff
13 Patch1: ziproxy-3.2.1-fix-configure.patch
14 Patch2: ziproxy-3.2.1-gcc.patch
15 Requires(post): systemd >= %{systemd_required_version}
16 Requires(post): rpm-helper
17 Requires(preun): rpm-helper
18 BuildRequires: flex
19 BuildRequires: jasper-devel
20 BuildRequires: jpeg-devel
21 BuildRequires: ungif-devel
22 BuildRequires: png-devel
23 BuildRequires: libsasl2-devel
24
25 %description
26 Ziproxy is a forwarding (non-caching) proxy that gzips text and HTML files, and
27 reduces the size of images by converting them to lower quality JPEGs. It is
28 intended to increase the speed for low-speed Internet connections and it's
29 suitable for both home and professional usage. Ziproxy is fully configurable
30 and also features transparent proxy mode, preemptive name resolution, operation
31 in either daemon mode or (x)inetd mode, a detailed access log with compression
32 statistics, basic authentication, and more.
33
34 %prep
35
36 %setup -q
37 %patch0 -p0
38 %patch1 -p1
39 %patch2 -p1 -b .orig
40
41 cp %{SOURCE1} ziproxy.init
42 cp %{SOURCE2} ziproxy.sysconfig
43 cp %{SOURCE3} ziproxy.logrotate
44
45 # lib64 fix
46 perl -pi -e "s|/lib\b|/%{_lib}|g" config/*.m4
47
48 %build
49 %serverbuild
50 autoreconf -fi
51 %configure2_5x \
52 --with-jasper=%{_prefix} \
53 --with-sasl2=%{_prefix} \
54 --with-cfgfile=%{_sysconfdir}/ziproxy/ziproxy.conf
55
56 %make
57
58 %install
59 rm -rf %{buildroot}
60
61 install -d %{buildroot}%{_bindir}
62 install -d %{buildroot}%{_sbindir}
63 install -d %{buildroot}%{_initrddir}
64 install -d %{buildroot}%{_sysconfdir}/sysconfig
65 install -d %{buildroot}%{_sysconfdir}/logrotate.d
66 install -d %{buildroot}%{_sysconfdir}/%{name}/errors
67 install -d %{buildroot}/var/log/%{name}
68 install -d %{buildroot}%{_mandir}/man1
69
70 install -m0755 src/%{name} %{buildroot}%{_sbindir}/%{name}
71 install -m0755 src/tools/ziproxylogtool %{buildroot}%{_bindir}/
72 install -m0755 src/tools/ziproxy_genhtml_stats.sh %{buildroot}%{_bindir}/ziproxy_genhtml_stats
73
74 install -m0644 etc/%{name}/%{name}.conf %{buildroot}%{_sysconfdir}/ziproxy/
75 install -m0644 var/%{name}/error/*.html %{buildroot}%{_sysconfdir}/ziproxy/errors/
76
77 install -m0755 ziproxy.init %{buildroot}%{_initrddir}/%{name}
78 install -m0644 ziproxy.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
79 install -m0644 ziproxy.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
80
81 install -m0644 man/*.1 %{buildroot}%{_mandir}/man1/
82
83 mkdir -p %{buildroot}%{_tmpfilesdir}
84 cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
85 d /run/ziproxy 0700 root root
86 EOF
87
88 %post
89 %_tmpfilescreate %{name}
90 %_post_service %{name}
91
92 %preun
93 %_preun_service %{name}
94
95 %clean
96 rm -rf %{buildroot}
97
98 %files
99 %doc COPYING CREDITS ChangeLog JPEG2000.txt README README.tools
100 %attr(0755,root,root) %{_initrddir}/%{name}
101 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
102 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
103 %attr(0700,root,root) %dir %{_sysconfdir}/%{name}
104 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
105 %attr(0700,root,root) %dir %{_sysconfdir}/%{name}/errors
106 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/errors/*.html
107 %{_tmpfilesdir}/%{name}.conf
108 %attr(0755,root,root) %{_sbindir}/%{name}
109 %attr(0755,root,root) %{_bindir}/ziproxylogtool
110 %attr(0755,root,root) %{_bindir}/ziproxy_genhtml_stats
111 %attr(0700,root,root) %dir /var/log/%{name}
112 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30