Author: mcepl
Update of /cvs/extras/rpms/JSDoc/EL-5 In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21468
Modified Files: sources Added Files: JSDoc-mc-build.patch JSDoc.spec Log Message: Initial commit to the repository.
JSDoc-mc-build.patch:
--- NEW FILE JSDoc-mc-build.patch --- --- JSDoc-1.10.2/jsdoc.pl.MC-build 2007-04-06 13:42:08.000000000 +0200 +++ JSDoc-1.10.2/jsdoc.pl 2007-04-06 13:42:50.000000000 +0200 @@ -21,7 +21,7 @@ use JavaScript::Syntax::HTML qw(to_html);
-use constant LOCATION => dirname($0) . '/'; +use constant LOCATION => "/usr/share/jsdoc/"; use constant MAIN_TMPL => "main.tmpl"; use constant ALLCLASSES_TMPL => 'allclasses-frame.tmpl'; use constant ALLCLASSES_NOFRAME_TMPL => 'allclasses-noframe.tmpl';
--- NEW FILE JSDoc.spec --- Name: JSDoc Version: 1.10.2 Release: 3%{?dist} Summary: Produces javadoc-style documentation from JavaScript sourcefiles Group: Development/Tools License: GPL URL: http://jsdoc.sourceforge.net Source0: http://downloads.sourceforge.net/jsdoc/%%7Bname%7D-%%7Bversion%7D.tgz Source1: %{name}-COPYING.txt.gz Patch0: %{name}-mc-build.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(HTML::Template)
%description A script that produces javadoc-style documentation from well-formed JavaScript sourcefiles. At the moment, this means it supports sourcefiles where all functions are mapped to a class using prototype-based inheritance. Anonymous function definitions (e.g. Circle.prototype.getRadius = function(){ ...} ) are supported.
%prep %setup -q -n %{name}-%{version} gzip -dc %{SOURCE1} >COPYING %patch0 -p1
%build
%install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} install -p -m 755 jsdoc.pl $RPM_BUILD_ROOT%{_bindir}/jsdoc install -d -p $RPM_BUILD_ROOT%{perl_vendorlib}/JSDoc install -p -m 644 JSDoc.pm $RPM_BUILD_ROOT%{perl_vendorlib} install -p -m 644 JSDoc/* $RPM_BUILD_ROOT%{perl_vendorlib}/JSDoc/ install -d -p $RPM_BUILD_ROOT%{perl_vendorlib}/JavaScript/Syntax/ install -p -m 644 JavaScript/Syntax/* \ $RPM_BUILD_ROOT%{perl_vendorlib}/JavaScript/Syntax/ install -d -p -m 755 $RPM_BUILD_ROOT%{_datadir}/jsdoc/ install -p -m 444 *.tmpl *.css $RPM_BUILD_ROOT%{_datadir}/jsdoc/
%clean rm -rf $RPM_BUILD_ROOT
%files %defattr(-,root,root,-) %doc README TODO CHANGES COPYING %{_bindir}/jsdoc %{perl_vendorlib}/JSDoc %{perl_vendorlib}/JSDoc.pm %{perl_vendorlib}/JavaScript %{_datadir}/jsdoc
%changelog * Sat Jun 23 2007 Matej Cepl mcepl@redhat.com - 1.10.2-3 - Added GPL text as new source - documentation files (*.tmpl, *.css) shouldn't be executable. - limited ownership of perl_vendorlib direcotries.
* Sat Apr 7 2007 Matej Cepl mcepl@redhat.com - 1.10.2-2 - License is GPL, according to the website.
* Fri Apr 6 2007 Matej Cepl mcepl@redhat.com - 1.10.2-1 - Initial build
Index: sources =================================================================== RCS file: /cvs/extras/rpms/JSDoc/EL-5/sources,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- sources 29 Jun 2007 20:43:59 -0000 1.1 +++ sources 30 Jun 2007 22:04:25 -0000 1.2 @@ -0,0 +1,2 @@ +e7f272d41d2b42884ab4d51c08367f9a JSDoc-1.10.2.tgz +3cc836fc0ee82a2cd66168a17b535338 JSDoc-COPYING.txt.gz
scm-commits@lists.fedoraproject.org