[Jpackage-commits] dist/xslthl/devel .cvsignore, 1.1, 1.2 sources, 1.1, 1.2 xslthl-1.3.pom, NONE, 1.1 xslthl-build.patch, NONE, 1.1 xslthl.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed May 28 22:23:25 CEST 2008


Update of /home/projects/jpackage/cvs/dist/xslthl/devel
In directory ryu.zarb.org:/tmp/cvs-serv27616/devel

Modified Files:
	.cvsignore sources 
Added Files:
	xslthl-1.3.pom xslthl-build.patch xslthl.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/xslthl/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 20:23:10 -0000	1.1
--- .cvsignore	28 May 2008 20:23:23 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ xslthl-1.3.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/xslthl/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 20:23:10 -0000	1.1
--- sources	28 May 2008 20:23:23 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 078c7b1a69a09f97d637fabf41017acc  xslthl-1.3.tar.gz

--- NEW FILE: xslthl-build.patch ---
--- build.xml.sav	2008-02-25 12:39:19.000000000 +0100
+++ build.xml	2008-02-25 12:42:40.000000000 +0100
@@ -21,4 +21,22 @@
     </jar>
   </target>
 
-</project>
\ No newline at end of file
+    <target name="javadoc" depends="compile">
+        <mkdir dir="build/javadoc"/>
+        <javadoc packagenames="net.sf.xslthl"
+            destdir="build/javadoc"
+            classpathref="classpath"
+            author="true"
+            version="true"
+            use="true"
+            windowtitle="XSLT Syntax Highlighting 1.2 API documentation"
+            doctitle="XSLT Syntax Highlighting 1.2 API documentation">
+            <sourcepath>
+            <dirset dir=".">
+                <include name="src"/>
+            </dirset>
+            </sourcepath>
+        </javadoc>
+    </target>
+
+</project>

--- NEW FILE: xslthl-1.3.pom ---
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.xslthl</groupId>
  <artifactId>xslthl</artifactId>
  <version>1.3</version>
  <description>POM was created from deploy:deploy-file</description>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>
--- NEW FILE: xslthl.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 gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

Name:           xslthl
Version:        1.3
Release:        1jpp
Epoch:          0
Summary:        XSLT Syntax Highlighting
License:        zlib/libpng
Url:            http://sourceforge.net/projects/xslthl
Group:          Development/Tools
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Source0:        xslthl-1.3.tar.gz
# steps to reproduce
# cvs -d:pserver:anonymous at xslthl.cvs.sourceforge.net:/cvsroot/xslthl login
# cvs -z3 -d:pserver:anonymous at xslthl.cvs.sourceforge.net:/cvsroot/xslthl export -r HEAD v2
# mv v2 xslthl-1.3
# tar cf xslthl-1.3.tar xslthl-1.3/
# gzip xslthl-1.3.tar

Source1:        http://www.agilejava.com/maven/net/sf/xslthl/xslthl/1.3/xslthl-1.3.pom
Patch0:         xslthl-build.patch

BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  saxon
Requires:  java >= 0:1.5.0
Requires:  saxon
%if ! %{gcj_support}
Buildarch:     noarch
%endif
Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%if %{gcj_support}
BuildRequires:          java-gcj-compat-devel
Requires(post):         java-gcj-compat
Requires(postun):       java-gcj-compat
%endif

Requires(post):    jpackage-utils >= 0:1.7.4
Requires(postun):  jpackage-utils >= 0:1.7.4

%description
This is an implementation of syntax highlighting as an 
extension module for XSLT processors, so if you have e.g. 
article about programming written in DocBook, code examples
can be automatically syntax highlighted during the XSLT 
processing phase.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description javadoc
Javadoc for %{name}.

%if %{gcj_support}
BuildRequires:          java-gcj-compat-devel
Requires(post):         java-gcj-compat
Requires(postun):       java-gcj-compat
%endif

%prep
%setup -q 
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
%patch0 -b .sav0
mkdir -p src/net/sf/xslthl
mv src/*.java src/net/sf/xslthl
mkdir lib
ln -sf $(build-classpath saxon) lib

%build
export JAVA_HOME=%{_jvmdir}/java-1.5.0
ant jar javadoc

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms

install -m 644 build/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap net.sf.xslthl %{name} %{version} JPP %{name}

(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 build/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%if %{gcj_support}
%{_bindir}/aot-compile-rpm \
%endif 


%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

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%{_datadir}/maven2
%{_mavendepmapfragdir}
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

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

%changelog
* Mon Feb 25 2008 Ralph Apel <r.apel at r-apel.de> - 0:1.3-1jpp
- 1.3





More information about the JPackage-commits mailing list