Tim Fenn 58eff97
# Turn off the brp-python-bytecompile script
Tim Fenn 58eff97
%global srcname pmw
Tim Fenn 58eff97
%global sum Python powerwidgets
19e809f
19e809f
Name: python-pmw
Tim Fenn 58eff97
Version: 2.0.0
b2c4b91
Release: 22%{?dist}
Tim Fenn 58eff97
Summary: %{sum}
19e809f
License: MIT and GPLv2+
19e809f
URL: http://pmw.sourceforge.net/
Tim Fenn 58eff97
Source: http://downloads.sourceforge.net/pmw/Pmw-%{version}.tar.gz
ac39160
BuildRequires: python3-devel
ac39160
BuildRequires: python3-setuptools
Tim Fenn 58eff97
BuildRequires: dos2unix
Tim Fenn 58eff97
BuildArch: noarch
19e809f
19e809f
%description
19e809f
Pmw is a toolkit for building high-level compound widgets in Python
19e809f
using the Tkinter module. It consists of a set of base classes and a
19e809f
library of flexible and extensible megawidgets built on this
19e809f
foundation. These megawidgets include notebooks, comboboxes, selection
Tim Fenn 58eff97
widgets, paned widgets, scrolled widgets and dialog windows
Tim Fenn 58eff97
Tim Fenn 58eff97
%package -n python3-%{srcname}
Tim Fenn 58eff97
Summary: %{sum}
1f359be
Requires: python3-tkinter
Tim Fenn 58eff97
%{?python_provide:%python_provide python3-%{srcname}}
Tim Fenn 58eff97
Tim Fenn 58eff97
%description -n python3-%{srcname}
Tim Fenn 58eff97
Pmw is a toolkit for building high-level compound widgets in Python
Tim Fenn 58eff97
using the Tkinter module. It consists of a set of base classes and a
Tim Fenn 58eff97
library of flexible and extensible megawidgets built on this
Tim Fenn 58eff97
foundation. These megawidgets include notebooks, comboboxes, selection
19e809f
widgets, paned widgets, scrolled widgets and dialog windows.
19e809f
19e809f
%prep
Tim Fenn 58eff97
%autosetup -n Pmw-%{version}
19e809f
19e809f
%build
Tim Fenn 58eff97
%py3_build
19e809f
19e809f
%install
Tim Fenn 58eff97
%py3_install
Tim Fenn 58eff97
Tim Fenn 58eff97
# file fixes
Tim Fenn cede446
chmod 644 Pmw/Pmw_1_3_3/doc/*
Tim Fenn cede446
chmod 644 Pmw/Pmw_2_0_0/doc/*
Tim Fenn 58eff97
Tim Fenn 58eff97
dir_list="Pmw_1_3_3/tests
Tim Fenn 58eff97
Pmw_1_3_3/demos
Tim Fenn 58eff97
Pmw_1_3_3/bin
Tim Fenn 58eff97
Pmw_2_0_0/tests
Tim Fenn 58eff97
Pmw_2_0_0/demos
Tim Fenn 58eff97
Pmw_2_0_0/bin"
Tim Fenn 58eff97
Tim Fenn 58eff97
for dir in $dir_list; do
Tim Fenn 58eff97
for lib in ${RPM_BUILD_ROOT}%{python3_sitelib}/Pmw/$dir/*.py; do
Tim Fenn 58eff97
 sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
Tim Fenn 58eff97
 touch -r $lib $lib.new &&
Tim Fenn 58eff97
 mv $lib.new $lib
Tim Fenn 58eff97
done
Tim Fenn 58eff97
done
Tim Fenn 58eff97
Tim Fenn cede446
rm -rf %{buildroot}%{python3_sitelib}/Pmw/Pmw_1_3_3
Tim Fenn cede446
Tim Fenn 58eff97
%files -n python3-%{srcname}
Tim Fenn cede446
%doc Pmw/Pmw_2_0_0/doc
Tim Fenn 58eff97
%{python3_sitelib}/*egg-info
Tim Fenn 58eff97
%{python3_sitelib}/Pmw
19e809f
19e809f
%changelog
b2c4b91
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-22
b2c4b91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b2c4b91
236159c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.0-21
236159c
- Rebuilt for Python 3.10
236159c
c3592ff
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-20
c3592ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c3592ff
370ad0b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-19
370ad0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
370ad0b
7bcc404
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-18
7bcc404
- Rebuilt for Python 3.9
7bcc404
5dc4abe
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-17
5dc4abe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5dc4abe
d8b0743
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-16
d8b0743
- Rebuilt for Python 3.8.0rc1 (#1748018)
d8b0743
ac39160
* Thu Aug 22 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-15
ac39160
- Subpackage python2-pmw has been removed
ac39160
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
ac39160
7a5fa42
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-14
7a5fa42
- Rebuilt for Python 3.8
7a5fa42
984cb15
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-13
984cb15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
984cb15
d5d5e7b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-12
d5d5e7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d5d5e7b
d071797
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-11
d071797
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d071797
eb73e92
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-10
eb73e92
- Rebuilt for Python 3.7
eb73e92
a43cd3d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-9
a43cd3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a43cd3d
0e72090
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-8
0e72090
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0e72090
16f9f8a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
16f9f8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
16f9f8a
3233ec1
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-6
3233ec1
- Rebuild for Python 3.6
3233ec1
Tim Fenn c592e19
* Sat Jul 30 2016 Tim Fenn <tim.fenn@gmail.com> - 2.0.0-5
Tim Fenn cede446
- fix python2 vs python3 packaging
Tim Fenn cede446
19501b4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4
19501b4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
19501b4
Tim Fenn f2e66bd
* Tue Jul 12 2016 Tim Fenn <tim.fenn@gmail.com> - 2.0.0-3
Tim Fenn f2e66bd
- more fixes for tkinter import
Tim Fenn f2e66bd
Tim Fenn 1b2cc4e
* Tue Jul 12 2016 Tim Fenn <tim.fenn@gmail.com> - 2.0.0-2
Tim Fenn 1b2cc4e
- fix for tkinter import
Tim Fenn 1b2cc4e
Tim Fenn 58eff97
* Sun Apr 17 2016 Tim Fenn <tim.fenn@gmail.com> - 2.0.0-1
Tim Fenn 58eff97
- update to 2.0.0
Tim Fenn 58eff97
- add python3 module
Tim Fenn 58eff97
- spec cleanups
Tim Fenn 58eff97
7bf3645
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-19
7bf3645
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7bf3645
792c5c0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-18
792c5c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
792c5c0
f4b8396
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3.2-17
f4b8396
- Replace python-setuptools-devel BR with python-setuptools
f4b8396
f3f99ac
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-16
f3f99ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f3f99ac
f2a3103
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-15
f2a3103
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f2a3103
1634b33
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-14
1634b33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1634b33
408e9b4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-13
408e9b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
408e9b4
bbe449c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-12
bbe449c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bbe449c
68f545d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-11
68f545d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
68f545d
937c52e
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.2-10
937c52e
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
937c52e
f14db75
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-9
f14db75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f14db75
8a9eef3
* Wed May 13 2009 Tim Fenn <fenn@stanford.edu> - 1.3.2-8
8a9eef3
- patch for unicode menus (Mamoru Tasaka), bug ID 500459
8a9eef3
18aaec4
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-7
18aaec4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
18aaec4
35c6b7e
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.2-6
35c6b7e
- Rebuild for Python 2.6
35c6b7e
19e809f
* Wed Oct 08 2008 Tim Fenn <fenn@stanford.edu> - 1.3.2-5
19e809f
- remove python and python-devel from buildrequires/requires
19e809f
19e809f
* Sun Oct 05 2008 Tim Fenn <fenn@stanford.edu> - 1.3.2-4
19e809f
- remove CFLAGS, minor fixes
19e809f
19e809f
* Thu Oct 02 2008 Tim Fenn <fenn@stanford.edu> - 1.3.2-3
19e809f
- add doc to %%files, add egg-info, spec updates, change license
19e809f
19e809f
* Sun Sep 28 2008 Tim Fenn <fenn@stanford.edu> - 1.3.2-2
19e809f
- fix build problems
19e809f
19e809f
* Fri Sep 12 2008 Tim Fenn <fenn@stanford.edu> - 1.3.2-1
19e809f
- initial build