5568dd1
# This package depends on automagic byte compilation
5568dd1
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
e3b0596
%global py_byte_compile 1
5568dd1
Thomas Fitzsimmons aecc49a
Name: system-switch-java
0503789
Version: 1.1.8
8811ac3
Release: 11%{?dist}
Thomas Fitzsimmons aecc49a
Summary: A tool for changing the default Java toolset
Thomas Fitzsimmons aecc49a
Thomas Fitzsimmons 5c4845a
Jiri Vanek work d7d2afb
License: GPLv2+ and BSD
b2fddcf
URL: https://pagure.io/%{name}
0503789
Source0: http://releases.pagure.org/%{name}/%{name}-%{name}-%{version}.tar.gz
9d4163c
Patch0: pythonversion.bad.patch
40614da
# ask autopoint to use gettext installed on the system to prevent mismatch in version
40614da
Patch1: configure.patch
f70dcf2
Thomas Fitzsimmons aecc49a
BuildArch: noarch
Thomas Fitzsimmons aecc49a
b87e3ba
BuildRequires: make
Thomas Fitzsimmons f328b98
BuildRequires: desktop-file-utils
Thomas Fitzsimmons aecc49a
BuildRequires: gettext
0d7ef0a
BuildRequires: python3-devel
c0330fe
BuildRequires: gcc
c0330fe
BuildRequires: gcc-c++
17aeff3
BuildRequires: gettext-devel
0503789
BuildRequires: glib2-devel
0503789
BuildRequires: autoconf
0503789
BuildRequires: automake
Thomas Fitzsimmons a735071
c0330fe
Requires: /usr/sbin/alternatives
Thomas Fitzsimmons a735071
Requires: libglade2
0d7ef0a
Requires: python3-newt
0d7ef0a
Requires: python3-gobject-base
0d7ef0a
Requires: python3
Thomas Fitzsimmons aecc49a
Requires: usermode
Thomas Fitzsimmons a735071
Requires: usermode-gtk
Thomas Fitzsimmons a735071
Thomas Fitzsimmons aecc49a
%description
Thomas Fitzsimmons aecc49a
The system-switch-java package provides an easy-to-use tool to select
Thomas Fitzsimmons aecc49a
the default Java toolset for the system.
Thomas Fitzsimmons aecc49a
Thomas Fitzsimmons aecc49a
%prep
0503789
%setup -q -n system-switch-java-system-switch-java-1.1.8
9d4163c
%patch0
40614da
%patch1
Thomas Fitzsimmons aecc49a
Thomas Fitzsimmons aecc49a
%build
0503789
sh ./autogen.sh
Thomas Fitzsimmons a735071
%configure
Thomas Fitzsimmons aecc49a
make %{?_smp_mflags}
Thomas Fitzsimmons aecc49a
Thomas Fitzsimmons aecc49a
%install
Thomas Fitzsimmons aecc49a
make DESTDIR=%{buildroot} install
f542eb4
rm -rf %{buildroot}/usr/share/system-switch-java/__pycache__/*
Thomas Fitzsimmons aecc49a
%find_lang %{name}
Thomas Fitzsimmons f328b98
desktop-file-install \
Thomas Fitzsimmons f328b98
  --dir %{buildroot}%{_datadir}/applications \
Thomas Fitzsimmons f328b98
  %{buildroot}%{_datadir}/applications/%{name}.desktop
Thomas Fitzsimmons aecc49a
Thomas Fitzsimmons aecc49a
Thomas Fitzsimmons aecc49a
%files -f %{name}.lang
c0330fe
%license COPYING COPYING.icon
c0330fe
%doc AUTHORS README
Thomas Fitzsimmons a735071
%{_bindir}/%{name}
Thomas Fitzsimmons a735071
%{_sbindir}/%{name}
Thomas Fitzsimmons aecc49a
%dir %{_datadir}/%{name}
Thomas Fitzsimmons aecc49a
%{_datadir}/%{name}/switch_java_functions.py*
Thomas Fitzsimmons aecc49a
%{_datadir}/%{name}/switch_java_gui.py*
Thomas Fitzsimmons a735071
%{_datadir}/%{name}/switch_java_tui.py*
399fc05
%{_datadir}/%{name}/switch_java_globals.py*
399fc05
%{_datadir}/%{name}/switch_java_boot.py*
Thomas Fitzsimmons a735071
%{_datadir}/applications/%{name}.desktop
Thomas Fitzsimmons a735071
%{_datadir}/pixmaps/%{name}.png
Thomas Fitzsimmons aecc49a
%{_datadir}/%{name}/system-switch-java.glade
Thomas Fitzsimmons a735071
%config(noreplace) /etc/pam.d/%{name}
Thomas Fitzsimmons a735071
%config(noreplace) /etc/security/console.apps/%{name}
Thomas Fitzsimmons aecc49a
Thomas Fitzsimmons aecc49a
%changelog
8811ac3
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-11
8811ac3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8811ac3
fe85043
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-10
fe85043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
fe85043
450605d
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-9
450605d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
450605d
3cbd4ad
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-8
3cbd4ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
3cbd4ad
a5ab8d0
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-7
a5ab8d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a5ab8d0
5a6505e
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-6
5a6505e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5a6505e
73adb5d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-5
73adb5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
73adb5d
b5d9f09
* Mon Aug 03 2020 Petra Alice Mikova <pmikova@redhat.com> - 1.1.8-4
e3b0596
- replace %_python_bytecompile_extra with %py_byte_compile 
e3b0596
54c3a50
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-4
54c3a50
- Second attempt - Rebuilt for
54c3a50
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
54c3a50
8876c27
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-3
8876c27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8876c27
15352c0
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-2
15352c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
15352c0
0503789
* Wed Nov 06 2019 Petra Alice Mikova <pmikova@redhat.com> - 1.1.8-1
0503789
- updated to new sources
0503789
- autogen.sh is now run during the build instead prior
40614da
- configure.patch to avoid gettext version mismatch
0503789
0d7ef0a
* Fri Oct 11 2019 Lumír Balhar <lbalhar@redhat.com> - 1.1.7.2-7
0d7ef0a
- Fixed unversioned Python dependencies
0d7ef0a
9d4163c
* Fri Oct 04 2019 Jiri Vanek <jvanek@redhat.com> - 1.1.7.2-6
9d4163c
- pathced out python2 shebang
9d4163c
f542eb4
* Thu Oct 03 2019 Jiri Vanek <jvanek@redhat.com> - 1.1.7.2-5
f542eb4
- bumped to python instead of python2
f542eb4
- the sources are not 100% working with python 3 now, but patch will be upstreamed, and sources bumped
f542eb4
4ad5286
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7.2-4
4ad5286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4ad5286
c896767
* Tue Mar 5 2019 akurtakov <akurtakov@localhost.localdomain> 1.1.7.2-3
c896767
- Switch requires from pygtk2 (no longer needed) to python2-gobject to reflect new deps.
c896767
6b07d85
* Fri Mar 01 2019 - Jiri Vanek <jvanek@redhat.com> - 1.1.7.2-1
6b07d85
- bumped to 1.7.2 with gtk3 support (https://pagure.io/system-switch-java/c/801cd26e46075fa822b789ff79e775bc9079ea53?branch=master)
6b07d85
- removed BR of intltool
17aeff3
- added BR of gettext-devel
6b07d85
4a7b209
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7.1-8
4a7b209
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4a7b209
c0330fe
* Sun Oct 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.7.1-8
c0330fe
- Spec cleanups, use %%license
c0330fe
5567b46
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7.1-7
5567b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5567b46
cb9094d
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.7.1-6
cb9094d
- Update Python 2 dependency declarations to new packaging standards
cb9094d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
cb9094d
7a821b0
* Tue Feb 20 2018 - Jiri Vanek <jvanek@redhat.com> - 1.1.7.1-5
7a821b0
- added buildrequires on gcc/gcc-c++
7a821b0
- to follow new packaging guidelines which no longer automatically pulls gcc/c++ to build root
7a821b0
8150747
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7.1-4
8150747
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8150747
b2fddcf
* Mon Oct 16 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7.1-3
b2fddcf
- updated url to current package upstrem
b2fddcf
0218ba8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7.1-2
0218ba8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0218ba8
7140cae
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7.1-1
7140cae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7140cae
c92578a
* Thu Aug 04 2016 Jiri Vanek <jvanek@redhat.com> - 1.1.7.1-1
c92578a
- updated to latest upstream, removed upstreamed patches
c92578a
f70dcf2
* Tue Apr 26 2016 Jiri Vanek <jvanek@redhat.com> - 1.1.6-3
f70dcf2
- added upsteam patch 107 for better jdk9 support
f70dcf2
5edbc07
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-2
5edbc07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5edbc07
399fc05
* Tue Nov 24 2015 Jiri Vanek <jvanek@redhat.com> - 1.1.6-1
399fc05
- updated to upstream release of 1.1.6
399fc05
- removed all upstreamed patches
399fc05
c580080
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-12
c580080
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c580080
2d3d74c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-11
2d3d74c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2d3d74c
Jiri Vanek work 6d57813
* Tue Mar 11 2014 Jiri Vanek <jvanek@redhat.com> - 1.1.5-10
Jiri Vanek work d7d2afb
- Renamed (to baseurl) url macro to prevent shadowing
Jiri Vanek work d7d2afb
- Added BSD license to list of Licenses
Jiri Vanek work d7d2afb
 - (COPYING.icon says it's a 2-clause BSD license)
Jiri Vanek work d7d2afb
- removed buildroot definition and manual removing of it
Jiri Vanek work d7d2afb
064f7f2
* Fri Feb 21 2014 Omair Majid <omajid@redhat.com> - 1.1.5-9
064f7f2
- Remove libuser-python dependency
064f7f2
4f7b8e4
* Mon Feb 10 2014 Omair Majid <omajid@redhat.com> - 1.1.5-8
4f7b8e4
- Update to work with newer alternatives
4f7b8e4
99fc027
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-7
99fc027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
99fc027
7e65004
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-6
7e65004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7e65004
d30488f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-5
d30488f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d30488f
58efc28
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-4
58efc28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
58efc28
2e40e20
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
2e40e20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2e40e20
ac10567
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.5-2
ac10567
- recompiling .py files against Python 2.7 (rhbz#623409)
ac10567
dad0cd4
* Wed Aug 19 2009 Deepak Bhole <dbhole@redhat.com>  - 1.1.5-1-1
dad0cd4
- Update to 1.1.5 which fixes rhbz 493898 and adds more translations
dad0cd4
5039ff3
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-4
5039ff3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5039ff3
1f54e49
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-3
1f54e49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1f54e49
f9569bd
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1.4-2
f9569bd
- Rebuild for Python 2.6
f9569bd
acaa1e9
* Tue Oct 28 2008 Deepak Bhole <dbhole@redhat.com> - 1.1.4-1
acaa1e9
- Update to 1.1.4, which contains new translations
acaa1e9
cdd27ba
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.3-2
cdd27ba
- fix license tag
cdd27ba
Thomas Fitzsimmons fcc0759
* Thu Jul  3 2008 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.3-1
Thomas Fitzsimmons fcc0759
- Import system-switch-java 1.1.3.
Thomas Fitzsimmons fcc0759
- Remove desktop file patch.
Thomas Fitzsimmons 667fd62
- Remove Fedora 7 obsoletes.
Thomas Fitzsimmons fcc0759
- Resolves: rhbz#453625
Thomas Fitzsimmons fcc0759
Thomas Fitzsimmons 5c4845a
* Wed Jun 11 2008 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.2-3
Thomas Fitzsimmons 5c4845a
- Update URL and source tags to point to Fedora Hosted.
Thomas Fitzsimmons 5c4845a
Thomas Fitzsimmons 6cf5314
* Mon Apr 14 2008 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.2-2
Thomas Fitzsimmons 6cf5314
- Require libuser-python in place of libuser.
Thomas Fitzsimmons 6cf5314
- Require newt-python in place of newt.
Thomas Fitzsimmons 6cf5314
- Resolves: rhbz#251352
Thomas Fitzsimmons 6cf5314
Thomas Fitzsimmons 77984e7
* Tue Oct  2 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.2-1
Thomas Fitzsimmons 77984e7
- Import system-switch-java 1.1.2.
Thomas Fitzsimmons e1927f3
- Resolves: rhbz#312321
Thomas Fitzsimmons 77984e7
Thomas Fitzsimmons ca80273
* Fri Sep 28 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.1-1
Thomas Fitzsimmons ca80273
- Import system-switch-java 1.1.1.
Thomas Fitzsimmons ca80273
Thomas Fitzsimmons ae9a63e
* Sat Jul 21 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.0-4
Thomas Fitzsimmons ae9a63e
- Tolerate trailing newlines in alternatives file.
Thomas Fitzsimmons ae9a63e
- Bump release number.
Thomas Fitzsimmons ae9a63e
Thomas Fitzsimmons f328b98
* Sat Jul 14 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.0-3
Thomas Fitzsimmons f328b98
- Use Fedora 8 desktop file categories.
Thomas Fitzsimmons f328b98
- Use desktop-file-install.
Thomas Fitzsimmons f328b98
- Bump release number.
Thomas Fitzsimmons f328b98
Thomas Fitzsimmons a116fa7
* Thu Jul  5 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.0-2
Thomas Fitzsimmons a116fa7
- Bump release number.
Thomas Fitzsimmons a116fa7
Thomas Fitzsimmons fb0b022
* Thu Jul  5 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.0-1
Thomas Fitzsimmons fb0b022
- Do not use desktop-file-install.
Thomas Fitzsimmons fb0b022
Thomas Fitzsimmons 4748dc5
* Wed Jul  4 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.0-1
Thomas Fitzsimmons 4748dc5
- Add categories when installing desktop file.
Thomas Fitzsimmons 4748dc5
399fc05
* Wed Jun 27 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.0-1
Thomas Fitzsimmons a735071
- Import system-switch-java 1.1.0.
Thomas Fitzsimmons a735071
- Merge gui subpackage into base package.
Thomas Fitzsimmons a735071
Thomas Fitzsimmons aecc49a
* Tue Jan 23 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.0.0-1
Thomas Fitzsimmons aecc49a
- Initial release.