File gradle.spec of Package gradle
#
# spec file for package gradle
#
# 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/
#
Name: gradle
Version: 2.10
Release: 0
Summary: Groovy-based build system
License: Apache-2.0
Group: Development/Tools
Url: http://www.gradle.org/
Source0: https://services.gradle.org/distributions/gradle-%{version}-bin.zip
# all the jar files are taken from maven repos
Source1: app-1.3.200-v20130910-1609.jar
Source2: contenttype-3.4.200-v20140207-1251.jar
Source3: filesystem-1.1.0-v20070606.jar
Source4: preferences-3.5.200-v20140224-1527.jar
Source5: runtime-3.10.0-v20140318-2214.jar
Source6: commands-3.3.0-I20070605-0010.jar
Source8: jobs-3.6.0-v20140424-0053.jar
Source9: registry-3.5.400-v20140428-1507.jar
Source10: text-3.3.0-v20070606-0010.jar
Source11: common-3.6.200-v20130402-1505.jar
Source12: expressions-3.3.0-v20070606-0010.jar
Source13: osgi-3.10.0-v20140606-1445.jar
Source14: resources-3.3.0-v20070604.jar
# PATCH-FIX-SLE gradle-fix-gradle_home_path.patch bsc#975174
Patch1: gradle-fix-gradle_home_path.patch
BuildRequires: java-devel ant
BuildRequires: javapackages-tools
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A flexible groovy-based build tool.
%prep
%setup -q
%patch1 -p1
%build
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/java/%{name}
install -d %{buildroot}%{_datadir}/java/%{name}/lib
install -d %{buildroot}%{_datadir}/java/%{name}/lib/plugins
install -d %{buildroot}%{_datadir}/java/%{name}/lib/plugins/sonar
install -p -m644 $RPM_SOURCE_DIR/*.jar \
%{buildroot}%{_datadir}/java/%{name}/lib
install -p -m655 bin/gradle \
%{buildroot}%{_bindir}
install -p -m644 lib/*.jar \
%{buildroot}%{_datadir}/java/%{name}/lib
install -p -m644 lib/plugins/*.jar \
%{buildroot}%{_datadir}/java/%{name}/lib/plugins
install -p -m644 lib/plugins/sonar/*.jar \
%{buildroot}%{_datadir}/java/%{name}/lib/plugins/sonar
%files
%defattr(-,root,root,-)
%dir %{_datadir}/java/%{name}/
%dir %{_datadir}/java/%{name}/lib
%dir %{_datadir}/java/%{name}/lib/plugins
%dir %{_datadir}/java/%{name}/lib/plugins/sonar
%doc LICENSE changelog.txt NOTICE
%{_bindir}/%{name}
%{_datadir}/java/%{name}/*
%changelog