-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruby2.4.spec
96 lines (76 loc) · 2.21 KB
/
ruby2.4.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Name: ruby2.4
Version: 2.4.1
Release: 1%{?dist}
Summary: A dynamic, open source programming language with a focus on simplicity and productivity
License: BSD-like
URL: https://www.ruby-lang.org/en/
Source0: ruby-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: patch
BuildRequires: make
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: bison
BuildRequires: doxygen
BuildRequires: procps
BuildRequires: centos-release = 7
BuildRequires: gdbm-devel
BuildRequires: gmp-devel
BuildRequires: readline-devel
BuildRequires: libyaml-devel
BuildRequires: libffi-devel
BuildRequires: openssl-devel
BuildRequires: jemalloc-devel
BuildRequires: zlib-devel
BuildRequires: tk-devel
Requires: doxygen
Requires: jemalloc
Conflicts: ruby
Conflicts: ruby2.1
Conflicts: ruby2.2
Conflicts: ruby2.3
%description
A dynamic, open source programming language with a focus on simplicity and productivity.
It has an elegant syntax that is natural to read and easy to write.
%prep
%setup -q -n ruby-%{version}
%build
%configure \
--program-suffix=2.4 \
--disable-rpath \
--with-jemalloc \
--disable-install-doc \
--disable-install-rdoc
make %{?_smp_mflags}
%install
export DONT_STRIP=1
rm -rf $RPM_BUILD_ROOT
%make_install
%clean
rm -rf $RPM_BUILD_ROOT
make -s clean
%post
ln -sf /usr/bin/gem2.4 /usr/bin/gem
ln -sf /usr/bin/ruby2.4 /usr/bin/ruby
%postun
unlink /usr/bin/gem || true
unlink /usr/bin/ruby || true
%files
%{_bindir}/erb2.4
%{_bindir}/gem2.4
%{_bindir}/irb2.4
%{_bindir}/rake2.4
%{_bindir}/rdoc2.4
%{_bindir}/ri2.4
%{_bindir}/ruby2.4
%{_includedir}/ruby-2.4.0
%{_libdir}/ruby/2.4.0
%{_libdir}/ruby/gems/2.4.0
%{_libdir}/libruby-static.a
%{_libdir}/pkgconfig/ruby-2.4.pc
%{_mandir}/man1/erb2.4.1.gz
%{_mandir}/man1/irb2.4.1.gz
%{_mandir}/man1/ri2.4.1.gz
%{_mandir}/man1/ruby2.4.1.gz