SPECS: template-java.spec (NEW) - template based on ant.spec; feel...

glen glen at pld-linux.org
Wed Jan 31 18:14:39 CET 2007


Author: glen                         Date: Wed Jan 31 17:14:39 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- template based on ant.spec; feel free to advance this

---- Files affected:
SPECS:
   template-java.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/template-java.spec
diff -u /dev/null SPECS/template-java.spec:1.1
--- /dev/null	Wed Jan 31 18:14:39 2007
+++ SPECS/template-java.spec	Wed Jan 31 18:14:33 2007
@@ -0,0 +1,102 @@
+# $Revision$, $Date$
+Summary:	-
+Name:		-
+Version:	-
+Release:	0.1
+License:	-
+Group:		Development/Languages/Java
+Source0:	-
+# Source0-md5:	-
+URL:		-
+BuildRequires:	jpackage-utils
+BuildRequires:	rpmbuild(macros) >= 1.300
+Requires:	jpackage-utils
+BuildArch:	noarch
+ExclusiveArch:	i586 i686 pentium3 pentium4 athlon %{x8664} noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%package doc
+Summary:	Manual for %{name}
+Summary(fr):	Documentation pour %{name}
+Summary(it):	Documentazione di %{name}
+Summary(pl):	Podręcznik dla %{name}a
+Group:		Development/Languages/Java
+
+%description doc
+Documentation for %{name}.
+
+%description doc -l fr
+Documentation pour %{name}.
+
+%description doc -l it
+Documentazione di %{name}.
+
+%description doc -l pl
+Dokumentacja do %{name}a.
+
+%package javadoc
+Summary:	Online manual for %{name}
+Summary(pl):	Dokumentacja online do %{name}
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Documentation for %{name} -
+
+%description javadoc -l pl
+Dokumentacja do %{name}a -
+
+%prep
+%setup -q
+
+%build
+export JAVA_HOME="%{java_home}"
+
+required_jars="jaxp_parser_impl"
+export CLASSPATH="`/usr/bin/build-classpath $required_jars`"
+
+%ant
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{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(644,root,root,755)
+
+%files doc
+%defattr(644,root,root,755)
+%doc docs/*
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+
+%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  2007/01/31 17:14:33  glen
+- template based on ant.spec; feel free to advance this
+
================================================================


More information about the pld-cvs-commit mailing list