35b1134
Name:           wiki2beamer
24aae8c
Version:        0.10.0
77b1460
Release:        8%{?dist}
35b1134
Summary:        Converts a simple wiki-like syntax to complex LaTeX beamer code
24aae8c
# Code is GPLv2+, documentation is GFDL
35b1134
License:        GPLv2+ and GFDL
35b1134
BuildArch:      noarch
eed9510
BuildRequires:  python3-devel
24aae8c
# For generating man page
24aae8c
BuildRequires:  rubygem-asciidoctor
24aae8c
URL:            https://github.com/wiki2beamer/wiki2beamer
24aae8c
Source0:        https://github.com/wiki2beamer/wiki2beamer/archive/%{name}-v%{version}/%{name}-%{version}.tar.gz
35b1134
35b1134
%description
35b1134
Wiki2beamer converts a simple wiki-like syntax to complex LaTeX beamer code. 
35b1134
It's written in python and should run on windows and all *nix platforms. Why 
35b1134
collaborative? Because you can use it with version control systems. Afraid 
35b1134
to loose some LaTeX powers? Don't worry: you can always fall back to plain 
35b1134
LaTeX as wiki2beamer is just a preprocessor.
35b1134
35b1134
%prep
24aae8c
%setup -q -n %{name}-%{name}-v%{version}
35b1134
24aae8c
for file in code/wiki2beamer tests/test_wiki2beamer.py; do
eed9510
    sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|' $file
35b1134
done
35b1134
mv doc/fdl.txt doc/LICENSE-DOCS
35b1134
35b1134
%build
35b1134
pushd code/
eed9510
%{__python3} setup.py build
35b1134
popd
35b1134
35b1134
%install
35b1134
pushd code/
eed9510
%{__python3} setup.py install --skip-build --root %{buildroot}
35b1134
popd
24aae8c
24aae8c
pushd doc/man/
24aae8c
asciidoctor -b manpage %{name}.adoc
24aae8c
install -p -m644 -D %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
24aae8c
popd
24aae8c
eed9510
rm -r %{buildroot}/%{python3_sitelib}
35b1134
35b1134
%check
24aae8c
pushd tests
24aae8c
./test_wiki2beamer.py
24aae8c
popd
35b1134
35b1134
%files
24aae8c
%doc ChangeLog LICENSE README.md doc/LICENSE-DOCS doc/examples
24aae8c
%{_bindir}/wiki2beamer
24aae8c
%{_mandir}/man1/wiki2beamer.1*
35b1134
35b1134
%changelog
77b1460
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-8
77b1460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
77b1460
3b67682
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-7
3b67682
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3b67682
2d89907
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-6
2d89907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2d89907
cc251ec
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-5
cc251ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cc251ec
c5c7779
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-4
c5c7779
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c5c7779
a8adb4d
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
a8adb4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a8adb4d
a50d6aa
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
a50d6aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a50d6aa
24aae8c
* Fri Mar 01 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.10.0-1
24aae8c
- Update to 0.10.0, fixing Python 3.3 incompability.
24aae8c
- Upstream moved to GitHub, also enable tests.
24aae8c
4e6a6c1
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-17
4e6a6c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4e6a6c1
1e70cd3
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-16
1e70cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1e70cd3
020b01b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-15
020b01b
- Rebuilt for Python 3.7
020b01b
f4b9853
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-14
f4b9853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f4b9853
d4e4329
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-13
d4e4329
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d4e4329
f6e313a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-12
f6e313a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f6e313a
20a8a4c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-11
20a8a4c
- Rebuild for Python 3.6
20a8a4c
34f96f9
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-10
34f96f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
34f96f9
eed9510
* Sat Nov 14 2015 Sebastian Dyroff <sdyroff@fedoraproject.org> - 0.9.5-9
eed9510
- Switch to python3
eed9510
778816b
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-8
778816b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
778816b
079b436
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-7
079b436
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
079b436
d5d8012
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-6
d5d8012
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d5d8012
b1c4f03
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-5
b1c4f03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b1c4f03
35b1134
* Thu Oct 04 2012 Sebastian Dyroff <sdyroff@fedoraproject.org> - 0.9.5-4
35b1134
- Email address in changelog
35b1134
- Remove the clean tag
35b1134
- Add README to doc
35b1134
35b1134
* Thu Oct 04 2012 Sebastian Dyroff <sdyroff@fedoraproject.org> - 0.9.5-3
35b1134
- Macro consistency
35b1134
35b1134
* Sat Sep 22 2012 Sebastian Dyroff <sdyroff@fedoraproject.org> - 0.9.5-2
35b1134
- Fix release tag
35b1134
- Not cleaning the buildroot(obsolete)
35b1134
- Renamed fdl.txt to LICENSE-DOCS
35b1134
35b1134
* Mon Aug 27 2012 Sebastian Dyroff <sdyroff@fedoraproject.org> - 0.9.5-1
35b1134
- Initial package