[Jpackage-commits] dist/sun-htmlmacro/devel .cvsignore, 1.1, 1.2 sources, 1.1, 1.2 sun-htmlmacro-build.patch, NONE, 1.1 sun-htmlmacro.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed May 28 21:52:37 CEST 2008


Update of /home/projects/jpackage/cvs/dist/sun-htmlmacro/devel
In directory ryu.zarb.org:/tmp/cvs-serv30014/devel

Modified Files:
	.cvsignore sources 
Added Files:
	sun-htmlmacro-build.patch sun-htmlmacro.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/sun-htmlmacro/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 19:52:18 -0000	1.1
--- .cvsignore	28 May 2008 19:52:35 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ sun-htmlmacro-1.0-r27.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/sun-htmlmacro/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 19:52:18 -0000	1.1
--- sources	28 May 2008 19:52:35 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ e0e1ac0d8ecfaacb3636a0edd81491fa  sun-htmlmacro-1.0-r27.tar.gz

--- NEW FILE: sun-htmlmacro.spec ---
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define section free
%define bname   htmlmacro
%define svnrel  r27

Name:           sun-htmlmacro
Summary:        Macro engine for generating HTML documents
Url:            https://htmlmacro.dev.java.net/
Version:        1.0
Release:        0.%{svnrel}.1jpp
Epoch:          0
License:        CDDL
Group:          Development/Libraries/Java
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
BuildArch:      noarch
Source0:        sun-htmlmacro-1.0-%{svnrel}.tar.gz
# svn export -r 27 https://htmlmacro.dev.java.net/svn/htmlmacro/trunk sun-htmlmacro-1.0-r27 --username guest
Patch0:         sun-htmlmacro-build.patch
BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  dom4j
BuildRequires:  jakarta-commons-beanutils
BuildRequires:  jakarta-commons-jelly
BuildRequires:  jakarta-commons-jelly-tags-define
BuildRequires:  jakarta-commons-jelly-tags-xml
BuildRequires:  jakarta-commons-jexl
BuildRequires:  jakarta-commons-logging
BuildRequires:  jaxen
BuildRequires:  nekohtml
Requires:       java >= 0:1.5.0
Requires:       ant >= 0:1.6.5
Requires:       dom4j
Requires:       jakarta-commons-beanutils
Requires:       jakarta-commons-jelly
Requires:       jakarta-commons-jelly-tags-define
Requires:       jakarta-commons-jelly-tags-xml
Requires:       jakarta-commons-jexl
Requires:       jakarta-commons-logging
Requires:       jaxen
Requires:       nekohtml
BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot

%description
Writing a serious, consistent, nice-looking documents in HTML
is hard. CSS improves the situation a bit, but it's still 
very painful. For example, suppose if you are writing a 
release note like this, and you want to do:
1. Generate the navigation bar in multiple pages
2. Have the same footer for all documents 
This project believes that a part of the problem is the lack
of "programmability" in HTML. For example, if you can define
your own <footer/> tag (just like you define a JSP tag), then
it becomes very easy to guarantee the consistent footer.
HTMLMacro lets you do just that. When you write HTML, 
it lets you define and use macros. 

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%package manual
Summary:        Documents for %{name}
Group:          Development/Documentation

%description manual
%{summary}.

%package demo
Summary:        Samples for %{name}
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description demo
%{summary}.

%prep
%setup -q -n %{name}-%{version}-%{svnrel}
chmod -R go=u-w *
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
%patch0 -b .sav0

#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/ant.jar.no
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/args4j-2.0.1.jar.no
### ln -sf $(build-classpath args4j) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-beanutils-1.6.jar.no
ln -sf $(build-classpath commons-beanutils) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-collections-2.1.jar.no
### ln -sf $(build-classpath commons-collections) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-jelly-1.0.jar.no
ln -sf $(build-classpath commons-jelly) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-jelly-tags-define-1.0.jar.no
ln -sf $(build-classpath jelly-tags/commons-jelly-tags-define) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-jelly-tags-xml-1.1.jar.no
ln -sf $(build-classpath jelly-tags/commons-jelly-tags-xml) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-jexl-1.0.jar.no
ln -sf $(build-classpath commons-jexl) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-lang-2.0.jar.no
### ln -sf $(build-classpath commons-lang) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/commons-logging-1.0.3.jar.no
ln -sf $(build-classpath commons-logging) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/dom4j.jar.no
ln -sf $(build-classpath dom4j) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/jaxen-1.1-beta-4.jar.no
ln -sf $(build-classpath jaxen) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/nekohtml.jar.no
ln -sf $(build-classpath nekohtml) htmlmacro/lib/
#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/soimp-1.0.jar.no

#BUILD/sun-htmlmacro-1.0-r27/htmlmacro/lib/xercesImpl.jar.no
### ln -sf $(build-classpath xerces-j2) htmlmacro/lib/


%build
export JAVA_HOME=%{_jvmdir}/java-1.5.0
cd %{bname}
ant -Dbuild.sysclasspath=first dist doc javadoc

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 %{bname}/build/%{bname}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr %{bname}/build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

# manual
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr %{bname}/build/doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}

# demo
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
cp -pr %{bname}/examples/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
    rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(-,root,root)
%{_javadir}/*

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%files manual
%defattr(-,root,root)
%{_docdir}/%{name}-%{version}

%files demo
%defattr(-,root,root)
%{_datadir}/%{name}-%{version}

%changelog
* Tue Mar 11 2008 Ralph Apel <r.apel at r-apel.de> 0:1.0-0.r27.1jpp
- First release

--- NEW FILE: sun-htmlmacro-build.patch ---
--- htmlmacro/build.xml.sav0	2007-11-01 22:03:37.000000000 +0100
+++ htmlmacro/build.xml	2008-03-07 15:02:23.000000000 +0100
@@ -22,6 +22,7 @@
 
   <tstamp />
   <property name="build.id" value="private-${DSTAMP}-${TSTAMP}" />
+  <property name="javadocdir" value="build/javadocs" />
 
   <target name="compile">
     <mkdir dir="build/classes"/>
@@ -91,4 +92,22 @@
 
     <soimp dir="build/doc" repository="https://www.dev.java.net/svn/htmlmacro/trunk/www/doc" />
   </target>
+  <target name="javadoc" description="o Generate javadoc" depends="compile">
+    <mkdir dir="${javadocdir}">
+    </mkdir>
+    <tstamp>
+      <format pattern="2005-yyyy" property="year">
+      </format>
+    </tstamp>
+    <property name="copyright" value="Copyright &copy; 2005 Sun Microsystems. All Rights Reserved.">
+    </property>
+    <property name="title" value="htmlmacro 1.0 API">
+    </property>
+    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src" packagenames="com.sun.wts.tools.htmlmacro.*">
+      <classpath>
+        <fileset dir="lib" includes="*.jar"/>
+      </classpath>
+    </javadoc>
+  </target>
+
 </project>




More information about the JPackage-commits mailing list