public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/sagator] epel10: Python-2.6 compatibility
Date: Thu, 26 Nov 2026 14:05:25 GMT	[thread overview]
Message-ID: <179570192519.1.4803671360126501680.rpms-sagator-2efbebe7ab07@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/sagator
Branch : epel10
Commit : 2efbebe7ab07067ced951dac7ff163eb8285c1ab
Author : Ján ONDREJ <ondrejj@fedoraproject.org>
Date   : 2009-02-18T11:22:28+00:00
Stats  : +68/-40 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/sagator/c/2efbebe7ab07067ced951dac7ff163eb8285c1ab?branch=epel10

Log:
Python-2.6 compatibility

---
diff --git a/.cvsignore b/.cvsignore
index ac63d3f..1d7405f 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1 @@
-sagator-1.1.1-0.beta1.tar.bz2
+sagator-1.2.0-0.beta1.tar.bz2

diff --git a/import.log b/import.log
index 145f287..6374f3e 100644
--- a/import.log
+++ b/import.log
@@ -1,2 +1,3 @@
 sagator-1_1_0-1_fc9:HEAD:sagator-1.1.0-1.fc9.src.rpm:1215697760
 sagator-1_1_1-0_beta1_fc9:HEAD:sagator-1.1.1-0.beta1.fc9.src.rpm:1215699108
+sagator-1_2_0-0_beta1_fc10:HEAD:sagator-1.2.0-0.beta1.fc10.src.rpm:1234956125

diff --git a/sagator.spec b/sagator.spec
index 041a23d..3df8126 100644
--- a/sagator.spec
+++ b/sagator.spec
@@ -5,10 +5,10 @@
 %define ANTISPAMS bogofilter,qsf
 %define CLAMAV_VERSION 0.92
 
-Summary:   SAGATOR - antivir/antispam gateway for smtp server
+Summary:   Antivir/antispam gateway for smtp server
 Name:      sagator
-Version:   1.1.1
-Release:   0.beta1%{?dist}.1
+Version:   1.2.0
+Release:   0.beta1%{?dist}
 Source:    http://www.salstar.sk/pub/antivir/snapshots/sagator-%{version}-0.beta1.tar.bz2
 URL:       http://www.salstar.sk/sagator/
 License:   GPLv2+
@@ -16,23 +16,13 @@ Group:     System Environment/Daemons
 BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: python-devel >= 2.2.2, ed, gettext
-Obsoletes: sagator-libclamav <= 1.2.3
-Obsoletes: sagator-pydspam <= 0.9.1
+Requires:  %{name}-core = %{version}-%{release}
 Requires:  python >= 2.2.2, sed
+Requires:  spamassassin
 %if %_vendor == "suse"
-BuildRequires: aaa_base, python-xml, clamav >= %{CLAMAV_VERSION}
-Requires:  aaa_base, smtp_daemon, clamav >= %{CLAMAV_VERSION}
-%if 0%suse_version < 01030
-Requires:  python-ctypes
-%endif
+Requires:  clamav >= %{CLAMAV_VERSION}
 %else
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires:  initscripts, smtpdaemon, shadow-utils
 Requires:  clamav-lib >= %{CLAMAV_VERSION}
-BuildRequires: initscripts, logwatch, clamav-devel >= %{CLAMAV_VERSION}
-
 %endif
 
 %description
@@ -56,10 +46,36 @@ Features:
     * SQL database logging and configuration
     * simple chroot support
 
+%package core
+Summary:        Antivir/antispam gateway for smtp server, core files
+Group:          System Environment/Daemons
+Requires:       python >= 2.2.2, sed
+%if %_vendor == "suse"
+BuildRequires: aaa_base, python-xml, clamav >= %{CLAMAV_VERSION}
+Requires:  aaa_base, smtp_daemon
+%if 0%suse_version < 01030
+Requires:  python-ctypes
+%endif
+%else
+Requires(post): chkconfig
+Requires(preun): chkconfig
+Requires(preun): initscripts
+Requires:       initscripts, smtpdaemon, shadow-utils
+BuildRequires:  initscripts, logwatch, clamav-devel >= %{CLAMAV_VERSION}
+Requires: clamav-lib >= %{CLAMAV_VERSION}
+Requires: spamassassin
+%endif
+Obsoletes: sagator-libclamav <= 1.2.3
+Obsoletes: sagator-pydspam <= 0.9.1
+
+%description core
+SAGATOR's core files. You can use this package separatelly, if you do
+not to depend on other software, required by sagator.
+
 %package webq
 Summary:        SAGATOR's web quarantine access
 Group:          System Environment/Daemons
-Requires:       sagator = %{version}-%{release}, python-kid >= 0.9.5
+Requires:       sagator-core = %{version}-%{release}, python-kid >= 0.9.5
 BuildRequires:  python-kid
 
 %description webq
@@ -71,7 +87,7 @@ to access their emails in sagator's quarantine.
 %package        selinux
 Summary:        SELinux support for SAGATOR
 Group:          System Environment/Daemons
