Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
spamassassin
spamassassin.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File spamassassin.spec of Package spamassassin
# # spec file for package spamassassin (Version 3.2.5) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: spamassassin BuildRequires: perl-Digest-SHA1 perl-HTML-Parser perl-Net-DNS License: The Apache Software License Group: Productivity/Networking/Email/Utilities Url: http://spamassassin.org/ Version: 3.2.5 Release: 26.<RELEASE11> Requires: perl-libwww-perl perl-IO-Zlib Requires: perl-spamassassin = %version AutoReqProv: on PreReq: %insserv_prereq %fillup_prereq Summary: SpamAssassin is an extensible email filter which is used to identify spam Source: Mail-SpamAssassin-%{version}.tar.bz2 Source1: local.cf Source2: init.spamd Source3: sysconfig.spamd Source4: suse.cron-sa-update Patch0: patch-utf8 Patch1: patch-PgSQL Patch2: patch-URIDNSBL Patch3: patch-SQL_ASCII_SORT Patch4: bnc#567849.diff Patch5: bnc#606231.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description spamassassin adds a header line that shows if the mail has been determined spam or not. This way, you can decide what to do with the mail within the scope of your own filtering rules in your MUA (Mail User Agent, your mail program) or your LDA (Local Delivery Agent). See the files in the documentation directory /usr/share/doc/packages/spamassassin/ for more information on how to use the filter. Authors: -------- Justin Mason <me@jmason.org> %package -n perl-spamassassin License: The Apache Software License Group: Development/Libraries/Perl Requires: perl-HTML-Parser perl-Net-DNS perl-IO-Socket-SSL perl-Archive-Tar Requires: perl = %{perl_version} AutoReqProv: on Summary: Perl Modules For Using Spamassassin Within An Own Perl Script %description -n perl-spamassassin This package contains the perl modules for the spamassassin, including the filter rules. This package is required for the package "spamassassin", the commandline tool. %prep %setup -n Mail-SpamAssassin-%version %patch0 -p0 %patch1 -p0 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p0 %build export CFLAGS="$RPM_OPT_FLAGS" if [ -e t/data/whitelists/winxpnews.com ]; then echo "t/data/whitelists/winxpnews.com is not allowed to be distributed." echo "see #102221" exit -1 fi; if [ -e build/cf_to_html ]; then echo "build/cf_to_html is not allowed to be distributed." echo "see #102221" exit -1 fi; perl Makefile.PL DESTDIR=$RPM_BUILD_ROOT \ CONTACT_ADDRESS="postmaster" \ INSTALLDIRS=vendor < /dev/null make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/sbin mkdir -p $RPM_BUILD_ROOT/etc/mail/spamassassin mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/etc/cron.daily mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates/ mkdir -p $RPM_BUILD_ROOT/var/adm/perl-modules mkdir -p $RPM_BUILD_ROOT/usr/share/spamassassin install -m 0744 %SOURCE4 $RPM_BUILD_ROOT/etc/cron.daily/ # make install %perl_process_packlist # mv $RPM_BUILD_ROOT/usr/bin/spamd $RPM_BUILD_ROOT/usr/sbin install -m 0644 $RPM_SOURCE_DIR/local.cf $RPM_BUILD_ROOT/etc/mail/spamassassin/local.cf install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/spamd ln -s ../../etc/init.d/spamd $RPM_BUILD_ROOT/usr/sbin/rcspamd echo "Most of the documentation is at ../perl-spamassassin/." > README.SuSE install -m 0640 %SOURCE3 $RPM_BUILD_ROOT/var/adm/fillup-templates/ test -f $RPM_BUILD_ROOT/usr/share/spamassassin/user_prefs.template || { echo "MakeMaker is broken again..." exit 1 } %files -n perl-spamassassin %defattr(-,root,root) %doc CREDITS Changes INSTALL LICENSE MANIFEST* NOTICE PACKAGING README %doc TRADEMARK UPGRADE USAGE sample-nonspam.txt sample-spam.txt %doc ldap sql %doc %{_mandir}/man3/* %dir /etc/mail %config(noreplace) /etc/mail/spamassassin %dir %{perl_vendorarch}/auto/Mail %{perl_vendorarch}/auto/Mail/SpamAssassin %dir %{perl_vendorlib}/Mail %{perl_vendorlib}/Mail/SpamAssassin.pm %{perl_vendorlib}/Mail/SpamAssassin %{perl_vendorlib}/spamassassin-run.pod /usr/share/spamassassin /var/adm/perl-modules/spamassassin %files %defattr(-,root,root) %attr(744,root,root)/etc/cron.daily/suse.cron-sa-update %doc spamd/README* spamd/PROTOCOL %doc %{_mandir}/man1/* %attr(755,root,root) /usr/bin/* %attr(755,root,root) /usr/sbin/* %config %attr(740,root,root) /etc/init.d/spamd /var/adm/fillup-templates/sysconfig.spamd %post %{fillup_and_insserv -n spamd} %preun %stop_on_removal spamd %postun %restart_on_update spamd %insserv_cleanup %clean rm -rf $RPM_BUILD_ROOT %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor