Mario Santagiuliana 74aa35
Name:		TeXamator
Mario Santagiuliana 74aa35
Version:	1.7.5
a5530d
Release:	11%{?dist}
Mario Santagiuliana 74aa35
Summary:	Helping you making your exercise sheets
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
License:	GPLv3
Mario Santagiuliana 74aa35
URL:		http://snouffy.free.fr/blog-en/index.php/category/TeXamator
Mario Santagiuliana 74aa35
Source0:	http://snouffy.free.fr/blog-en/public/TeXamator/%{name}.v.%{version}.tar.gz
Mario Santagiuliana 74aa35
Source1:	%{name}.desktop
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
BuildArch:	noarch
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
BuildRequires:	desktop-file-utils
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
Requires:	PyQt4
Mario Santagiuliana 74aa35
Requires:	tex(latex)
Mario Santagiuliana 74aa35
Requires:	dvipng
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
%description
Mario Santagiuliana 74aa35
TeXamator is written in Python/Qt4. It is aimed at helping you making your
Mario Santagiuliana 74aa35
exercise sheets. Basically, it browses a specified directory, looks for .tex
Mario Santagiuliana 74aa35
files containing exercises and builds a tree with all your exercises in it. You
Mario Santagiuliana 74aa35
can click on an element of the tree to have a preview of the exercise and add
Mario Santagiuliana 74aa35
it to a list if you wish to. Then you can save your work to a .tex file or you
Mario Santagiuliana 74aa35
can generate a .dvi file.
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
%prep
Mario Santagiuliana 74aa35
%setup -q -n %{name}
Mario Santagiuliana 74aa35
find -name '*~' -delete # Remove backup file in source package
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
%build
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
%install
Mario Santagiuliana 74aa35
mkdir -p %{buildroot}%{_bindir}
Mario Santagiuliana 74aa35
mkdir -p %{buildroot}%{_datadir}/%{name}
Mario Santagiuliana 74aa35
cp -rp partielatormods %{buildroot}%{_datadir}/%{name}
Mario Santagiuliana 74aa35
cp -rp ts_files %{buildroot}%{_datadir}/%{name}
Mario Santagiuliana 74aa35
cp -rp ui_files %{buildroot}%{_datadir}/%{name}
Mario Santagiuliana 74aa35
cp -p %{name}.py %{buildroot}%{_datadir}/%{name}/%{name}.py
Mario Santagiuliana 74aa35
ln -s %{_datadir}/%{name}/%{name}.py %{buildroot}%{_bindir}/%{name} # Create a link in _bindir
Mario Santagiuliana 74aa35
# Remove shebang from Python libraries 
Mario Santagiuliana 74aa35
sed -i -e '/\/usr\/bin\/python/d' %{buildroot}%{_datadir}/%{name}/partielatormods/*.py
Mario Santagiuliana 74aa35
for lib in %{buildroot}%{_datadir}/%{name}/partielatormods/*/*.py; do
Mario Santagiuliana 74aa35
 sed '/\/usr\/bin\/python/d' $lib > $lib.new &&
Mario Santagiuliana 74aa35
 touch -r $lib $lib.new &&
Mario Santagiuliana 74aa35
 mv $lib.new $lib
Mario Santagiuliana 74aa35
done
Mario Santagiuliana 74aa35
# Remove developer's utility not need by the application
Mario Santagiuliana 74aa35
rm -f %{buildroot}%{_datadir}/%{name}/ui_files/plop.sh
Mario Santagiuliana 74aa35
# Add .desktop file
Mario Santagiuliana 74aa35
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
Mario Santagiuliana 74aa35
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
%files
Mario Santagiuliana 74aa35
%doc README gpl-3.0.txt
Mario Santagiuliana 74aa35
%{_bindir}/%{name}
Mario Santagiuliana 74aa35
%{_datadir}/%{name}
Mario Santagiuliana 74aa35
%{_datadir}/applications/%{name}.desktop
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
%changelog
a5530d
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-11
a5530d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a5530d
718545
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-10
718545
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
718545
47c75d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-9
47c75d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
47c75d
ab4fca
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-8
ab4fca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ab4fca
221cb0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-7
221cb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
221cb0
08cb47
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-6
08cb47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
08cb47
318115
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-5
318115
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
318115
05e925
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-4
05e925
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
05e925
671993
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-3
671993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
671993
f93d3f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2
f93d3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f93d3f
fd91d2
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-1
fd91d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fd91d2
Mario Santagiuliana 74aa35
* Sat Jan 14 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.5-0
Mario Santagiuliana 74aa35
- Update to new version 1.7.5
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
* Fri Jan 13 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.4-4
Mario Santagiuliana 74aa35
- Add .dektop file
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
* Fri Jan 13 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.4-3
Mario Santagiuliana 74aa35
- Follow comment 7 directive:
Mario Santagiuliana 74aa35
https://bugzilla.redhat.com/show_bug.cgi?id=772709#c7
Mario Santagiuliana 74aa35
- Fix error in changelog
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
* Thu Jan 12 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.4-2
Mario Santagiuliana 74aa35
- Follow comment 5:
Mario Santagiuliana 74aa35
https://bugzilla.redhat.com/show_bug.cgi?id=772709#c5
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
* Wed Jan 11 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.4-1
Mario Santagiuliana 74aa35
- Follow comment 3:
Mario Santagiuliana 74aa35
https://bugzilla.redhat.com/show_bug.cgi?id=772709#c3
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
* Wed Jan 11 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.4-0
Mario Santagiuliana 74aa35
- Update to new version 1.7.4
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
* Wed Jan 11 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.3-1
Mario Santagiuliana 74aa35
- Rename spec file
Mario Santagiuliana 74aa35
Mario Santagiuliana 74aa35
* Mon Jan 09 2012 Mario Santagiuliana <fedora@marionline.it> - 1.7.3-0
Mario Santagiuliana 74aa35
- initial build
Mario Santagiuliana 74aa35