|
|
e01202 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
e01202 |
%global vimdir %{_datadir}/vim/vimfiles
|
|
|
e01202 |
|
|
|
e01202 |
Summary: Text based document generation
|
|
|
e01202 |
Name: asciidoc
|
|
|
e01202 |
Version: 8.6.8
|
|
|
e01202 |
Release: 5%{?dist}
|
|
|
e01202 |
# The python code does not specify a version.
|
|
|
e01202 |
# The javascript example code is GPLv2+.
|
|
|
e01202 |
License: GPL+ and GPLv2+
|
|
|
e01202 |
Group: Applications/System
|
|
|
e01202 |
|
|
|
e01202 |
URL: http://www.methods.co.nz/asciidoc/
|
|
|
e01202 |
Source: http://sourceforge.net/projects/asciidoc/files/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
|
e01202 |
Patch0: asciidoc-8.6.8-music-noship.patch
|
|
|
e01202 |
Patch1: asciidoc-8.6.8-explicit-interpreter.patch
|
|
|
e01202 |
|
|
|
e01202 |
BuildRequires: python2-devel
|
|
|
e01202 |
BuildRequires: dblatex
|
|
|
e01202 |
BuildRequires: graphviz
|
|
|
e01202 |
BuildRequires: libxslt
|
|
|
e01202 |
%if 0%{?rhel} == 0
|
|
|
e01202 |
BuildRequires: lilypond
|
|
|
e01202 |
%endif
|
|
|
e01202 |
BuildRequires: source-highlight
|
|
|
e01202 |
BuildRequires: texlive-dvipng-bin
|
|
|
e01202 |
BuildRequires: vim-filesystem
|
|
|
e01202 |
BuildRequires: symlinks
|
|
|
e01202 |
|
|
|
e01202 |
|
|
|
e01202 |
Requires: python >= 2.4
|
|
|
e01202 |
Requires: docbook-style-xsl
|
|
|
e01202 |
Requires: graphviz
|
|
|
e01202 |
Requires: libxslt
|
|
|
e01202 |
Requires: libxslt
|
|
|
e01202 |
Requires: source-highlight
|
|
|
e01202 |
Requires: vim-filesystem
|
|
|
e01202 |
|
|
|
e01202 |
BuildArch: noarch
|
|
|
e01202 |
|
|
|
e01202 |
%description
|
|
|
e01202 |
AsciiDoc is a text document format for writing short documents,
|
|
|
e01202 |
articles, books and UNIX man pages. AsciiDoc files can be translated
|
|
|
e01202 |
to HTML and DocBook markups using the asciidoc(1) command.
|
|
|
e01202 |
|
|
|
e01202 |
%package doc
|
|
|
e01202 |
Summary: Additional documentation and examples for asciidoc
|
|
|
e01202 |
Requires: %{name} = %{version}-%{release}
|
|
|
e01202 |
|
|
|
e01202 |
%description doc
|
|
|
e01202 |
%{summary}.
|
|
|
e01202 |
|
|
|
e01202 |
%package latex
|
|
|
e01202 |
Summary: Support for asciidoc latex output
|
|
|
e01202 |
Requires: %{name} = %{version}-%{release}
|
|
|
e01202 |
Requires: dblatex
|
|
|
e01202 |
Requires: texlive-dvipng-bin
|
|
|
e01202 |
|
|
|
e01202 |
%description latex
|
|
|
e01202 |
%{summary}.
|
|
|
e01202 |
|
|
|
e01202 |
%if 0%{?rhel} == 0
|
|
|
e01202 |
%package music
|
|
|
e01202 |
Summary: Support for asciidoc music output
|
|
|
e01202 |
Requires: %{name} = %{version}-%{release}
|
|
|
e01202 |
Requires: lilypond
|
|
|
e01202 |
|
|
|
e01202 |
%description music
|
|
|
e01202 |
%{summary}.
|
|
|
e01202 |
%endif
|
|
|
e01202 |
|
|
|
e01202 |
%prep
|
|
|
e01202 |
%setup -q
|
|
|
e01202 |
%patch0 -p1 -b .music-noship
|
|
|
e01202 |
%patch1 -p1 -b .explicit-interpreter
|
|
|
e01202 |
|
|
|
e01202 |
# Fix line endings on COPYRIGHT file
|
|
|
e01202 |
sed -i "s/\r//g" COPYRIGHT
|
|
|
e01202 |
|
|
|
e01202 |
# Convert CHANGELOG and README to utf-8
|
|
|
e01202 |
for file in CHANGELOG README; do
|
|
|
e01202 |
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
|
|
|
e01202 |
touch -r $file $file.new && \
|
|
|
e01202 |
mv $file.new $file
|
|
|
e01202 |
done
|
|
|
e01202 |
|
|
|
e01202 |
# Remove music-filter doc
|
|
|
e01202 |
rm -f doc/music-filter.txt
|
|
|
e01202 |
|
|
|
e01202 |
%build
|
|
|
e01202 |
%configure
|
|
|
e01202 |
|
|
|
e01202 |
%install
|
|
|
e01202 |
make install docs DESTDIR=%{buildroot}
|
|
|
e01202 |
|
|
|
e01202 |
install -dm 755 %{buildroot}%{_datadir}/asciidoc/
|
|
|
e01202 |
# real conf data goes to sysconfdir, rest to datadir; symlinks so asciidoc works
|
|
|
e01202 |
for d in dblatex docbook-xsl images javascripts stylesheets; do
|
|
|
e01202 |
mv -v %{buildroot}%{_sysconfdir}/asciidoc/$d \
|
|
|
e01202 |
%{buildroot}%{_datadir}/asciidoc/
|
|
|
e01202 |
# absolute symlink into buildroot is intentional, see below
|
|
|
e01202 |
ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
e01202 |
|
|
|
e01202 |
# let's symlink stuff for documentation as well so we don't duplicate things
|
|
|
e01202 |
rm -rf %{buildroot}%{_docdir}/%{name}/$d
|
|
|
e01202 |
# absolute symlink into buildroot is intentional, see below
|
|
|
e01202 |
ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_docdir}/%{name}/
|
|
|
e01202 |
done
|
|
|
e01202 |
|
|
|
e01202 |
# Python API
|
|
|
e01202 |
install -Dpm 644 asciidocapi.py %{buildroot}%{python_sitelib}/asciidocapi.py
|
|
|
e01202 |
|
|
|
e01202 |
# Make it easier to %exclude these with both rpm < and >= 4.7
|
|
|
e01202 |
for file in %{buildroot}{%{_bindir},%{_sysconfdir}/asciidoc/filters/*}/*.py ; do
|
|
|
e01202 |
touch ${file}{c,o}
|
|
|
e01202 |
done
|
|
|
e01202 |
|
|
|
e01202 |
mkdir -p %{buildroot}%{vimdir}/{ftdetect,syntax}
|
|
|
e01202 |
for file in $(cd vim; find * -type f); do
|
|
|
e01202 |
install -m 0644 vim/$file %{buildroot}%{vimdir}/$file
|
|
|
e01202 |
done
|
|
|
e01202 |
|
|
|
e01202 |
# Remove music files for RHEL
|
|
|
e01202 |
%if 0%{?rhel} >= 0
|
|
|
e01202 |
rm -rf %{buildroot}{%{_sysconfdir}/asciidoc/filters/music,%{_sysconfdir}/asciidoc/filters/music/*.conf,%{_sysconfdir}/asciidoc/filters/music/*.py}
|
|
|
e01202 |
%endif
|
|
|
e01202 |
|
|
|
e01202 |
# Absolute symlinks were used above to be able to detect dangling ones. Make
|
|
|
e01202 |
# them relative now (sane for being installed) and remove dangling symlinks.
|
|
|
e01202 |
symlinks -cdr %{buildroot}
|
|
|
e01202 |
|
|
|
e01202 |
%check
|
|
|
e01202 |
export PATH="../:$PATH"
|
|
|
e01202 |
cd tests
|
|
|
e01202 |
python testasciidoc.py update
|
|
|
e01202 |
python testasciidoc.py run
|
|
|
e01202 |
|
|
|
e01202 |
%files
|
|
|
e01202 |
%doc COPYING COPYRIGHT BUGS CHANGELOG README
|
|
|
e01202 |
%doc %{_mandir}/man1/a2x.1*
|
|
|
e01202 |
%doc %{_mandir}/man1/asciidoc.1*
|
|
|
e01202 |
%config(noreplace) %{_sysconfdir}/asciidoc/
|
|
|
e01202 |
%{_bindir}/a2x
|
|
|
e01202 |
%{_bindir}/a2x.py
|
|
|
e01202 |
%{_bindir}/asciidoc
|
|
|
e01202 |
%{_bindir}/asciidoc.py
|
|
|
e01202 |
%{_datadir}/asciidoc/
|
|
|
e01202 |
%{python_sitelib}/asciidocapi.py*
|
|
|
e01202 |
%{vimdir}/ftdetect/asciidoc_filetype.vim
|
|
|
e01202 |
%{vimdir}/syntax/asciidoc.vim
|
|
|
e01202 |
%exclude %{_bindir}/*.py[co]
|
|
|
e01202 |
%exclude %{_sysconfdir}/asciidoc/filters/*/*.py[co]
|
|
|
e01202 |
%exclude %{_sysconfdir}/asciidoc/filters/latex
|
|
|
e01202 |
%exclude %{_sysconfdir}/asciidoc/filters/music
|
|
|
e01202 |
|
|
|
e01202 |
%files doc
|
|
|
e01202 |
%{_docdir}/%{name}
|
|
|
e01202 |
%exclude %{_docdir}/%{name}/{BUGS,CHANGELOG,COPYING,COPYRIGHT,README}
|
|
|
e01202 |
|
|
|
e01202 |
%files latex
|
|
|
e01202 |
%dir %{_sysconfdir}/asciidoc/filters/latex
|
|
|
e01202 |
%{_sysconfdir}/asciidoc/filters/latex/*.py
|
|
|
e01202 |
%{_sysconfdir}/asciidoc/filters/latex/*.conf
|
|
|
e01202 |
|
|
|
e01202 |
%if 0%{?rhel} == 0
|
|
|
e01202 |
%files music
|
|
|
e01202 |
%dir %{_sysconfdir}/asciidoc/filters/music
|
|
|
e01202 |
%{_sysconfdir}/asciidoc/filters/music/*.conf
|
|
|
e01202 |
%{_sysconfdir}/asciidoc/filters/music/*.py
|
|
|
e01202 |
%endif
|
|
|
e01202 |
|
|
|
e01202 |
|
|
|
e01202 |
%changelog
|
|
|
e01202 |
* Mon Feb 10 2014 Nils Philippsen <nils@redhat.com> - 8.6.8-5
|
|
|
e01202 |
- explicitly use system copy of Python 2.x (#987011)
|
|
|
e01202 |
- fix broken and remove dangling symlinks
|
|
|
e01202 |
|
|
|
e01202 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 8.6.8-3
|
|
|
e01202 |
- Mass rebuild 2013-12-27
|
|
|
e01202 |
|
|
|
e01202 |
* Thu Oct 3 2013 Paul W. Frields <pfrields@redhat.com> - 8.6.8-2
|
|
|
e01202 |
- Do not build or test musicfilter
|
|
|
e01202 |
|
|
|
e01202 |
* Thu Mar 7 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 8.6.8-1
|
|
|
e01202 |
- Update to latest upstream version
|
|
|
e01202 |
- Move things around make docs dir actually working
|
|
|
e01202 |
- Add proper requires on vim-filesystem
|
|
|
e01202 |
- Run testsuite
|
|
|
e01202 |
- Split music and latex support to subpackages
|
|
|
e01202 |
|
|
|
e01202 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.4.5-9
|
|
|
e01202 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e01202 |
|
|
|
e01202 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.4.5-8
|
|
|
e01202 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
e01202 |
|
|
|
e01202 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.4.5-7
|
|
|
e01202 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
e01202 |
|
|
|
e01202 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.4.5-6
|
|
|
e01202 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e01202 |
|
|
|
e01202 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 8.4.5-5
|
|
|
e01202 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
e01202 |
|
|
|
e01202 |
* Tue Sep 8 2009 Ville Skyttä <ville.skytta@iki.fi> - 8.4.5-4
|
|
|
e01202 |
- Remaining improvements from #480288:
|
|
|
e01202 |
- Add dependencies on libxslt and docbook-style-xsl.
|
|
|
e01202 |
- Install dblatex style sheets.
|
|
|
e01202 |
- Exclude unneeded *.py[co].
|
|
|
e01202 |
- Install python API.
|
|
|
e01202 |
- Specfile cleanups.
|
|
|
e01202 |
|
|
|
e01202 |
* Thu Aug 13 2009 Todd Zullinger <tmz@pobox.com> - 8.4.5-3
|
|
|
e01202 |
- Use 'unsafe' mode by default (bug 506953)
|
|
|
e01202 |
- Install filter scripts in %%{_datadir}/asciidoc
|
|
|
e01202 |
- Convert spec file, CHANGELOG, and README to utf-8
|
|
|
e01202 |
- Preserve timestamps on installed files, where feasible
|
|
|
e01202 |
- s/$RPM_BUILD_ROOT/%%{buildroot} and drop duplicated /'s
|
|
|
e01202 |
- Fix rpmlint mixed-use-of-spaces-and-tabs and end-of-line-encoding warnings
|
|
|
e01202 |
|
|
|
e01202 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.4.5-2
|
|
|
e01202 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
e01202 |
|
|
|
e01202 |
* Fri Jun 19 2009 Dave Airlie <airlied@redhat.com> 8.4.5-1
|
|
|
e01202 |
- new upstream version 8.4.5 - required by X.org libXi to build
|
|
|
e01202 |
|
|
|
e01202 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2.5-4
|
|
|
e01202 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
e01202 |
|
|
|
e01202 |
* Thu May 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 8.2.5-3
|
|
|
e01202 |
- fix license tag
|
|
|
e01202 |
|
|
|
e01202 |
* Wed Dec 05 2007 Florian La Roche <laroche@redhat.com> - 8.2.5-2
|
|
|
e01202 |
- remove doc/examples from filelist due to dangling symlinks
|
|
|
e01202 |
|
|
|
e01202 |
* Tue Nov 20 2007 Florian La Roche <laroche@redhat.com> - 8.2.5-1
|
|
|
e01202 |
- new upstream version 8.2.5
|
|
|
e01202 |
|
|
|
e01202 |
* Mon Oct 22 2007 Florian La Roche <laroche@redhat.com> - 8.2.3-1
|
|
|
e01202 |
- new upstream version 8.2.3
|
|
|
e01202 |
|
|
|
e01202 |
* Sat Sep 01 2007 Florian La Roche <laroche@redhat.com> - 8.2.2-1
|
|
|
e01202 |
- new upstream version 8.2.2
|
|
|
e01202 |
|
|
|
e01202 |
* Mon Mar 19 2007 Chris Wright <chrisw@redhat.com> - 8.1.0-1
|
|
|
e01202 |
- update to asciidoc 8.1.0
|
|
|
e01202 |
|
|
|
e01202 |
* Thu Sep 14 2006 Chris Wright <chrisw@redhat.com> - 7.0.2-3
|
|
|
e01202 |
- rebuild for Fedora Extras 6
|
|
|
e01202 |
|
|
|
e01202 |
* Tue Feb 28 2006 Chris Wright <chrisw@redhat.com> - 7.0.2-2
|
|
|
e01202 |
- rebuild for Fedora Extras 5
|
|
|
e01202 |
|
|
|
e01202 |
* Mon Aug 29 2005 Chris Wright <chrisw@osdl.org> - 7.0.2-1
|
|
|
e01202 |
- convert spec file to UTF-8
|
|
|
e01202 |
- Source should be URL
|
|
|
e01202 |
- update to 7.0.2
|
|
|
e01202 |
|
|
|
e01202 |
* Fri Aug 19 2005 Chris Wright <chrisw@osdl.org> - 7.0.1-3
|
|
|
e01202 |
- consistent use of RPM_BUILD_ROOT
|
|
|
e01202 |
|
|
|
e01202 |
* Thu Aug 18 2005 Chris Wright <chrisw@osdl.org> - 7.0.1-2
|
|
|
e01202 |
- Update BuildRoot
|
|
|
e01202 |
- use _datadir
|
|
|
e01202 |
- use config and _sysconfdir
|
|
|
e01202 |
|
|
|
e01202 |
* Wed Jun 29 2005 Terje Røsten <terje.rosten@ntnu.no> - 7.0.1-1
|
|
|
e01202 |
- 7.0.1
|
|
|
e01202 |
- Drop patch now upstream
|
|
|
e01202 |
- Build as noarch (Petr Klíma)
|
|
|
e01202 |
|
|
|
e01202 |
* Sat Jun 11 2005 Terje Røsten <terje.rosten@ntnu.no> - 7.0.0-0.3
|
|
|
e01202 |
- Add include patch
|
|
|
e01202 |
|
|
|
e01202 |
* Fri Jun 10 2005 Terje Røsten <terje.rosten@ntnu.no> - 7.0.0-0.2
|
|
|
e01202 |
- Fix stylesheets according to Stuart
|
|
|
e01202 |
|
|
|
e01202 |
* Fri Jun 10 2005 Terje Røsten <terje.rosten@ntnu.no> - 7.0.0-0.1
|
|
|
e01202 |
- Initial package
|
|
|
e01202 |
- Based on Debian package, thx!
|