1 | %define pkg_name littler |
---|
2 | %define pkg_version 0.3.0 |
---|
3 | %define pkg_release 2%{?_dist_release} |
---|
4 | |
---|
5 | Summary: GNU R script language and command-line frontend |
---|
6 | Summary(ja): GNU R スクリプト言語およびコマンドラインフロントエンド |
---|
7 | Name: R-%{pkg_name} |
---|
8 | Version: %{pkg_version} |
---|
9 | Release: %{pkg_release} |
---|
10 | |
---|
11 | License: GPLv2+ or later |
---|
12 | Group: Applications/Edutainment |
---|
13 | URL: https://cran.ism.ac.jp/ |
---|
14 | Source0: https://cran.ism.ac.jp/src/contrib/%{pkg_name}_%{version}.tar.gz |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildRequires: R |
---|
18 | BuildRequires: zlib-devel bzip2-devel |
---|
19 | BuildRequires: libicu-devel |
---|
20 | Requires: R |
---|
21 | |
---|
22 | Obsoletes: littler |
---|
23 | |
---|
24 | Vendor: Project Vine |
---|
25 | Distribution: Vine Linux |
---|
26 | Packager: ara_t |
---|
27 | |
---|
28 | |
---|
29 | %description |
---|
30 | littler provides hash-bang (i.e. script starting with #!/some/path) |
---|
31 | capability for GNU R, as well as simple command-line and piping use. |
---|
32 | |
---|
33 | %description -l ja |
---|
34 | 'r' (別名 'littler') プログラムは統計計算およびグラフィック向けの |
---|
35 | GNU R言語環境 への軽量なバイナリラッパーを提供します。 |
---|
36 | |
---|
37 | |
---|
38 | %prep |
---|
39 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
40 | |
---|
41 | %build |
---|
42 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_libdir}/R/library |
---|
43 | R CMD INSTALL %{_sourcedir}/%{pkg_name}_%{version}.tar.gz \ |
---|
44 | -l ${RPM_BUILD_ROOT}%{_libdir}/R/library |
---|
45 | |
---|
46 | %install |
---|
47 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir} |
---|
48 | |
---|
49 | cd ${RPM_BUILD_ROOT} |
---|
50 | %{__ln_s} %{_libdir}/R/library/%{pkg_name}/bin/r usr/bin |
---|
51 | |
---|
52 | %clean |
---|
53 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
54 | |
---|
55 | |
---|
56 | %files |
---|
57 | %defattr(-, root, root) |
---|
58 | %{_bindir}/ |
---|
59 | %{_libdir}/R/library |
---|
60 | |
---|
61 | |
---|
62 | %changelog |
---|
63 | * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 0.3.0-2 |
---|
64 | - correct SPEC file |
---|
65 | |
---|
66 | * Wed Jan 27 2016 Toshiaki Ara <ara_t@384.jp> 0.3.0-1 |
---|
67 | - rename package from littler to R-littler |
---|
68 | - add Obsoletes: littler |
---|
69 | |
---|
70 | * Tue Jan 26 2016 Toshiaki Ara <ara_t@384.jp> 0.3.0-1 |
---|
71 | - update 0.3.0 |
---|
72 | |
---|
73 | * Tue Dec 03 2013 Toshiaki Ara <ara_t@384.jp> 0.1.5-1 |
---|
74 | - new package |
---|