28a7a5a
%global appname switchmail
5675355
%global __python /usr/bin/python3
28a7a5a
cvsdist 9ebcc97
Summary: The Mail Transport Agent Switcher
cvsdist 9ebcc97
Name: system-switch-mail
e45f69f
Version: 2.0.1
4c8ed91
Release: 21%{?dist}
bff97e7
Url: http://than.fedorapeople.org/system-switch-mail
515b156
Source0: http://than.fedorapeople.org/system-switch-mail/%{name}-%{version}.tar.xz
5675355
Patch0: system-switch-mail-2.0.1-python3.patch
08e12f3
License: GPL-2.0-or-later
cvsdist 9ebcc97
BuildArch: noarch
cvsdist 9ebcc97
28a7a5a
Requires: newt-python3
c548aed
Requires: polkit
55f8ca6
5898c41
BuildRequires: make
b081567
BuildRequires:  python3-devel
55f8ca6
BuildRequires: gettext
55f8ca6
BuildRequires: intltool
299c954
BuildRequires: desktop-file-utils
cvsdist 9ebcc97
cvsdist 9ebcc97
%description
cvsdist 9ebcc97
The system-switch-mail is the Mail Transport Agent Switcher.
cvsdist 9ebcc97
It enables users to easily switch between various Mail Transport Agent
cvsdist 9ebcc97
that they have installed.
cvsdist 9ebcc97
28a7a5a
%package gui
299c954
Summary: A GUI interface for Mail Transport Agent Switcher
cvsdist 9ebcc97
Requires: %{name} = %{version}-%{release}
5890f7a
Requires: usermode-gtk
28a7a5a
Requires: python3-gobject-base
e45f69f
Requires: desktop-file-utils
28a7a5a
Obsoletes: %{name}-gnome < 2.0
cvsdist 9ebcc97
28a7a5a
%description gui
cvsdist 9ebcc97
The system-switch-mail-gnome package contains a GNOME interface for the
cvsdist 9ebcc97
Mail Transport Agent Switcher.
cvsdist 9ebcc97
cvsdist 9ebcc97
%prep
683b46e
%autosetup -p1
cvsdist 9ebcc97
cvsdist 02f2fd7
%build
abddec6
make %{?_smp_mflags}
cvsdist 02f2fd7
cvsdist 9ebcc97
%install
28a7a5a
make PYTHON=%{__python3} DESTDIR=%{buildroot} mandir=%{_mandir} sysconfdir=%{_sysconfdir} install
28a7a5a
desktop-file-validate %{buildroot}%{_datadir}/applications/%{appname}.desktop
cea31ed
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/
cvsdist 9ebcc97
cvsdist 9ebcc97
%find_lang %{name}
cvsdist 9ebcc97
cvsdist 9ebcc97
%files -f %{name}.lang
299c954
%doc COPYING AUTHORS
74e6be7
%{_bindir}/*
cvsdist 9ebcc97
%dir %{_datadir}/%{name}
28a7a5a
%{_datadir}/%{name}/backend.py*
28a7a5a
%{_datadir}/%{name}/%{appname}-tui.py*
aa5b771
%{_mandir}/man1/*
cvsdist 9ebcc97
28a7a5a
%files gui
28a7a5a
%{_datadir}/polkit-1/actions/org.fedoraproject.switchmail.policy
cvsdist 9ebcc97
%{_datadir}/applications/*
28a7a5a
%{_datadir}/%{name}/%{appname}-gui.py*
28a7a5a
%{_datadir}/%{name}/%{appname}.glade
e28cd76
%{_datadir}/%{name}/__pycache__
e45f69f
%{_datadir}/pixmaps/*.png
cvsdist 9ebcc97
cvsdist 9ebcc97
%changelog
4c8ed91
* Wed Mar 06 2024 Than Ngo <than@redhat.com> - 2.0.1-21
4c8ed91
- fixed bz#2268132, drop usermode
4c8ed91
8fbd11b
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-20
8fbd11b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8fbd11b
ea68afe
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-19
ea68afe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
ea68afe
08e12f3
* Tue Feb 21 2023 Than Ngo <than@redhat.com> - 2.0.1-18
08e12f3
- migrated to SPDX license
08e12f3
6827d95
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-17
6827d95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
6827d95
dc5d2a1
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-16
dc5d2a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
dc5d2a1
f3aa294
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-15
f3aa294
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f3aa294
8ba14e4
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-14
8ba14e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8ba14e4
e466c52
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-13
e466c52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e466c52
b2fb9ce
* Mon Sep 07 2020 Than Ngo <than@redhat.com> - 2.0.1-12
b2fb9ce
- added bytecode
b2fb9ce
c966aa4
* Tue Aug 25 2020 Than Ngo <than@redhat.com> - 2.0.1-11
c966aa4
- fixed bz#1865563 - FTBFS
c966aa4
e7b12bb
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
e7b12bb
- Second attempt - Rebuilt for
e7b12bb
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e7b12bb
cb7419d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
cb7419d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cb7419d
3ec8e43
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8
3ec8e43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3ec8e43
b081567
* Sun Oct 20 2019 Miro HronĨok <mhroncok@redhat.com> - 2.0.1-7
b081567
- Drop the build dependency on Python 2
b081567
9602056
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
9602056
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9602056
0b2e996
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
0b2e996
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0b2e996
fa24f95
* Wed Jul 25 2018 Than Ngo <than@redhat.com> - 2.0.1-4
fa24f95
- fixed FTBFS
fa24f95
f4e792c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
f4e792c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f4e792c
5675355
* Tue Apr 03 2018 Than Ngo <than@redhat.com> - 2.0.1-2
5675355
- replace with python3
5675355
- enable byte compilation and included it
5675355
e45f69f
* Wed Mar 28 2018 Than Ngo <than@redhat.com> - 2.0.1-1
e45f69f
- add missing icon
e45f69f
- fix wrong exec entry in desktop file
e45f69f
28a7a5a
* Sat Mar 24 2018 Than Ngo <than@redhat.com> - 2.0.0-1
28a7a5a
- release 2.0.0 with python3 and gtk3 support
28a7a5a
53f464a
* Fri Jul 28 2017 Than Ngo <than@redhat.com> - 1.0.3-1
e45f69f
- release 1.0.3
aadabfb
bff97e7
* Fri Apr 28 2017 Than Ngo <than@redhat.com> - 1.0.2-1
bff97e7
- release 1.0.2
bff97e7
ecc7c46
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-12
ecc7c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ecc7c46
683b46e
* Tue Jan 31 2017 Than Ngo <than@redhat.com> - 1.0.1-11
683b46e
- fixed bz#1412714, add TUI support
683b46e
c548aed
* Tue Jun 28 2016 Than Ngo <than@redhat.com> - 1.0.1-10
c548aed
- fixed bz#493849, S-c-tools cleanup ui
c548aed
- fixed bz#493899, make OK button insensitive when no action has been taken
c548aed
- fixed bz#493924, port to PolicyKit
c548aed
- fixed bz#493617, System Configuration Tools Cleanup Project
c548aed
8a12168
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9
8a12168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8a12168
99c6468
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-8
99c6468
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
99c6468
2d25780
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
2d25780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2d25780
ca14f4a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
ca14f4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ca14f4a
94c4075
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
94c4075
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
94c4075
e4f337c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
e4f337c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e4f337c
57881b9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
57881b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
57881b9
5780abd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
5780abd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5780abd
299c954
* Wed Jul 21 2010 Than Ngo <than@redhat.com> - 1.0.1-1
299c954
- bz#226473, merge Review: system-switch-mail
299c954
299c954
* Tue Sep 29 2009 Than Ngo <than@redhat.com> - 1.0-1
299c954
- update po files
299c954
5cc581d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.26-6
5cc581d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5cc581d
c51a521
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.26-5
c51a521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c51a521
0b3b15b
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.26-4
0b3b15b
- Rebuild for Python 2.6
0b3b15b
abddec6
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.5.26-3
abddec6
- fix license tag
abddec6
ff5cf5e
* Tue Mar 11 2008 Than Ngo <than@redhat.com> 0.5.26-2
ff5cf5e
- fix permission of po files (bz#436888)
ff5cf5e
- update po files
ff5cf5e
45f4084
* Fri Mar 07 2008 Than Ngo <than@redhat.com> 0.5.26-1
45f4084
- 0.5.26 release
45f4084
   - use chkconfig to configure selected MTA to start automatically (#436359)
45f4084
   - add missing file in POTFILES.in (#433456)
45f4084
   - use correct python version (#427571)
45f4084
   - chkconfig off/on after mta is switched (#246092)
45f4084
   - Require newt-python (#251363)
45f4084
   - remove obsolete translation (#332461)
45f4084
   - add man page (#427570)
45f4084
55f8ca6
* Tue Apr 10 2007 Than Ngo <than@redhat.com> - 0.5.25-13
55f8ca6
- add support for ssmtp and esmtp
55f8ca6
55f8ca6
* Mon Dec 18 2006 Phil Knirsch <pknirsch@redhat.com> - 0.5.25-12
55f8ca6
- Resolves: bz#216602, one more update for kn and si po files
55f8ca6
55f8ca6
* Mon Dec 04 2006 Than Ngo <than@redhat.com> - 0.5.25-11
55f8ca6
- Resolved: bz#216602, update po files
55f8ca6
b46dc29
* Mon Jul 17 2006 Than Ngo <than@redhat.com> 0.5.25-10
b46dc29
- update po files
6ea3c2f
560a4bc
* Tue Mar 07 2006 Than Ngo <than@redhat.com> 0.5.25-8
560a4bc
- fix deprecated functions in gtk #159155
560a4bc
5890f7a
* Mon Feb 27 2006 Than Ngo <than@redhat.com> 0.5.25-7
5890f7a
- fix consolehelper config #160931
5890f7a
b84ce6a
* Sat Dec 17 2005 Than Ngo <than@redhat.com> 0.5.25-6
b84ce6a
- update po files
a2d0a2d
05519c4
* Wed Oct 26 2005 Than Ngo <than@redhat.com> 0.5.25-5
05519c4
- add new common pam configuration file #170650 
05519c4
- update po files
05519c4
74e6be7
* Wed May 11 2005 Than Ngo <than@redhat.com> 0.5.25-4
74e6be7
- fix location for menu item #157173
74e6be7
3437c1c
* Fri Oct 01 2004 Than Ngo <than@redhat.com> 0.5.25-3
3437c1c
- update translation
3437c1c
868640b
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 0.5.25-2
3437c1c
- rebuilt
868640b
cvsdist 2d78ea3
* Mon Apr 05 2004 Than Ngo <than@redhat.com> 0.5.25-1
cvsdist 2d78ea3
- 0.5.25 release
cvsdist 2d78ea3
cvsdist 02f2fd7
* Thu Feb 19 2004 Than Ngo <than@redhat.com> 0.5.24-1
cvsdist 02f2fd7
- 0.5.24 release
cvsdist 02f2fd7
cvsdist 02f2fd7
* Sun Feb 15 2004 Than Ngo <than@redhat.com> 0.5.23-1
cvsdist 02f2fd7
- 0.5.23 release
cvsdist 9ebcc97
cvsdist 9ebcc97
* Tue Nov 25 2003 Than Ngo <than@redhat.com> 0.5.22-1
cvsdist 9ebcc97
- 0.5.22: renamed to system-switch-mail, support Exim MTA    
cvsdist 9ebcc97
cvsdist 9ebcc97
* Mon Sep 29 2003 Than Ngo <than@redhat.com> 0.5.21-1
cvsdist 9ebcc97
- 0.5.21, fixed Categories
cvsdist 9ebcc97
cvsdist 9ebcc97
* Thu Aug 14 2003 Than Ngo <than@redhat.com> 0.5.20-1
cvsdist 9ebcc97
- 0.5.20, use intltool instead pygettext,
cvsdist 9ebcc97
  thanks to Miloslav Trmac (bug #82319, #83464)
cvsdist 9ebcc97
cvsdist 9ebcc97
* Thu Jul 17 2003 Than Ngo <than@redhat.com> 0.5.19-1
cvsdist 9ebcc97
- 0.5.19
cvsdist 9ebcc97
- exim support
cvsdist 9ebcc97
- UTF8 issue in PO files
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed Feb  5 2003 Than Ngo <than@redhat.com> 0.5.18-1
cvsdist 9ebcc97
- 0.5.18
cvsdist 9ebcc97
cvsdist 9ebcc97
* Mon Feb  3 2003 Than Ngo <than@redhat.com> 0.5.17-1
cvsdist 9ebcc97
- 0.5.17
cvsdist 9ebcc97
cvsdist 9ebcc97
* Tue Dec 10 2002 Than Ngo <than@redhat.com> 0.5.16-1
cvsdist 9ebcc97
- rename to redhat-switch-mail
cvsdist 9ebcc97
- start service after successfully switched
cvsdist 9ebcc97
cvsdist 9ebcc97
* Sat Nov  9 2002 Than Ngo <than@redhat.com> 0.5.15-1
cvsdist 9ebcc97
- updated po files
cvsdist 9ebcc97
- remove some unpackaged files
cvsdist 9ebcc97
cvsdist 9ebcc97
* Tue Sep  3 2002 Than Ngo <than@redhat.com> 0.5.14-1
cvsdist 9ebcc97
- Updated po files
cvsdist 9ebcc97
cvsdist 9ebcc97
* Mon Aug 26 2002 Than Ngo <than@redhat.com> 0.5.13-1
cvsdist 9ebcc97
- Fix some inconsistent interface (bug #72443)
cvsdist 9ebcc97
cvsdist 9ebcc97
* Mon Aug 12 2002 Karsten Hopp <karsten@redhat.de>
cvsdist 9ebcc97
- fix german translation. String output was completely broken
cvsdist 9ebcc97
- use SystemSetup keyword
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed Aug  7 2002 Than Ngo <than@redhat.com> 0.5.11-1
cvsdist 9ebcc97
- move to X-Red-Hat-Extra (bug #70992)
cvsdist 9ebcc97
- Updated po files
cvsdist 9ebcc97
cvsdist 9ebcc97
* Tue Aug  6 2002 Than Ngo <than@redhat.com> 0.5.10-1
cvsdist 9ebcc97
- Fixed a bug in warningDialog (bug #70828)
cvsdist 9ebcc97
- Updated po files
cvsdist 9ebcc97
cvsdist 9ebcc97
* Fri Jul 26 2002 Than Ngo <than@redhat.com> 0.5.9-1
cvsdist 9ebcc97
- Use pam_timestamp.so
cvsdist 9ebcc97
cvsdist 9ebcc97
* Thu Jul 25 2002 Than Ngo <than@redhat.com> 0.5.8-1
cvsdist 9ebcc97
- new desktop file
cvsdist 9ebcc97
- update po files
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed Jun 12 2002 Harald Hoyer <harald@redhat.de>
cvsdist 9ebcc97
- fallback for C locale
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed Jun 12 2002 Than Ngo <than@redhat.com> 0.5.6-1
cvsdist 9ebcc97
- fixed traceback bug (bug #66465)
cvsdist 9ebcc97
cvsdist 9ebcc97
* Mon Jun  3 2002 Harald Hoyer <harald@redhat.de>
cvsdist 9ebcc97
- dropped gnome2, fixed automake Req
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed May 29 2002 Phil Knirsch <pknirsch@redhat.com> 0.5.3-1
cvsdist 9ebcc97
- Included all fixes for gnome2 by Harald Hoyer <harald@redhat.com>
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed May 29 2002 Phil Knirsch <pknirsch@redhat.com> 0.5.2-2
cvsdist 9ebcc97
- Fixed to build in new environment.
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed Apr 24 2002 Than Ngo <than@redhat.com> 0.5.2-1
cvsdist 9ebcc97
- fixed a bug in runing in text mode in X
cvsdist 9ebcc97
cvsdist 9ebcc97
* Wed Apr 10 2002 Than Ngo <than@redhat.com> 0.5.1-1
cvsdist 9ebcc97
- release 0.5.1
cvsdist 9ebcc97
- update translations
cvsdist 9ebcc97
cvsdist 9ebcc97
* Mon Apr  8 2002 Than Ngo <than@redhat.com> 0.5.0-1
cvsdist 9ebcc97
- release 0.5.0
cvsdist 9ebcc97
cvsdist 9ebcc97
* Sun Mar 31 2002 Than Ngo <than@redhat.com> 0.4.0-1
cvsdist 9ebcc97
- release 0.4.0
cvsdist 9ebcc97
cvsdist 9ebcc97
* Sat Mar 02 2002 Than Ngo <than@redhat.com> 0.3.0-1
cvsdist 9ebcc97
- update to 0.3.0 (bug #60590, #60591)
cvsdist 9ebcc97
cvsdist 9ebcc97
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 0.2.0-1
cvsdist 9ebcc97
- update to 0.2.0
cvsdist 9ebcc97
cvsdist 9ebcc97
* Thu Jan 31 2002 Bill Nottingham <notting@redhat.com> 0.1.1-1
cvsdist 9ebcc97
- %%defattr in -gnome package
cvsdist 9ebcc97
cvsdist 9ebcc97
* Mon Jan 28 2002 Than Ngo <than@redhat.com> 0.1.0-1
cvsdist 9ebcc97
- initial packaging