-
Notifications
You must be signed in to change notification settings - Fork 1
/
asciidoc.spec
123 lines (95 loc) · 4 KB
/
asciidoc.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Summary: Text based document generation
Name: asciidoc
Version: 8.2.5
Release: 2%{?dist}
License: GPL
Group: Applications/System
URL: http://www.methods.co.nz/asciidoc/
Source0: http://www.methods.co.nz/asciidoc/%{name}-%{version}.tar.gz
Requires: python >= 2.3
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
AsciiDoc is a text document format for writing short documents,
articles, books and UNIX man pages. AsciiDoc files can be translated
to HTML and DocBook markups using the asciidoc(1) command.
%prep
%setup -q
%build
%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
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%config(noreplace) %{_sysconfdir}/asciidoc
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/asciidoc/
%doc README BUGS CHANGELOG COPYRIGHT
%changelog
* Wed Nov 19 2008 David Hrbáč <[email protected]> - 8.2.5-2
- initial rebuild
* Wed Dec 05 2007 Florian La Roche <[email protected]> - 8.2.5-2
- remove doc/examples from filelist due to dangling symlinks
* Tue Nov 20 2007 Florian La Roche <[email protected]> - 8.2.5-1
- new upstream version 8.2.5
* Mon Oct 22 2007 Florian La Roche <[email protected]> - 8.2.3-1
- new upstream version 8.2.3
* Sat Sep 01 2007 Florian La Roche <[email protected]> - 8.2.2-1
- new upstream version 8.2.2
* Mon Mar 19 2007 Chris Wright <[email protected]> - 8.1.0-1
- update to asciidoc 8.1.0
* Thu Sep 14 2006 Chris Wright <[email protected]> - 7.0.2-3
- rebuild for Fedora Extras 6
* Tue Feb 28 2006 Chris Wright <[email protected]> - 7.0.2-2
- rebuild for Fedora Extras 5
* Mon Aug 29 2005 Chris Wright <[email protected]> - 7.0.2-1
- convert spec file to UTF-8
- Source should be URL
- update to 7.0.2
* Fri Aug 19 2005 Chris Wright <[email protected]> - 7.0.1-3
- consistent use of RPM_BUILD_ROOT
* Thu Aug 18 2005 Chris Wright <[email protected]> - 7.0.1-2
- Update BuildRoot
- use _datadir
- use config and _sysconfdir
* Wed Jun 29 2005 Terje Røsten <[email protected]> - 7.0.1-1
- 7.0.1
- Drop patch now upstream
- Build as noarch (Petr KlÃma)
* Sat Jun 11 2005 Terje Røsten <[email protected]> - 7.0.0-0.3
- Add include patch
* Fri Jun 10 2005 Terje Røsten <[email protected]> - 7.0.0-0.2
- Fix stylesheets according to Stuart
* Fri Jun 10 2005 Terje Røsten <[email protected]> - 7.0.0-0.1
- Initial package
- Based on Debian package, thx!