[packages/icedtea7: 67/103] - install examples in %{_examplesdir} - install java sources in %{_javasrcdir} - let examples and so
jajcus
jajcus at pld-linux.org
Fri Apr 19 13:13:27 CEST 2013
commit 5f68898eda460d6277dfb52229393ded698f1518
Author: pawelz <pawelz at pld-linux.org>
Date: Sun Apr 18 21:35:53 2010 +0000
- install examples in %{_examplesdir}
- install java sources in %{_javasrcdir}
- let examples and sources subpackages belong to Documentation group
Changed files:
icedtea6.spec -> 1.59
icedtea6.spec | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/icedtea6.spec b/icedtea6.spec
index adca5c8..7f0f7f0 100644
--- a/icedtea6.spec
+++ b/icedtea6.spec
@@ -345,7 +345,7 @@ i został zbudowany wyłącznie przy użyciu wolnego oprogramowania.
%package jdk-sources
Summary: OpenJDK and GNU Classpath code - sources
Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - kod źródłowy
-Group: Development/Languages/Java
+Group: Documentation
%description jdk-sources
Source code for the OpenJDK development kit and Java standard library.
@@ -357,7 +357,7 @@ biblioteki Javy.
%package examples
Summary: OpenJDK and GNU Classpath code - examples
Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - przykłady
-Group: Development/Languages/Java
+Group: Documentation
%description examples
Code examples for OpenJDK.
@@ -440,7 +440,7 @@ sed -i -e's/dpkg-architecture/dpkg-architecture__/' openjdk*/*/make/common/share
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{dstdir},%{_mandir}/ja,%{_browserpluginsdir}} \
- $RPM_BUILD_ROOT{%{jvmjardir},%{_prefix}/src/%{name}-{jdk-sources,examples}} \
+ $RPM_BUILD_ROOT{%{jvmjardir},%{_examplesdir}/%{name}-%{version},%{_javasrcdir}} \
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}
# install the 'JDK image', it contains the JRE too
@@ -450,10 +450,10 @@ cp -a openjdk/build/linux-*/j2sdk-image/* $RPM_BUILD_ROOT%{dstdir}
ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}
ln -s %{jrereldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}-jre
-# move JDK sources and demo to %{_prefix}/src
-mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_prefix}/src/%{name}-examples/
-mv $RPM_BUILD_ROOT%{dstdir}/sample $RPM_BUILD_ROOT%{_prefix}/src/%{name}-examples/
-mv $RPM_BUILD_ROOT%{dstdir}/src.zip $RPM_BUILD_ROOT%{_prefix}/src/%{name}-jdk-sources/
+# move JDK sources and demo to /usr/src
+mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+mv $RPM_BUILD_ROOT%{dstdir}/sample $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+mv $RPM_BUILD_ROOT%{dstdir}/src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{name}-jdk.zip
# move manual pages to its place
mv $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.eucJP/man1 $RPM_BUILD_ROOT%{_mandir}/ja/man1
@@ -829,12 +829,11 @@ rm -rf $RPM_BUILD_ROOT
%files jdk-sources
%defattr(644,root,root,755)
-%dir %{_prefix}/src/%{name}-jdk-sources
-%{_prefix}/src/%{name}-jdk-sources/src.zip
+%{_javasrcdir}/%{name}-jdk.zip
%files examples
%defattr(644,root,root,755)
-%{_prefix}/src/%{name}-examples
+%{_examplesdir}/%{name}-%{version}
%if %{with plugin}
%files jre-base-mozilla-plugin
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/icedtea7.git/commitdiff/f360048b2271851d733c2fc755b8e7cae2f337cf
More information about the pld-cvs-commit
mailing list