fix: groovy groovy-docs (#175)

This commit is contained in:
windowsboy111
2023-02-08 18:18:57 +08:00
committed by GitHub
parent ab390394db
commit 7871b5fccf
3 changed files with 30 additions and 4 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ BuildRequires: unzip
%prep
unzip %{SOURCE0}
find . -type f -exec chmod -x {} \;
find groovy-%{version} -type f -exec chmod -x {} \;
%build
@@ -22,8 +22,8 @@ install -d %{buildroot}/usr/share/doc/groovy-%{version}
cp -r groovy-%{version} %{buildroot}/usr/share/doc/
%files
%doc README.md
%license LICENSE
%doc groovy-%{version}/NOTICE
%license groovy-%{version}/LICENSE
/usr/share/doc/groovy-%{version}
%changelog
+27
View File
@@ -15,6 +15,7 @@ Apache Groovy is a powerful, optionally typed and dynamic language, with static-
%prep
unzip %{SOURCE0}
cd %{name}-%{version}
gendesk -f -n --pkgname %{name} --pkgdesc 'Groovy programming language' --exec groovyConsole --name 'Groovy Console'
for f in bin/*; do
@@ -24,6 +25,7 @@ done
%build
%install
cd %{name}-%{version}
# Create the directories and package the files
install -d %{buildroot}/usr/share/groovy %{buildroot}/usr/bin
cp -r lib conf %{buildroot}/usr/share/groovy
@@ -39,3 +41,28 @@ install -Dm644 LICENSE -t %{buildroot}/usr/share/licenses/%{name}
# Package the desktop shortcut for Groovy Console
install -Dm644 %{name}.desktop -t %{buildroot}/usr/share/applications
%files
%license LICENSE
/usr/bin/grape
/usr/bin/groovy
/usr/bin/groovy.ico
/usr/bin/groovyConsole
/usr/bin/groovyc
/usr/bin/groovydoc
/usr/bin/groovysh
/usr/bin/java2groovy
/usr/bin/startGroovy
/usr/share/groovy
/usr/share/applications/groovy.desktop
/usr/share/bash-completion/completions/grape_completion
/usr/share/bash-completion/completions/groovyConsole_completion
/usr/share/bash-completion/completions/groovy_completion
/usr/share/bash-completion/completions/groovyc_completion
/usr/share/bash-completion/completions/groovydoc_completion
/usr/share/bash-completion/completions/groovysh_completion
%changelog
* Wed Feb 8 2023 windowsboy111 <windowsboy111@fyralabs.com>
- Initial package
-1
View File
@@ -1 +0,0 @@
rpm.version(gh("apache/groovy"))