]> git.pld-linux.org Git - packages/NaturalDocs.git/blame - NaturalDocs.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/NaturalDocs.git] / NaturalDocs.spec
CommitLineData
42bcd98d 1Summary: Multi-language documentation generator
0457ec09 2Summary(pl.UTF-8): Wielojęzykowy generator dokumentacji
42bcd98d 3Name: NaturalDocs
f84b39e3 4Version: 1.52
930df172 5Release: 1
42bcd98d 6License: GPL
7Group: Applications
f84b39e3
ER
8Source0: http://downloads.sourceforge.net/naturaldocs/%{name}-%{version}.zip
9# Source0-md5: 68e3982acae57b6befdf9e75b420fd80
42bcd98d 10Patch0: %{name}-path.patch
11URL: http://www.naturaldocs.org/
930df172 12BuildRequires: iconv
49adac8a
JB
13BuildRequires: perl-modules >= 1:5.8.0
14BuildRequires: rpm-perlprov >= 4.1-13
53c6ff82 15BuildRequires: unzip
930df172 16BuildArch: noarch
42bcd98d 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Natural Docs is an open-source, extensible, multi-language
21documentation generator. It extracts specially formatted comments from
22source code and builds HTML documentation from it. The syntax is
23transparent so that the comments in the source code read just as
24easily as the generated documentation. It also focuses on automation
25and high-quality generated output.
26
a47e55f5
JR
27%description -l pl.UTF-8
28Natural Docs jest łatwo rozszerzalnym, wielojęzykowym generatorem
29dokumentacji o otwartym kodzie źródłowym. Wyciąga on odpowiednio
30sformatowane komentarze z kodu źródłowego i tworzy z nich dokumentację
31w postaci HTML-u. Składnia jest przezroczysta, więc komentarze
32wewnątrz kodu źródłowego są równie łatwe do przeczytania jak i
33wygenerowana dokumentacja. Natural Docs koncentruje się także na
34wysokiej jakości wygenerowanej dokumentacji.
42bcd98d 35
36%prep
37%setup -q -c
930df172
ER
38%patch0 -p0
39
40# And one non-UTF8 one
41iconv -f ISO-8859-1 -t UTF-8 Help/example/Default.css > Help/example/Default.css.utf8
42touch --reference Help/example/Default.css Help/example/Default.css.utf8
43mv Help/example/Default.css.utf8 Help/example/Default.css
42bcd98d 44
42bcd98d 45%install
46rm -rf $RPM_BUILD_ROOT
930df172 47install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_datadir}/%{name}/JavaScript,%{_bindir},%{perl_vendorlib}}
42bcd98d 48
49mv Modules/%{name} $RPM_BUILD_ROOT%{perl_vendorlib}
50mv Styles $RPM_BUILD_ROOT%{_datadir}/%{name}
930df172
ER
51cp -a Config/*.txt $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
52cp -a JavaScript/*.js $RPM_BUILD_ROOT%{_datadir}/%{name}/JavaScript
53install -p %{name} $RPM_BUILD_ROOT%{_bindir}
42bcd98d 54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
e9ad9461 60%doc Info/CSSGuide.txt Info/NDMarkup.txt Help/*
930df172
ER
61%dir %{_sysconfdir}/%{name}
62%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/Languages.txt
63%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/Topics.txt
64%attr(755,root,root) %{_bindir}/NaturalDocs
42bcd98d 65%{_datadir}/%{name}
66%{perl_vendorlib}/%{name}
This page took 0.082672 seconds and 4 git commands to generate.