mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-17 09:00:39 +00:00
fix: groovy groovy-docs (#175)
This commit is contained in:
@@ -13,7 +13,7 @@ BuildRequires: unzip
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
unzip %{SOURCE0}
|
unzip %{SOURCE0}
|
||||||
find . -type f -exec chmod -x {} \;
|
find groovy-%{version} -type f -exec chmod -x {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@@ -22,8 +22,8 @@ install -d %{buildroot}/usr/share/doc/groovy-%{version}
|
|||||||
cp -r groovy-%{version} %{buildroot}/usr/share/doc/
|
cp -r groovy-%{version} %{buildroot}/usr/share/doc/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc groovy-%{version}/NOTICE
|
||||||
%license LICENSE
|
%license groovy-%{version}/LICENSE
|
||||||
/usr/share/doc/groovy-%{version}
|
/usr/share/doc/groovy-%{version}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ Apache Groovy is a powerful, optionally typed and dynamic language, with static-
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
unzip %{SOURCE0}
|
unzip %{SOURCE0}
|
||||||
|
cd %{name}-%{version}
|
||||||
gendesk -f -n --pkgname %{name} --pkgdesc 'Groovy programming language' --exec groovyConsole --name 'Groovy Console'
|
gendesk -f -n --pkgname %{name} --pkgdesc 'Groovy programming language' --exec groovyConsole --name 'Groovy Console'
|
||||||
|
|
||||||
for f in bin/*; do
|
for f in bin/*; do
|
||||||
@@ -24,6 +25,7 @@ done
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
cd %{name}-%{version}
|
||||||
# Create the directories and package the files
|
# Create the directories and package the files
|
||||||
install -d %{buildroot}/usr/share/groovy %{buildroot}/usr/bin
|
install -d %{buildroot}/usr/share/groovy %{buildroot}/usr/bin
|
||||||
cp -r lib conf %{buildroot}/usr/share/groovy
|
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
|
# Package the desktop shortcut for Groovy Console
|
||||||
install -Dm644 %{name}.desktop -t %{buildroot}/usr/share/applications
|
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 +0,0 @@
|
|||||||
rpm.version(gh("apache/groovy"))
|
|
||||||
Reference in New Issue
Block a user