Compare commits
11 Commits
4310726282
...
8062c89b51
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8062c89b51 | ||
|
|
3b2d79cbc6 | ||
|
|
72d81006ca | ||
|
|
01b07a2bd3 | ||
|
|
9869947007 | ||
|
|
07d9950b88 | ||
|
|
86b67d9ad4 | ||
|
|
0335fabb6b | ||
|
|
9e0f759cf9 | ||
|
|
664cc24dd0 | ||
|
|
359b56525a |
9
TeXamator.desktop
Normal file
9
TeXamator.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=TeXamator
|
||||
GenericName=TeXamator
|
||||
Type=Application
|
||||
Comment=Helping one deal with an exercises database
|
||||
Categories=Education;
|
||||
Exec=TeXamator
|
||||
Icon=/usr/share/TeXamator/ui_files/icones/TeXamator.png
|
||||
Terminal=false
|
||||
53
TeXamator.spec
Normal file
53
TeXamator.spec
Normal file
@ -0,0 +1,53 @@
|
||||
Name: TeXamator
|
||||
Version: 1.7.5
|
||||
Release: 12
|
||||
Summary: Helping one deal with an exercises database
|
||||
License: GPLv3
|
||||
URL: http://alexisfles.ch/en/texamator/texamator.html
|
||||
Source0: http://alexisfles.ch/files/TeXamator/TeXamator.v.%{version}.tar.gz
|
||||
Source1: TeXamator.desktop
|
||||
BuildArch: noarch
|
||||
BuildRequires: desktop-file-utils
|
||||
Requires: tex(latex) dvipng
|
||||
|
||||
%description
|
||||
TeXamator is designed at helping one deal with an exercises database (hence the name (t)exam-ator).
|
||||
Once configured, it will open all your .tex files in a given directory (recursively) and look for
|
||||
exercises (or anything you want it to). Then, it will show you everything in a tree and let you
|
||||
expand/collapse folders.Finally, you will be able to export all the exercises you selected to a
|
||||
.tex file or to a pdf.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name} -p1
|
||||
find -name '*~' -delete
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_bindir}
|
||||
install -d %{buildroot}%{_datadir}/TeXamator
|
||||
install -p TeXamator.py %{buildroot}%{_datadir}/TeXamator/TeXamator.py
|
||||
cp -rp partielatormods %{buildroot}%{_datadir}/TeXamator
|
||||
cp -rp ts_files %{buildroot}%{_datadir}/TeXamator
|
||||
cp -rp ui_files %{buildroot}%{_datadir}/TeXamator
|
||||
ln -s %{_datadir}/TeXamator/TeXamator.py %{buildroot}%{_bindir}/TeXamator
|
||||
sed -i -e '/\/usr\/bin\/python/d' %{buildroot}%{_datadir}/TeXamator/partielatormods/*.py
|
||||
for lib in %{buildroot}%{_datadir}/TeXamator/partielatormods/*/*.py; do
|
||||
sed '/\/usr\/bin\/python/d' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib
|
||||
done
|
||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/TeXamator.desktop
|
||||
|
||||
%files
|
||||
%doc README gpl-3.0.txt
|
||||
%{_bindir}/TeXamator
|
||||
%{_datadir}/TeXamator
|
||||
%{_datadir}/applications/TeXamator.desktop
|
||||
%exclude %{_datadir}/TeXamator/ui_files/plop.sh
|
||||
|
||||
%changelog
|
||||
* Wed May 18 2022 zhangshaoning <zhangshaoning@uniontech.com> - 1.7.5-12
|
||||
- Change bogus date
|
||||
|
||||
* Wed Jan 8 2019 Tianfei <tianfei16@huawei.com> - 1.7.5-11
|
||||
- Package init
|
||||
BIN
TeXamator.v.1.7.5.tar.gz
Normal file
BIN
TeXamator.v.1.7.5.tar.gz
Normal file
Binary file not shown.
4
TeXamator.yaml
Normal file
4
TeXamator.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: alexisflesch/texamator
|
||||
tag_prefix: ^
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user