-Requires:       %{name} = %{version}
+Requires:       %{name}-core = %{version}-%{release}
 Requires(postun): policycoreutils, selinux-policy
 BuildRequires: selinux-policy-devel
 # SElinux directory and policy package
@@ -103,13 +119,13 @@ ln -s ../../../..%{_sysconfdir}/sagator.conf \
 mkdir -p %{buildroot}%{CHROOTDIR}/tmp/quarantine
 %find_lang %{name}
 
-%pre
+%pre core
 getent group vscan >/dev/null || groupadd -r vscan
 getent passwd vscan >/dev/null || \
 useradd -r -g vscan -d %{CHROOTDIR} -s /sbin/nologin -c "SAGATOR" vscan
 exit 0
 
-%post
+%post core
 touch %{_var}/lib/sagator-mkchroot
 if [ $1 = 2 ]; then # upgrade
   [ -f %{_sysconfdir}/sysconfig/sagator ] && . %{_sysconfdir}/sysconfig/sagator || true
@@ -127,7 +143,7 @@ else # install
   fi
 fi
 
-%preun
+%preun core
 if [ $1 = 0 ]; then # uninstall
   # stop service
   %{_initrddir}/sagator stop >/dev/null 2>&1
@@ -152,16 +168,20 @@ if selinuxenabled; then
 fi
 %endif
 
-%triggerin -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
+%triggerin core -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
 touch %{_var}/lib/sagator-mkchroot
 
-%triggerpostun -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
+%triggerpostun core -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
 touch %{_var}/lib/sagator-mkchroot
 
 %clean
 rm -rf %{buildroot}
 
-%files -f filelist
+%files
+%defattr(-,root,root)
+# no files, this package just requires others
+
+%files core -f filelist
 %defattr(-,root,root)
 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,vscan) %{_sysconfdir}/%{name}.conf
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/%{name}
@@ -179,14 +199,14 @@ rm -rf %{buildroot}
 %dir %attr(750,root,vscan) %{_datadir}/%{name}/etc
 %{_datadir}/%{name}/etc/*.py*
 %exclude %{_datadir}/%{name}/etc/sgconf.py?
-%dir %{_datadir}/%{name}/av
-%{_datadir}/%{name}/av/*.py*
-%dir %{_datadir}/%{name}/av/libclamav
-%{_datadir}/%{name}/av//libclamav/*.py*
-%dir %{_datadir}/%{name}/as/pydspam
-%{_datadir}/%{name}/as//pydspam/*.py*
-%dir %{_datadir}/%{name}/as
-%{_datadir}/%{name}/as/*.py*
+%dir %{_datadir}/%{name}/avir
+%{_datadir}/%{name}/avir/*.py*
+%dir %{_datadir}/%{name}/avir/libclamav
+%{_datadir}/%{name}/avir/libclamav/*.py*
+%dir %{_datadir}/%{name}/aspam/pydspam
+%{_datadir}/%{name}/aspam/pydspam/*.py*
+%dir %{_datadir}/%{name}/aspam
+%{_datadir}/%{name}/aspam/*.py*
 %dir %{_datadir}/%{name}/interscan
 %{_datadir}/%{name}/interscan/*.py*
 %dir %{_datadir}/%{name}/srv
@@ -205,28 +225,35 @@ rm -rf %{buildroot}
 %if %{install_sepolicy}
 %files selinux
 %defattr(-,root,root)   
+%dir %{_datadir}/%{name}/selinux
 %{sepolicy}
 %endif
 
 %changelog
-* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1.1-0.beta1.1
-- Rebuild for Python 2.6
+* Wed Sep 17 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.2.0-0.beta1
+- core files moved to core packages, sagator package now requires clamav
+  and spamassassin
+- added selinux policy dir
+
+* Sun Feb 17 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.1.0-2
+- changed dependency from smtpdaemon to server(smtp)
+- reverted back previous change
 
-* Sun Feb 17 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.1.1-0.beta1
+* Sun Feb 17 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.1.0-1
 - added libclamav module
 - added pydspam module
 - selinux module moved to separate subpackage
 
-* Fri Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0
+* Fri Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-1
 - /var/spool/vscan replaced by CHROOTDIR macro
 - posttrans section moved to init script (start section)
 - more macros used
 
-* Thu Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-0beta32
+* Thu Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-2
 - clean buildroot before install
 - sagator.conf symlink is now relative
 
-* Fri Sep 7 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-0beta31
+* Fri Sep 7 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-1
 - sagator moved from /usr/lib to /usr/share
 
 * Fri Apr 13 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>

diff --git a/sources b/sources
index 73fc806..b90c506 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e26e2f7b126addf4ecc1c66a4e195a83  sagator-1.1.1-0.beta1.tar.bz2
+372c651bae8a990914101cdd0bcc9e5d  sagator-1.2.0-0.beta1.tar.bz2

                 reply	other threads:[~2026-11-26 14:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179570192519.1.4803671360126501680.rpms-sagator-2efbebe7ab07@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox