144 |
%build |
%build |
145 |
(cd spamc; autoconf) |
(cd spamc; autoconf) |
146 |
%define _perl_buildroot %{nil} |
%define _perl_buildroot %{nil} |
147 |
|
test -z "$PERL5LIB" && export PERL5LIB=%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} || \ |
148 |
|
export PERL5LIB="$PERL5LIB":%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} |
149 |
test -z "$CFLAGS" && export CFLAGS="%{optflags}" |
test -z "$CFLAGS" && export CFLAGS="%{optflags}" |
150 |
%{__perl} Makefile.PL 'PREFIX=%{_perl_buildroot}%{_prefix}' INSTALLDIRS=vendor ENABLE_SSL=yes |
%{__perl} Makefile.PL 'PREFIX=%{_perl_buildroot}%{_prefix}' INSTALLDIRS=vendor ENABLE_SSL=yes |
151 |
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile |
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile |
152 |
%{__make} OPTIMIZE="$RPM_OPT_FLAGS" |
%{__make} OPTIMIZE="$RPM_OPT_FLAGS" |
153 |
%if %{?_without_check:0}%{!?_without_check:1} |
%if %{?_without_check:0}%{!?_without_check:1} |
154 |
%{__make} test ||: |
%{__make} test || : |
155 |
%endif |
%endif |
156 |
mv spamd/README spamd/README.spamd |
mv spamd/README spamd/README.spamd |
157 |
|
|
158 |
%install |
%install |
159 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
160 |
%perl_makeinstall DESTDIR=%{buildroot} |
%{__make} install DESTDIR_REDIRECT=%{buildroot} DESTDIR=%{buildroot} |
161 |
|
find %{buildroot} \( -name .packlist -or -name perllocal.pod -or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \; |
162 |
install -d %{buildroot}/%{_initrddir} |
install -d %{buildroot}/%{_initrddir} |
163 |
install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin |
install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin |
164 |
|
|
202 |
|
|
203 |
%{perl_vendorlib}/Mail/SpamAssassin.pm |
%{perl_vendorlib}/Mail/SpamAssassin.pm |
204 |
%{perl_vendorlib}/Mail/SpamAssassin |
%{perl_vendorlib}/Mail/SpamAssassin |
205 |
%{perl_man3dir}/Mail::SpamAssassin*.3pm* |
%{_mandir}/man3/Mail::SpamAssassin*.3pm* |
206 |
%{perl_man1dir}/sa-awl.1* |
%{_mandir}/man1/sa-awl.1* |
207 |
%{perl_vendorlib}/spamassassin-run.pod |
%{perl_vendorlib}/spamassassin-run.pod |
208 |
%{_datadir}/spamassassin |
%{_datadir}/spamassassin |
209 |
|
|