Search
j0ke.net Open Build Service
>
Projects
>
Java
>
java-1_6_0-sun
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 40
[-]
[+]
Changed
java-1_6_0-sun.spec
@@ -17,6 +17,7 @@ # norootforbuild +%define demopkg 0 Name: java-1_6_0-sun BuildRequires: fdupes jpackage-utils unzip update-alternatives update-desktop-files @@ -186,7 +187,7 @@ vendors who wish to redistribute their applications. - +%if %{demopkg} %package demo License: Any commercial Summary: Java(TM) 6 Runtime Environment @@ -210,7 +211,7 @@ The Java 6 Runtime Environment is intended for software developers and vendors who wish to redistribute their applications. - +%endif %package plugin License: Any commercial @@ -418,9 +419,11 @@ for manpage in man/man1/*; do install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/`basename $manpage .1`-%{name}.1 done +%if %{demopkg} # demo install -d -m 755 $RPM_BUILD_ROOT%{demodir} cp -a demo/* $RPM_BUILD_ROOT%{demodir} +%endif # samples bnc#496489 install -d -m 755 $RPM_BUILD_ROOT%{sampledir} cp -a sample/* $RPM_BUILD_ROOT%{sampledir} @@ -707,10 +710,12 @@ %defattr(-,root,root,-) %{_jvmdir}/%{sdkdir}/src.zip +%if %{demopkg} %files demo %defattr(-,root,root,-) %{demodir} %{sampledir} +%endif %files alsa -f %{name}-%{version}-alsa.files %defattr(-,root,root,-)