Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
security:logging
jruby-1_7_25
jruby-1_7_25.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jruby-1_7_25.spec of Package jruby-1_7_25
# # spec file for package jruby-1_7_25 # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 kkaempf # # 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: jruby-1_7_25 Version: 1.7.25 Release: 0 Summary: JRuby is a 100% Java implementation of the Ruby programming language License: Ruby Group: Development/Libraries/Java Url: https://github.com/jruby/jruby Source0: jruby-%{version}.tar.gz %define jrubydir %{_datadir}/jruby # jars are in /usr/share/java instead of /usr/lib Patch1: jar-path.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{name}-kit == %{version} BuildRequires: fdupes BuildRequires: java-devel = 1.8.0 BuildRequires: xz Conflicts: jruby < %{version} Conflicts: jruby > %{version} Provides: jruby = %{version} Provides: mvn(org.jruby:core) == %{version} Provides: mvn(org.jruby:lib) == %{version} Requires: ca-certificates-mozilla Requires: java = 1.8.0 %description JRuby is the effort to recreate the Ruby (http://www.ruby-lang.org) interpreter in Java %prep %setup -q -c -n src cp -Rf %{_datadir}/tetra ../kit cd jruby-%{version} %patch1 -p1 %build cd .. export NO_BRP_CHECK_BYTECODE_VERSION=true export PROJECT_PREFIX=`readlink -e .` cd src/jruby-%{version} $PROJECT_PREFIX/kit/apache-maven-3.3.9/bin/mvn \ -Dmaven.repo.local=$PROJECT_PREFIX/kit/m2 \ --settings $PROJECT_PREFIX/kit/m2/settings.xml \ --strict-checksums \ -o \ package %install cd .. export NO_BRP_CHECK_BYTECODE_VERSION=true export PROJECT_PREFIX=`readlink -e .` cd src/jruby-%{version} $PROJECT_PREFIX/kit/apache-maven-3.3.9/bin/mvn \ -Dmaven.repo.local=$PROJECT_PREFIX/kit/m2 \ --settings $PROJECT_PREFIX/kit/m2/settings.xml \ --strict-checksums \ -o \ install # jruby mkdir -p %{buildroot}%{jrubydir} # main .jar install -m 644 lib/jruby.jar %{buildroot}%{jrubydir} # core .jar install -m 644 core/target/jruby-core-1.7.25.jar %{buildroot}%{jrubydir} # jruby mkdir -p %{buildroot}%{jrubydir} # jni mkdir -p %{buildroot}%{_libdir}/jni install -m 644 lib/jni/%{_arch}-Linux/* %{buildroot}%{_libdir}/jni # jruby/jni ln -s %{_libdir}/jni %{buildroot}%{jrubydir} # jruby/bin mkdir -p %{buildroot}%{jrubydir}/bin install -m 755 bin/* %{buildroot}%{jrubydir}/bin rm -f %{buildroot}%{jrubydir}/bin/*.exe rm -f %{buildroot}%{jrubydir}/bin/*.bat rm -f %{buildroot}%{jrubydir}/bin/*.dll rm -f %{buildroot}%{jrubydir}/bin/*.sh # /usr/bin mkdir -p %{buildroot}%{_bindir} # should use update-alternatives instead ln -s %{jrubydir}/bin/jruby.bash %{buildroot}%{_bindir}/jruby ln -s %{jrubydir}/bin/rake %{buildroot}%{_bindir}/jrake ln -s %{jrubydir}/bin/jgem %{buildroot}%{_bindir}/jgem ln -s %{jrubydir}/bin/jirb %{buildroot}%{_bindir}/jirb # jruby/ruby cp -a lib/ruby %{buildroot}%{jrubydir} rm -rf %{buildroot}%{jrubydir}/ruby/shared/ffi/platform/*-* cp -a lib/ruby/shared/ffi/platform/%{_arch}-linux %{buildroot}%{jrubydir}/ruby/shared/ffi/platform # jruby/target #cp -a lib/target %{buildroot}%{jrubydir} find %{buildroot}%{jrubydir} -name .document | xargs rm -rf %fdupes %{buildroot}%{jrubydir} %files %defattr(-,root,root) %doc jruby-%{version}/COPYING jruby-%{version}/LICENSE.RUBY %doc jruby-%{version}/docs/* %{_bindir}/* %dir %{jrubydir} %{jrubydir} %dir %{_libdir}/jni %{_libdir}/jni %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor