Skip to content

Instantly share code, notes, and snippets.

@MihailJP
Forked from kazuhisya/Makefile
Last active August 29, 2015 14:00
Show Gist options
  • Save MihailJP/11083037 to your computer and use it in GitHub Desktop.
Save MihailJP/11083037 to your computer and use it in GitHub Desktop.
%define groovy_root_dir /usr/share
Name: groovy
Version: 2.2.2
Release: 1%{?dist}
License: See: http://groovy.codehaus.org/license.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Languages/Groovy
Summary: Contains the base system for executing groovy scripts.
Source: http://dist.codehaus.org/groovy/distributions/groovy-binary-%{version}.zip
BuildArch: noarch
BuildRequires: unzip
Packager: TANIGAWA Takashi <mihailjp@gmail.com>
%description
Groovy is an object-oriented programming language for the Java Platform as an
alternative to the Java programming language. It can be viewed as a scripting
language for the Java Platform, as it has features similar to those of Python,
Ruby, Perl, and Smalltalk. In some contexts, the name JSR 241 is used as an
alternate identifier for the Groovy language.
%prep
%setup -n %{name}-%{version}
rm bin/*.bat
rm -rf $RPM_BUILD_ROOT
%build
%install
install -d $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/lib
install -p lib/* $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/lib
install -d $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/conf
install -p conf/* $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/conf
install -d $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/embeddable
install -p embeddable/* $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/embeddable
install -d $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/bin
install -p bin/* $RPM_BUILD_ROOT/%{groovy_root_dir}/groovy/bin
mkdir -p $RPM_BUILD_ROOT/usr/bin
for file in grape groovy groovy.icns groovy.ico groovyConsole groovyc groovydoc groovysh java2groovy startGroovy ; do
ln -s %{groovy_root_dir}/groovy/bin/$file $RPM_BUILD_ROOT/usr/bin
done
install -d $RPM_BUILD_ROOT/etc/profile.d
echo "export GROOVY_HOME=%{groovy_root_dir}/%{name}" >$RPM_BUILD_ROOT/etc/profile.d/groovy.sh
echo "setenv GROOVY_HOME %{groovy_root_dir}/%{name}" >$RPM_BUILD_ROOT/etc/profile.d/groovy.csh
%clean
rm -rf "$RPM_BUILD_ROOT"
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
/etc/profile.d/*
/usr/*
%changelog
* Sat Apr 19 2014 TANIGAWA Takashi <mihailjp@gmail.com>
- Updated to Groovy version 2.2.2
* Tue Sep 6 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to Groovy version 1.8.2
* Fri Jul 22 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to Groovy version 1.8.1
* Tue Jul 5 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to Groovy version 1.8.0
* Sat Feb 20 2010 Federico Pedemonte <pedemonte@linux.it>
- Updated to Groovy version 1.7.1
* Sat Oct 03 2009 Federico Pedemonte <pedemonte@linux.it>
- Updated to Groovy version 1.6.5
- Removed hard-coded path/version number from spec file
* Thu Sep 10 2009 Federico Pedemonte <pedemonte@linux.it>
- Updated to Groovy version 1.6.4
- Removed hard-coded path/version number from spec file
* Sun May 17 2009 Federico Pedemonte <pedemonte@linux.it>
- Updated to Groovy version 1.6.3
* Wed Apr 29 2009 Federico Pedemonte <pedemonte@linux.it>
- Updated to Groovy version 1.6.2
* Wed Apr 08 2009 Federico Pedemonte <pedemonte@linux.it>
- Updated to Groovy version 1.6.1
* Wed Feb 18 2009 Federico Pedemonte <pedemonte@linux.it>
- Updated to Groovy version 1.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment