public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
To: git-commits@fedoraproject.org
Subject: [rpms/sagator] epel10: Update to upstream.
Date: Thu, 26 Nov 2026 14:06:01 GMT	[thread overview]
Message-ID: <179570196122.1.15749039552006971165.rpms-sagator-aecd7e00c276@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/sagator
Branch : epel10
Commit : aecd7e00c27658d1675a3dffcda8d314629987b5
Author : Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
Date   : 2019-02-03T19:46:13+01:00
Stats  : +31/-45 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/sagator/c/aecd7e00c27658d1675a3dffcda8d314629987b5?branch=epel10

Log:
Update to upstream.

---
diff --git a/sagator-selinux-devpts.patch b/sagator-selinux-devpts.patch
deleted file mode 100644
index daadc33..0000000
--- a/sagator-selinux-devpts.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: selinux/sagator.te
-===================================================================
---- selinux/sagator.te	(revision 2846)
-+++ selinux/sagator.te	(working copy)
-@@ -15,6 +15,7 @@
-   type named_conf_t;
-   type lo_node_t;
-   type locate_t;
-+  type devpts_t;
- }
- 
- type sagator_t;

diff --git a/sagator.spec b/sagator.spec
index bc34bf3..fd42b9d 100644
--- a/sagator.spec
+++ b/sagator.spec
@@ -1,7 +1,3 @@
-# This package depends on automagic byte compilation
-# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
-%global _python_bytecompile_extra 1
-
 %define CHROOTDIR %{_var}/spool/vscan
 %define BASE_LIBS glibc,libgcc,expat,libstdc++,zlib,bzip2-libs,cracklib,cracklib-dicts
 %define ARCHIVERS tar,arc,unace,unrar,rar,zoo,unarj,arj,unzip,zip,gzip,bzip2
@@ -16,17 +12,24 @@
 %define sepolicy %{_datadir}/%{name}/selinux/%{name}.pp
 %endif
 
+%if 0%{?fedora} >= 28
+%define python_version python3
+%else
+%define python_version python2
+%endif
+
 Summary:   Antivirus/anti-spam gateway for smtp server
 Name:      sagator
 Version:   2.0.0
-Release:   0.beta1exp2%{?dist}.1
-Source:    http://www.salstar.sk/pub/antivir/snapshots/sagator-%{version}-0.beta1exp2.tar.bz2
+Release:   0.beta10%{?dist}
+Source:    http://www.salstar.sk/pub/antivir/snapshots/sagator-%{version}-0.beta10.tar.bz2
 URL:       http://www.salstar.sk/sagator/
 License:   GPLv2+
+Group:     System Environment/Daemons
 BuildArch: noarch
-BuildRequires: python2-devel >= 2.2.2, ed, gettext
+BuildRequires: %{python_version}-devel, ed, gettext
 Requires:  %{name}-core = %{version}-%{release}
-Requires:  python2 >= 2.2.2, sed
+Requires:  sed
 Requires:  spamassassin
 %if %_vendor == "suse"
 Requires:  clamav >= %{CLAMAV_VERSION}
@@ -64,7 +67,8 @@ Features:
 
 %package core
 Summary:        Antivirus/anti-spam gateway for smtp server, core files
-Requires:       python2 >= 2.2.2, sed
+Group:          System Environment/Daemons
+Requires:       sed
 %if %_vendor == "suse"
 BuildRequires: aaa_base, python-xml, clamav >= %{CLAMAV_VERSION}
 Requires:       aaa_base, smtp_daemon
@@ -93,9 +97,10 @@ not to depend on other software, required by sagator.
 
 %package webq
 Summary:        SAGATOR's web quarantine access
+Group:          System Environment/Daemons
 Requires:       sagator-core = %{version}-%{release}
 %if 0%{?fedora} || 0%{?rhel} > 7
-Requires:       python2-jinja2
+Requires:       %{python_version}-jinja2
 %else
 Requires:       python-jinja2
 %endif
