dspam/dspam.spec

changeset 722
657a1a956cbb
parent 543
5e1f47ec716e
equal deleted inserted replaced
0:7dbe85830c70 1:21d6a08462ac
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: BASE 35 Class: BASE
36 Group: Mail 36 Group: Mail
37 License: GPL 37 License: GPL
38 Version: %{V_opkg} 38 Version: %{V_opkg}
39 Release: 20120424 39 Release: 20120800
40 40
41 # list of sources 41 # list of sources
42 Source0: http://switch.dl.sourceforge.net/dspam/dspam-%{V_dist}.tar.gz 42 Source0: http://switch.dl.sourceforge.net/dspam/dspam-%{V_dist}.tar.gz
43 43
44 # build information 44 # build information
65 regex = dspam-(\d+\.\d+\.\d+)\.tar\.gz 65 regex = dspam-(\d+\.\d+\.\d+)\.tar\.gz
66 } 66 }
67 67
68 %prep 68 %prep
69 %setup -q -n dspam-%{V_dist} 69 %setup -q -n dspam-%{V_dist}
70 %{l_shtool} subst \
71 -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
72 -e 's;LIBS="-lm";LIBS="$LIBS -lm";' \
73 configure
74 70
75 %build 71 %build
76 CC="%{l_cc}" \ 72 CC="%{l_cc}" \
77 CFLAGS="%{l_cflags -O} `pkg-config sqlite3 --cflags-only-other`" \ 73 CFLAGS="%{l_cflags -O} `pkg-config sqlite3 --cflags-only-other`" \
78 CPPFLAGS="%{l_cppflags} `pkg-config sqlite3 --cflags-only-I`" \ 74 CPPFLAGS="%{l_cppflags} `pkg-config sqlite3 --cflags-only-I`" \
93 --with-sqlite-includes=%{l_prefix}/include \ 89 --with-sqlite-includes=%{l_prefix}/include \
94 --with-sqlite-libraries=%{l_prefix}/lib \ 90 --with-sqlite-libraries=%{l_prefix}/lib \
95 --disable-homedir \ 91 --disable-homedir \
96 --disable-shared \ 92 --disable-shared \
97 --enable-warnings=no 93 --enable-warnings=no
98 %{l_make} %{l_mflags -O} 94 %{l_make} %{l_mflags}
99 95
100 %install 96 %install
101 %{l_shtool} mkdir -f -p -m 755 \ 97 %{l_shtool} mkdir -f -p -m 755 \
102 $RPM_BUILD_ROOT%{l_prefix}/man/man3 \ 98 $RPM_BUILD_ROOT%{l_prefix}/man/man3 \
103 $RPM_BUILD_ROOT%{l_prefix}/var/dspam 99 $RPM_BUILD_ROOT%{l_prefix}/var/dspam
104 %{l_shtool} subst -e 's;ln -s ;ln $(DESTDIR);g' Makefile 100 %{l_shtool} subst -e 's;ln -s ;ln $(DESTDIR);g' Makefile
105 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 101 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
106 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 102 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
107 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 103 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
108 %{l_files_std} \ 104 %{l_files_std} \
109 '%config %{l_prefix}/etc/dspam/dspam.conf' 105 '%config %{l_prefix}/etc/dspam/dspam.conf'
110 106

mercurial