|
@@ -1,13 +1,19 @@
|
|
|
Summary: Text based document generation
|
|
|
Summary(ja): テキストベースのドキュメント生成
|
|
|
Name: asciidoc
|
|
|
-Version: 8.2.5
|
|
|
+Version: 8.6.4
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: GPL
|
|
|
Group: Applications/System
|
|
|
URL: http://www.methods.co.nz/asciidoc/
|
|
|
-Source0: http://www.methods.co.nz/asciidoc/%{name}-%{version}.tar.gz
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: daisuke, kenta
|
|
|
+Source0: http://downloads.sourceforge.net/project/asciidoc/asciidoc/%{version}/%{name}-%{version}.tar.gz
|
|
|
+BuildRequires: python
|
|
|
Requires: python
|
|
|
+Requires: docbook-style-xsl
|
|
|
+Requires: libxslt
|
|
|
BuildArch: noarch
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
@@ -20,55 +26,30 @@ to HTML and DocBook markups using the asciidoc(1) command.
|
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
|
+%configure
|
|
|
|
|
|
%install
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
-# make directory structure
|
|
|
-%{__install} -d $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc/filters \
|
|
|
- $RPM_BUILD_ROOT/%{_datadir}/asciidoc/docbook-xsl \
|
|
|
- $RPM_BUILD_ROOT/%{_datadir}/asciidoc/stylesheets \
|
|
|
- $RPM_BUILD_ROOT/%{_datadir}/asciidoc/javascripts \
|
|
|
- $RPM_BUILD_ROOT/%{_datadir}/asciidoc/images/icons/callouts \
|
|
|
- $RPM_BUILD_ROOT/%{_bindir} \
|
|
|
- $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
|
-
|
|
|
-# real conf data goes to sysconfdir, rest goes to datadir
|
|
|
-%{__install} -m 0644 *.conf $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc
|
|
|
-%{__install} -m 0644 filters/*.conf $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc/filters/
|
|
|
-%{__install} filters/*.py $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc/filters/
|
|
|
-
|
|
|
-# symlinks so asciidoc works
|
|
|
-ln -s %{_datadir}/asciidoc/docbook-xsl $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc/
|
|
|
-ln -s %{_datadir}/asciidoc/stylesheets $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc/
|
|
|
-ln -s %{_datadir}/asciidoc/javascripts $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc/
|
|
|
-ln -s %{_datadir}/asciidoc/images $RPM_BUILD_ROOT/%{_sysconfdir}/asciidoc/
|
|
|
-
|
|
|
-# binaries
|
|
|
-%{__install} asciidoc.py $RPM_BUILD_ROOT/%{_bindir}/asciidoc
|
|
|
-%{__install} a2x $RPM_BUILD_ROOT/%{_bindir}/
|
|
|
-
|
|
|
-# manpages
|
|
|
-%{__install} -m 0644 doc/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
|
-
|
|
|
-# ancillary data
|
|
|
-%{__install} -m 0644 docbook-xsl/*.xsl $RPM_BUILD_ROOT/%{_datadir}/asciidoc/docbook-xsl
|
|
|
-%{__install} -m 0644 stylesheets/*.css $RPM_BUILD_ROOT/%{_datadir}/asciidoc/stylesheets/
|
|
|
-%{__install} -m 0644 javascripts/*.js $RPM_BUILD_ROOT/%{_datadir}/asciidoc/javascripts
|
|
|
-%{__install} -m 0644 images/icons/callouts/* $RPM_BUILD_ROOT/%{_datadir}/asciidoc/images/icons/callouts
|
|
|
-%{__install} -m 0644 images/icons/{README,*.png} $RPM_BUILD_ROOT/%{_datadir}/asciidoc/images/icons
|
|
|
+rm -rf %{buildroot}
|
|
|
+make install DESTDIR=%{buildroot}
|
|
|
+
|
|
|
+# Python API
|
|
|
+install -Dpm 644 asciidocapi.py %{buildroot}%{python_sitelib}/asciidocapi.py
|
|
|
|
|
|
%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,0755)
|
|
|
%config(noreplace) %{_sysconfdir}/asciidoc
|
|
|
%{_bindir}/*
|
|
|
%{_mandir}/man1/*
|
|
|
-%{_datadir}/asciidoc/
|
|
|
+%{python_sitelib}/asciidocapi.py*
|
|
|
%doc README BUGS CHANGELOG COPYRIGHT
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Apr 26 2011 NAKAMURA Kenta <kenta@vinelinux.org> 8.6.4-1
|
|
|
+- new upstream version 8.6.4
|
|
|
+
|
|
|
* Wed Aug 20 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 8.2.5-1
|
|
|
- initial build for Vine Linux
|
|
|
|