Blob Blame History Raw
# This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1

Name:		sugar-colordeducto
Version:	7
Release:	15%{?dist}
Summary:	To improve students skills to deducing logic and learning colors & schemes

License:	GPLv3 and MIT
URL:		http://activities.sugarlabs.org/en-US/sugar/addon/4221
Source0:	http://download.sugarlabs.org/sources/honey/ColorDeducto/ColorDeducto-%{version}.tar.bz2

BuildRequires:	sugar-toolkit-gtk3 gettext python2-devel
BuildArch:	noarch
Requires:	sugar

%description
To improve students skills to deducing logic and learning colors & schemes.

%prep
%setup -q -n ColorDeducto-%{version}
chmod +x  mun.py
sed -i 's/\r//' README.txt
sed -i "s|python|python2|g" setup.py
sed -i "s|python|python2|g" mun.py

%build
%{__python2} ./setup.py build

%install
%{__python2} ./setup.py install --prefix=%{buildroot}/%{_prefix}
rm %{buildroot}%{_prefix}/share/applications/*.desktop || true


%files
%license COPYING
%doc NEWS README.txt
%{sugaractivitydir}/ColorDeducto.activity/

%changelog
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Tue Jul 02 2019 Kalpa Welivitigoda <callkalpa@gmail.com> - 7-13
- Fix build without python-unversioned-command

* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 7-10
- Escape macros in %%changelog

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Tue Jun 04 2013 Danishka Navin <danishka@gmail.com> - 7-3
- removed python from  BuildRequires and removed newline after %%changelog

* Tue Jun 04 2013 Danishka Navin <danishka@gmail.com> - 7-2
- fixed new BuildRequires for python2-devel and sugar-toolkit-gtk3 added

* Tue Jun 04 2013 Danishka Navin <danishka@gmail.com> - 7-1
- updated to the version 7

* Tue Jul 17 2012 Danishka Navin <danishka@gmail.com> - 5-4
- droped %%defattr(-,root,root,-)

* Tue Jul 17 2012 Danishka Navin <danishka@gmail.com> - 5-3
- fixed both executable bit and wrong-file-end-of-line-encoding of README.txt

* Tue Jul 17 2012 Danishka Navin <danishka@gmail.com> - 5-2
- removed %%defattr(-,root,root,-) and fixed the versining issue in the changelog

* Mon Jul 16 2012 Danishka Navin <danishka@gmail.com> - 5-1
- initial packaging