File gradle.spec of Package gradle
#
# spec file for package gradle
#
# Copyright (c) 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: 8.7
Release: 0
Summary: Groovy-based build system
License: Apache-2.0
Group: Development/Tools/Building
Url: http://www.gradle.org/
Source: %{name}-%{version}-bin.zip
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A flexible Groovy-based build tool.
%prep
%setup -n %{name}-%{version}
%build
%install
%{__mkdir_p} %{buildroot}/%{_bindir}
%{__mkdir_p} %{buildroot}/%{_datadir}
%{__rm} bin/gradle.bat
%{__cp} -r ../%{name}-%{version} %{buildroot}/%{_datadir}/
%{__ln_s} -t %{buildroot}/%{_bindir}/ %{_datadir}/%{name}-%{version}/bin/gradle
%files
%defattr(-,root,root)
%doc LICENSE NOTICE
%dir %{_datadir}/%{name}-%{version}
%{_datadir}/%{name}-%{version}/*
%exclude %{_datadir}/%{name}-%{version}/LICENSE
%exclude %{_datadir}/%{name}-%{version}/NOTICE
%{_bindir}/gradle
%changelog