webalizer/webalizer.spec

changeset 139
d3e0f51e3821
parent 134
17a161a7989c
child 141
e41fe78aeff0
equal deleted inserted replaced
4:7e1433fcd78a 5:db7cf9db5c71
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_real 2.20-03 25 %define V_real 2.21-02
26 %define V_here 2.20.03 26 %define V_here 2.21.02
27 %define V_geodb 20090304
27 28
28 # package information 29 # package information
29 Name: webalizer 30 Name: webalizer
30 Summary: Graphical Web Statistics Program 31 Summary: Graphical Web Statistics Program
31 URL: http://www.mrunix.net/webalizer/ 32 URL: http://www.mrunix.net/webalizer/
34 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
35 Class: PLUS 36 Class: PLUS
36 Group: Logfile 37 Group: Logfile
37 License: GPL 38 License: GPL
38 Version: %{V_here} 39 Version: %{V_here}
39 Release: 20090403 40 Release: 20090404
40 41
41 # package options 42 # package options
42 %option with_dns no 43 %option with_dns no
43 44
44 # list of sources 45 # list of sources
45 Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz 46 Source0: http://www.very-clever.com/download/webalizer/webalizer-%{V_real}-src.tgz
46 Source1: rc.webalizer 47 Source1: http://www.very-clever.com/download/webalizer/geodb/webalizer-geodb-%{V_geodb}.tgz
48 Source2: rc.webalizer
47 49
48 # build information 50 # build information
49 Prefix: %{l_prefix} 51 Prefix: %{l_prefix}
50 BuildRoot: %{l_buildroot} 52 BuildRoot: %{l_buildroot}
51 BuildPreReq: OpenPKG, openpkg >= 20040130 53 BuildPreReq: OpenPKG, openpkg >= 20040130
71 regex = webalizer-(__VER__)-src\.tgz 73 regex = webalizer-(__VER__)-src\.tgz
72 } 74 }
73 75
74 %prep 76 %prep
75 %setup -q -n webalizer-%{V_real} 77 %setup -q -n webalizer-%{V_real}
78 ( cd webalizer-%{V_real}
79 %{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf -
80 ) || exit $?
76 81
77 %build 82 %build
78 CC="%{l_cc}" \ 83 CC="%{l_cc}" \
79 CFLAGS="%{l_cflags -O}" \ 84 CFLAGS="%{l_cflags -O}" \
80 CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \ 85 CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \
113 webalizer $RPM_BUILD_ROOT%{l_prefix}/bin/ 118 webalizer $RPM_BUILD_ROOT%{l_prefix}/bin/
114 %{l_shtool} install -c -m 644 \ 119 %{l_shtool} install -c -m 644 \
115 webalizer.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ 120 webalizer.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
116 %{l_shtool} install -c -m 644 \ 121 %{l_shtool} install -c -m 644 \
117 sample.conf $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer/webalizer.conf 122 sample.conf $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer/webalizer.conf
123 %{l_shtool} install -c -m 644 \
124 GeoDB.dat $RPM_BUILD_ROOT%{l_prefix}/var/webalizer/
118 ln $RPM_BUILD_ROOT%{l_prefix}/bin/webalizer \ 125 ln $RPM_BUILD_ROOT%{l_prefix}/bin/webalizer \
119 $RPM_BUILD_ROOT%{l_prefix}/bin/webazolver 126 $RPM_BUILD_ROOT%{l_prefix}/bin/webazolver
120 %{l_shtool} install -c -m 755 %{l_value -s -a} \ 127 %{l_shtool} install -c -m 755 %{l_value -s -a} \
121 %{SOURCE rc.webalizer} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ 128 %{SOURCE rc.webalizer} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
122 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 129 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \

mercurial