File icedtea-web.spec of Package java-1_7_0-openjdk-plugin

#
# spec file for package icedtea-web
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define sdkdir  java
%define jredir  %{sdkdir}/jre
Name:           icedtea-web
Version:        1.6.1
Release:        0
Summary:        Java Web Start and plugin implementation
License:        GPL-2.0-with-classpath-exception
Group:          Development/Languages/Java
Url:            http://icedtea.classpath.org
Source0:        http://icedtea.classpath.org/download/source/icedtea-web-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  java-devel >= 1.5
BuildRequires:  zip
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
# owns javadocdir
# javapackages-tools now includes jpackage-utils
%if 0%{?suse_version} > 1230
BuildRequires:  javapackages-tools
%else
BuildRequires:  jpackage-utils
%endif

%description
The IcedTea-Web project provides a Free Software web browser plugin running
applets written in the Java programming language and an implementation of Java
Web Start, originally based on the NetX project.

%package javadoc
Summary:        Java Web Start and plugin implementation (API documentation)
Group:          Documentation/Other

%description javadoc
The IcedTea-Web project provides a Free Software web browser plugin running
applets written in the Java programming language and an implementation of Java
Web Start, originally based on the NetX project.
This package contains API documentation for the %{name} Java Web Start
and plugin implementation.

%prep
%setup -q -n icedtea-web-%{version}

%build
%configure \
	--with-jdk-home=%{_jvmdir}/%{sdkdir} \
	--with-jre-home=%{_jvmdir}/%{jredir} \
	--docdir=%{_javadocdir}/icedtea-web \
	--disable-plugin \
	--enable-docs \
	GLIB_CFLAGS=dummy GLIB_LIBS=dummy \
	MOZILLA_CFLAGS=dummy MOZILLA_LIBS=dummy \
	X11_CFLAGS=dummy X11_LIBS=dummy \
	GLIB2_V_216_CFLAGS=dummy GLIB2_V_216_LIBS=dummy

make %{?_smp_mflags} V=1

%install
make DESTDIR=%{buildroot} install-data-local %{?_smp_mflags}

rm -rf %{buildroot}%{_mandir}

%fdupes %{buildroot}

%files javadoc
%defattr(-,root,root,-)
%doc NEWS README COPYING
%dir %{_javadocdir}/%{name}
%{_javadocdir}/%{name}/*

%changelog
openSUSE Build Service is sponsored by