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 31
[-]
[+]
Changed
java-1_6_0-sun.spec
@@ -10,6 +10,7 @@ # norootforbuild # usedforbuild aaa_base acl attr audit-libs autoconf automake bash binutils bzip2 coreutils cpio cpp cpp42 cracklib cvs desktop-translations diffutils fdupes file filesystem fillup findutils gawk gcc gcc42 gdbm gettext gettext-devel glibc glibc-devel glibc-locale grep groff gzip info insserv jpackage-utils less libacl libattr libbz2-1 libbz2-devel libdb-4_5 libgcc42 libgomp42 libltdl-3 libmudflap42 libreadline5 libstdc++42 libtool libuuid1 libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp ncurses net-tools netcfg pam pam-modules patch perl perl-base permissions popt rpm sed sysvinit tar texinfo timezone unzip update-alternatives update-desktop-files util-linux zlib +%define demopkg 0 Name: java-1_6_0-sun BuildRequires: fdupes jpackage-utils unzip update-alternatives update-desktop-files @@ -176,6 +177,7 @@ %endif +%if %{demopkg} %package demo Summary: Demonstration files for java-1_6_0-sun Group: Development/Languages/Java @@ -187,7 +189,7 @@ %description demo This package contains demonstration files for java-1_6_0-sun. - +%endif %ifarch %ix86 || x86_64 @@ -374,9 +376,13 @@ 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 + # Most of this shamelessly stolen from redhat's kdebase-2.2.2 specfile find $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} -type d \ | sed 's|'$RPM_BUILD_ROOT'|%dir |' > %{name}-%{version}-all.files @@ -680,9 +686,11 @@ %{_jvmdir}/%{sdkdir}/src.zip %endif +%if %{demopkg} %files demo %defattr(-,root,root,-) %{demodir} +%endif %files alsa -f %{name}-%{version}-alsa.files %defattr(-,root,root,-)