File gradle.spec of Package gradle

#
# spec file for package gradle
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           gradle
Version:        9.1.0
Release:        1
Summary:        A flexible Groovy-based build tool
License:        Apache-2.0
URL:            https://github.com/gradle/gradle.git
Source:         https://services.gradle.org/distributions/%{name}-%{version}-bin.zip
BuildRequires:  rsync
BuildRequires:  unzip
BuildArch:      noarch

%description
A flexible Groovy-based build tool.

%prep
%setup -q

rm bin/gradle.bat

%build

%install
# BEGIN EXCLUDES
cat > .rsync-filter <<EOF
- .*
- /NOTICE
- /LICEN?E
- /README
EOF
# END EXCLUDES

install -d %{buildroot}/%{_datadir}/gradle9
rsync -FFXHav . %{buildroot}/%{_datadir}/gradle9
%{__mkdir_p} %{buildroot}/%{_bindir}
%{__ln_s} -t %{buildroot}/%{_bindir}/ %{_datadir}/gradle9/bin/gradle

%files
%license LICENSE NOTICE
%doc README
%dir %{_datadir}/gradle9
%dir %{_datadir}/gradle9/lib
%dir %{_datadir}/gradle9/lib/plugins
%dir %{_datadir}/gradle9/lib/agents
%dir %{_datadir}/gradle9/bin
%dir %{_datadir}/gradle9/init.d
%{_datadir}/gradle9/lib/*.jar
%{_datadir}/gradle9/lib/plugins/*.jar
%{_datadir}/gradle9/lib/agents/*.jar
%{_datadir}/gradle9/bin/gradle
%{_datadir}/gradle9/init.d/readme.txt
%{_bindir}/gradle


%changelog

openSUSE Build Service is sponsored by