SPECS: jmx.spec - add md5 - unify java package
glen
glen at pld-linux.org
Tue Apr 24 00:17:28 CEST 2007
Author: glen Date: Mon Apr 23 22:17:28 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add md5
- unify java package
---- Files affected:
SPECS:
jmx.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/jmx.spec
diff -u SPECS/jmx.spec:1.17 SPECS/jmx.spec:1.18
--- SPECS/jmx.spec:1.17 Tue Feb 13 09:06:36 2007
+++ SPECS/jmx.spec Tue Apr 24 00:17:23 2007
@@ -1,4 +1,6 @@
# $Revision$, $Date$
+%include /usr/lib/rpm/macros.java
+%define _ver %(echo %{version} | tr . _)
Summary: Java Management Extensions
Summary(pl.UTF-8): Rozszerzenia zarządzania do Javy
Name: jmx
@@ -7,12 +9,16 @@
License: restricted, non-distributable (Sun Community Source License - see URL)
Group: Development/Languages/Java
# download through forms from http://java.sun.com/products/JavaManagement/download.html
-Source0: %{name}-%(echo %{version}| tr . _)-scsl.zip
+Source0: %{name}-%{_ver}-scsl.zip
+# NoSource0-md5: de1a800156998f4ef98bcdef4421f312
Patch0: %{name}-build.patch
URL: http://java.sun.com/products/JavaManagement/
NoSource: 0
BuildRequires: ant
BuildRequires: jdk >= 1.4
+BuildRequires: jpackage-utils
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
Requires: jre >= 1.4
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,41 +29,58 @@
%description -l pl.UTF-8
Java Management Extensions - rozszerzenia zarządzania do Javy.
-%package doc
+%package javadoc
Summary: Documentation for Java Management Extensions
Summary(pl.UTF-8): Dokumentacja do Java Management Extensions
-Group: Development/Languages/Java
+Group: Documentation
+Requires: jpackage-utils
+Obsoletes: jmx-doc
-%description doc
+%description javadoc
Documentation for Java Management Extensions.
-%description doc -l pl.UTF-8
+%description javadoc -l pl.UTF-8
Dokumentacja do Java Management Extensions.
%prep
-%setup -q -n %{name}-%(echo %{version}| tr . _)-src
+%setup -q -n %{name}-%{_ver}-src
%patch0 -p1
%build
-ant
+export LC_ALL=en_US # source not in ASCII
+%ant
%install
rm -rf $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT%{_javadir}
-install build/lib/jmxri.jar $RPM_BUILD_ROOT%{_javadir}
-install lib/jmxtools.jar $RPM_BUILD_ROOT%{_javadir}
+install build/lib/jmxri.jar $RPM_BUILD_ROOT%{_javadir}/jmxri-%{version}.jar
+install lib/jmxtools.jar $RPM_BUILD_ROOT%{_javadir}/jmxtools-%{version}.jar
+ln -s jmxri-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/jmxri.jar
+ln -s jmxtools-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/jmxtools.jar
+
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -a doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
+%post javadoc
+ln -sf %{name}-%{version} %{_javadocdir}/%{name}
+
%files
%defattr(644,root,root,755)
+%doc doc/{README_SRC.txt,RELEASE_NOTES.txt}
%{_javadir}/*.jar
+%{_examplesdir}/%{name}-%{version}
-%files doc
+%files javadoc
%defattr(644,root,root,755)
-%doc doc examples
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -65,6 +88,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2007/04/23 22:17:23 glen
+- add md5
+- unify java package
+
Revision 1.17 2007/02/13 08:06:36 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/jmx.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list