| 1 |
Name: NaturalDocs
|
| 2 |
Version: 1.4
|
| 3 |
Release: 4%{?dist}
|
| 4 |
Summary: Documentation generator for multiple programming languages
|
| 5 |
|
| 6 |
Group: Development/Tools
|
| 7 |
License: GPLv2+
|
| 8 |
URL: http://www.naturaldocs.org/
|
| 9 |
Source0: http://downloads.sourceforge.net/naturaldocs/%{name}-%{version}.zip
|
| 10 |
Patch0: NaturalDocs-1.4-paths.patch
|
| 11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 12 |
BuildArch: noarch
|
| 13 |
|
| 14 |
BuildRequires: dos2unix
|
| 15 |
Requires: perl(:MODULE_COMPAT_%(eval $(%{__perl} -V:version); echo $version))
|
| 16 |
|
| 17 |
%description
|
| 18 |
Natural Docs is an open-source documentation generator for multiple
|
| 19 |
programming languages. You document your code in a natural syntax that
|
| 20 |
reads like plain English. Natural Docs then scans your code and builds
|
| 21 |
high-quality HTML documentation from it.
|
| 22 |
|
| 23 |
|
| 24 |
%prep
|
| 25 |
%setup -q -c
|
| 26 |
%patch0 -p0
|
| 27 |
|
| 28 |
|
| 29 |
%build
|
| 30 |
# There's a couple of files with DOS line endings
|
| 31 |
find . -type f -exec dos2unix -q -k '{}' \;
|
| 32 |
|
| 33 |
# And one non-UTF8 one
|
| 34 |
iconv -f ISO-8859-1 -t UTF-8 Help/example/Default.css >Help/example/Default.css.utf8
|
| 35 |
touch --reference Help/example/Default.css Help/example/Default.css.utf8
|
| 36 |
mv Help/example/Default.css.utf8 Help/example/Default.css
|
| 37 |
|
| 38 |
|
| 39 |
%install
|
| 40 |
rm -rf $RPM_BUILD_ROOT
|
| 41 |
|
| 42 |
# Directory structure
|
| 43 |
install -d $RPM_BUILD_ROOT%{_datadir}/NaturalDocs
|
| 44 |
install -d $RPM_BUILD_ROOT%{_sysconfdir}/NaturalDocs
|
| 45 |
install -d $RPM_BUILD_ROOT%{perl_vendorlib}
|
| 46 |
install -d $RPM_BUILD_ROOT%{_bindir}
|
| 47 |
|
| 48 |
# Copy files
|
| 49 |
cp -rp Info JavaScript Styles $RPM_BUILD_ROOT%{_datadir}/NaturalDocs
|
| 50 |
cp -rp Modules/* $RPM_BUILD_ROOT%{perl_vendorlib}
|
| 51 |
cp -rp Config/* $RPM_BUILD_ROOT%{_sysconfdir}/NaturalDocs
|
| 52 |
install -pm 755 NaturalDocs $RPM_BUILD_ROOT%{_bindir}
|
| 53 |
|
| 54 |
|
| 55 |
%clean
|
| 56 |
rm -rf $RPM_BUILD_ROOT
|
| 57 |
|
| 58 |
|
| 59 |
%files
|
| 60 |
%defattr(-,root,root,-)
|
| 61 |
%{_datadir}/NaturalDocs
|
| 62 |
%config(noreplace) %{_sysconfdir}/NaturalDocs
|
| 63 |
%{perl_vendorlib}/*
|
| 64 |
%{_bindir}/NaturalDocs
|
| 65 |
%doc License-GPL.txt
|
| 66 |
%doc Help/*
|
| 67 |
|
| 68 |
|
| 69 |
%changelog
|
| 70 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
|
| 71 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 72 |
|
| 73 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
|
| 74 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 75 |
|
| 76 |
* Mon Jul 07 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.4-2
|
| 77 |
- Add the forgotten Styles directory
|
| 78 |
|
| 79 |
* Fri Jul 04 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.4-1
|
| 80 |
- Initial packaging attempt
|