| 1 |
Name: JSDoc
|
| 2 |
Version: 1.10.2
|
| 3 |
Release: 8%{?dist}
|
| 4 |
Summary: Produces javadoc-style documentation from JavaScript sourcefiles
|
| 5 |
Group: Development/Tools
|
| 6 |
# No license attribution in code, only COPYING.
|
| 7 |
License: GPL+
|
| 8 |
URL: http://jsdoc.sourceforge.net
|
| 9 |
Source0: http://downloads.sourceforge.net/jsdoc/%{name}-%{version}.tgz
|
| 10 |
Source1: %{name}-COPYING.txt.gz
|
| 11 |
Patch0: %{name}-mc-build.patch
|
| 12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 13 |
BuildArch: noarch
|
| 14 |
Requires: perl(HTML::Template)
|
| 15 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
| 16 |
|
| 17 |
%description
|
| 18 |
A script that produces javadoc-style documentation from
|
| 19 |
well-formed JavaScript sourcefiles. At the moment, this means it
|
| 20 |
supports sourcefiles where all functions are mapped to a class
|
| 21 |
using prototype-based inheritance. Anonymous function
|
| 22 |
definitions (e.g. Circle.prototype.getRadius = function(){ ...} )
|
| 23 |
are supported.
|
| 24 |
|
| 25 |
%prep
|
| 26 |
%setup -q -n %{name}-%{version}
|
| 27 |
gzip -dc %{SOURCE1} >COPYING
|
| 28 |
%patch0 -p1
|
| 29 |
|
| 30 |
%build
|
| 31 |
|
| 32 |
%install
|
| 33 |
rm -rf $RPM_BUILD_ROOT
|
| 34 |
install -d $RPM_BUILD_ROOT%{_bindir}
|
| 35 |
install -p -m 755 jsdoc.pl $RPM_BUILD_ROOT%{_bindir}/jsdoc
|
| 36 |
install -d -p $RPM_BUILD_ROOT%{perl_vendorlib}/JSDoc
|
| 37 |
install -p -m 644 JSDoc.pm $RPM_BUILD_ROOT%{perl_vendorlib}
|
| 38 |
install -p -m 644 JSDoc/* $RPM_BUILD_ROOT%{perl_vendorlib}/JSDoc/
|
| 39 |
install -d -p $RPM_BUILD_ROOT%{perl_vendorlib}/JavaScript/Syntax/
|
| 40 |
install -p -m 644 JavaScript/Syntax/* \
|
| 41 |
$RPM_BUILD_ROOT%{perl_vendorlib}/JavaScript/Syntax/
|
| 42 |
install -d -p -m 755 $RPM_BUILD_ROOT%{_datadir}/jsdoc/
|
| 43 |
install -p -m 444 *.tmpl *.css $RPM_BUILD_ROOT%{_datadir}/jsdoc/
|
| 44 |
|
| 45 |
%clean
|
| 46 |
rm -rf $RPM_BUILD_ROOT
|
| 47 |
|
| 48 |
|
| 49 |
%files
|
| 50 |
%defattr(-,root,root,-)
|
| 51 |
%doc README TODO CHANGES COPYING
|
| 52 |
%{_bindir}/jsdoc
|
| 53 |
%{perl_vendorlib}/JSDoc
|
| 54 |
%{perl_vendorlib}/JSDoc.pm
|
| 55 |
%{perl_vendorlib}/JavaScript
|
| 56 |
%{_datadir}/jsdoc
|
| 57 |
|
| 58 |
%changelog
|
| 59 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-8
|
| 60 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 61 |
|
| 62 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-7
|
| 63 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 64 |
|
| 65 |
* Mon Sep 08 2008 Matěj Cepl <mcepl@redhat.com> 1.10.2-6
|
| 66 |
- add compatibility perl requirements (Close: bug 454075).
|
| 67 |
|
| 68 |
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.10.2-5
|
| 69 |
- fix license tag
|
| 70 |
|
| 71 |
* Sun Jul 1 2007 Matej Cepl <mcepl@redhat.com> - 1.10.2-4
|
| 72 |
- Administrative increase of the release in order to overcome screwed up tagging in Fedora CVS.
|
| 73 |
|
| 74 |
* Sat Jun 23 2007 Matej Cepl <mcepl@redhat.com> - 1.10.2-3
|
| 75 |
- Added GPL text as new source
|
| 76 |
- documentation files (*.tmpl, *.css) shouldn't be executable.
|
| 77 |
- limited ownership of perl_vendorlib direcotries.
|
| 78 |
|
| 79 |
* Sat Apr 7 2007 Matej Cepl <mcepl@redhat.com> - 1.10.2-2
|
| 80 |
- License is GPL, according to the website.
|
| 81 |
|
| 82 |
* Fri Apr 6 2007 Matej Cepl <mcepl@redhat.com> - 1.10.2-1
|
| 83 |
- Initial build
|