packages: java-saxpath/buildfix.patch (NEW), java-saxpath/java-saxpath.spec...

pawelz pawelz at pld-linux.org
Tue Jun 15 17:56:54 CEST 2010


Author: pawelz                       Date: Tue Jun 15 15:56:54 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial PLD release

---- Files affected:
packages/java-saxpath:
   buildfix.patch (NONE -> 1.1)  (NEW), java-saxpath.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/java-saxpath/buildfix.patch
diff -u /dev/null packages/java-saxpath/buildfix.patch:1.1
--- /dev/null	Tue Jun 15 17:56:54 2010
+++ packages/java-saxpath/buildfix.patch	Tue Jun 15 17:56:48 2010
@@ -0,0 +1,12 @@
+--- saxpath-1.0-FCS/build.xml~	2002-04-26 19:52:22.000000000 +0200
++++ saxpath-1.0-FCS/build.xml	2010-06-15 17:41:36.000000000 +0200
+@@ -198,8 +198,7 @@
+ 
+     <jar jarfile="${build.dir}/${name}.jar"
+          basedir="${build.dest}"
+-         includes="org/saxpath/**,com/werken/**"
+-         manifest="src/conf/MANIFEST.MF"/>
++		 includes="org/saxpath/**,com/werken/**"/>
+     <!-- 
+     <jar jarfile="${build.dir}/${name}-all.jar"
+          basedir="${build.dest}"

================================================================
Index: packages/java-saxpath/java-saxpath.spec
diff -u /dev/null packages/java-saxpath/java-saxpath.spec:1.1
--- /dev/null	Tue Jun 15 17:56:54 2010
+++ packages/java-saxpath/java-saxpath.spec	Tue Jun 15 17:56:48 2010
@@ -0,0 +1,124 @@
+# $Revision$, $Date$
+
+%include	/usr/lib/rpm/macros.java
+
+%define		srcname		saxpath
+%define		subver		FCS
+%define		rel			1
+Summary:	saxpath
+Summary(pl.UTF-8):	saxpath
+Name:		saxpath
+Version:	1.0
+Release:	0.%{subver}.%{rel}
+License:	unknown
+Group:		Libraries/Java
+Source0:	http://downloads.sourceforge.net/project/saxpath/saxpath/1.0%20FCS/%{name}-%{version}.tar.gz
+# Source0-md5:	cc95ecc7dfb689a29bd42323490ee702
+Patch0:		buildfix.patch
+URL:		http://saxpath.org
+BuildRequires:	jpackage-utils
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.555
+BuildRequires:	sed >= 4.0
+Requires:	jpackage-utils
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The SAXPath project stands for Simple API for XPath. SAXPath is
+similar to SAX in that the API abstracts away the details of parsing
+and processing the data and provides a simple event based callback
+interface. It's a very useful tool for writing XPath related
+applications.
+
+%package javadoc
+Summary:	Online manual for %{srcname}
+Summary(pl.UTF-8):	Dokumentacja online do %{srcname}
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Documentation for %{srcname}.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do %{srcname}.
+
+%description javadoc -l fr.UTF-8
+Javadoc pour %{srcname}.
+
+%package source
+Summary:	Source code of %{srcname}
+Summary(pl.UTF-8):	Kod źródłowy %{srcname}
+Group:		Documentation
+Requires:	jpackage-utils >= 1.7.5-2
+
+%description source
+Source code of %{srcname}.
+
+%description source -l pl.UTF-8
+Kod źródłowy %{srcname}.
+
+%prep
+%setup -q -n %{srcname}-%{version}-%{subver}
+
+find -name '*.jar' | xargs rm
+
+%undos build.xml
+%patch0 -p1
+
+%build
+export JAVA_HOME="%{java_home}"
+
+%ant
+
+cd src/java
+%jar cf ../../%{srcname}.src.jar $(find -name '*.java')
+cd ../..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+# jars
+cp -a build/%{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -a build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink
+
+# source
+install -d $RPM_BUILD_ROOT%{_javasrcdir}
+cp -a %{srcname}.src.jar $RPM_BUILD_ROOT%{_javasrcdir}/%{srcname}.src.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
+
+%files
+%defattr(644,root,root,755)
+%doc build/doc/*.* build/doc/style build/doc/images
+%{_javadir}/%{srcname}.jar
+%{_javadir}/%{srcname}-%{version}.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{srcname}-%{version}
+%ghost %{_javadocdir}/%{srcname}
+
+%files source
+%defattr(644,root,root,755)
+%{_javasrcdir}/%{srcname}.src.jar
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/06/15 15:56:48  pawelz
+- initial PLD release
+
================================================================


More information about the pld-cvs-commit mailing list