@@ -107,6 +112,7 @@ to access their emails in sagator's quarantine.
 %if 0%{?install_sepolicy}>0
 %package        selinux
 Summary:        SELinux support for SAGATOR
+Group:          System Environment/Daemons
 Requires:       %{name}-core = %{version}-%{release}
 Requires(postun): policycoreutils, selinux-policy
 BuildRequires: selinux-policy-devel
@@ -119,7 +125,7 @@ This package helps moving to the upstream SELinux module.
 %setup -q
 
 %build
-sh configure --prefix=%{_prefix} --filelist
+sh configure --prefix=%{_prefix} --filelist --python=%{python_version}
 make %{?_smp_mflags}
 
 %install
@@ -186,10 +192,15 @@ touch %{_var}/lib/sagator-mkchroot
 %triggerpostun core -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
 touch %{_var}/lib/sagator-mkchroot
 
+%clean
+rm -rf %{buildroot}
+
 %files
 # no files, this package just requires others
 # exclude sepolicy for builds without selinux module
+%if 0%{?sepolicy:1}
 %exclude %{sepolicy}
+%endif
 
 %files core -f filelist
 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,vscan) %{_sysconfdir}/%{name}.conf
@@ -213,18 +224,12 @@ touch %{_var}/lib/sagator-mkchroot
 %dir %attr(750,root,vscan) %{_datadir}/%{name}/etc
 %{_datadir}/%{name}/etc/*.py*
 %exclude %{_datadir}/%{name}/etc/sgconf.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
-%{_datadir}/%{name}/srv/*.py*
+%{_datadir}/%{name}/avir
+%{_datadir}/%{name}/aspam
+%{_datadir}/%{name}/interscan
+%{_datadir}/%{name}/srv
+%exclude %{_datadir}/%{name}/srv/web
+%exclude %{_datadir}/%{name}/srv/templates
 %{_datadir}/%{name}/db
 %{_mandir}/man*/*
 %dir %{CHROOTDIR}
@@ -232,12 +237,8 @@ touch %{_var}/lib/sagator-mkchroot
 %attr(0770,vscan,vscan) %dir %{CHROOTDIR}/tmp/quarantine
 
 %files webq -f sagator.lang
-%dir %{_datadir}/%{name}/srv/web
-%{_datadir}/%{name}/srv/web/*.py*
-%{_datadir}/%{name}/srv/web/*.html
-%dir %{_datadir}/%{name}/srv/templates
-%{_datadir}/%{name}/srv/templates/*.py*
-%{_datadir}/%{name}/srv/templates/*.html
+%{_datadir}/%{name}/srv/web
+%{_datadir}/%{name}/srv/templates
 
 %if 0%{?install_sepolicy}>0
 %files selinux
@@ -246,10 +247,7 @@ touch %{_var}/lib/sagator-mkchroot
 %endif
 
 %changelog
-* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.beta1exp2.1
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Thu Jul 26 2018 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.0-0.beta1exp2
+* Thu Jan  3 2019 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.0-0.beta10
 - update to upstream
 
 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-7

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

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 14:06 Jan ONDREJ [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-26 14:06 [rpms/sagator] epel10: Update to upstream Jan ONDREJ
2026-11-26 14:06 Jan ONDREJ
2026-11-26 14:06 Jan ONDREJ
2026-11-26 14:06 Jan ONDREJ
2026-11-26 14:06 Jan ONDREJ
2026-11-26 14:06 [rpms/sagator] epel10: update " Jan ONDREJ
2026-11-26 14:06 Jan ONDREJ
2026-11-26 14:06 [rpms/sagator] epel10: Update " Jan ONDREJ
2026-11-26 14:06 [rpms/sagator] epel10: update " Jan ONDREJ
2026-11-26 14:05 [rpms/sagator] epel10: Update " Jan ONDREJ
2026-11-26 14:05 Jan ONDREJ
2026-11-26 14:05 Jan ONDREJ
2026-11-26 14:05 

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=179570196122.1.15749039552006971165.rpms-sagator-aecd7e00c276@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