1 | %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') |
---|
2 | %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]') |
---|
3 | |
---|
4 | Summary: Ruby binding for cairo |
---|
5 | Summary(ja): cairo の Ruby バインディング |
---|
6 | Name: rcairo |
---|
7 | Version: 1.8.0 |
---|
8 | Release: 2%{?_dist_release} |
---|
9 | Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz |
---|
10 | License: The same conditions as ruby |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: http://cairographics.org/ |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: ruby-devel >= 1.8.0 |
---|
16 | BuildRequires: cairo-devel >= 1.2.0 |
---|
17 | |
---|
18 | Vendor: Project Vine |
---|
19 | Distribution: Vine Linux |
---|
20 | |
---|
21 | %description |
---|
22 | Cairo is a 2D graphics library with support for multiple output devices. |
---|
23 | Currently supported output targets include the X Window System, win32, and |
---|
24 | image buffers. Experimental backends include OpenGL (through glitz), Quartz, |
---|
25 | XCB, PostScript and PDF file output. |
---|
26 | |
---|
27 | rcairo provides Ruby binding for cairo. |
---|
28 | |
---|
29 | %description -l ja |
---|
30 | cairo は 2D グラフィックスライブラリで,さまざまな出力デバイスをサポートして |
---|
31 | います.現在は,X Window System,Win32,イメージバッファをサポートしています. |
---|
32 | 実験的に OpenGL(glitz経由),Quartz,XCB,PostScript/PDF ファイルへの出力も |
---|
33 | サポートしています. |
---|
34 | |
---|
35 | rcairo は cairo の Ruby バインディングを供給します。 |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: The header file for rcairo |
---|
39 | Summary(ja): rcairo を用いた開発用のヘッダーファイル |
---|
40 | Group: Development/Libraries |
---|
41 | Requires: %{name} = %{version} |
---|
42 | |
---|
43 | %description devel |
---|
44 | The header file for rcairo |
---|
45 | |
---|
46 | %description devel -l ja |
---|
47 | rcairo を用いた開発用のヘッダーファイル |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup -q |
---|
51 | |
---|
52 | %build |
---|
53 | %ruby ./extconf.rb |
---|
54 | %{__make} |
---|
55 | |
---|
56 | %install |
---|
57 | rm -rf ${RPM_BUILD_ROOT} |
---|
58 | %makeinstall sitelibdir=${RPM_BUILD_ROOT}%{rlibdir} sitearchdir=${RPM_BUILD_ROOT}%{rarchdir} |
---|
59 | |
---|
60 | %clean |
---|
61 | rm -rf ${RPM_BUILD_ROOT} |
---|
62 | |
---|
63 | %files |
---|
64 | %defattr(-,root,root) |
---|
65 | %doc AUTHORS COPYING ChangeLog GPL NEWS README samples |
---|
66 | %{rlibdir}/*.rb |
---|
67 | %{rlibdir}/cairo |
---|
68 | %{rarchdir}/*.so |
---|
69 | |
---|
70 | %files devel |
---|
71 | %defattr(-,root,root) |
---|
72 | %{rarchdir}/*.h |
---|
73 | |
---|
74 | %changelog |
---|
75 | * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.0-2 |
---|
76 | - rebuilt with new toolchains |
---|
77 | |
---|
78 | * Mon Oct 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.0-1 |
---|
79 | - new upstream release |
---|
80 | |
---|
81 | * Tue Sep 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.0-1 |
---|
82 | - new upstream release |
---|
83 | - applied new versioning policy |
---|
84 | - removed BuildRequires: ruby-gnome2 (included pkg-config.rb) |
---|
85 | - spec in UTF-8 |
---|
86 | |
---|
87 | * Sat Jun 30 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.5.0-0vl1 |
---|
88 | - upstream release |
---|
89 | |
---|
90 | * Sat Mar 31 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.4.0-0vl2 |
---|
91 | - upstream release |
---|
92 | - add BuildRequires: rugy-gnome2 (extconf.rb requires "pkg-config") |
---|
93 | CAUTION: circulated build dependency exists between ruby-gnome2 and rcairo |
---|
94 | - modify %%build and %%install scriptlet to cope with extconf.rb |
---|
95 | - add "%%{rlibdir}/cairo" subdirectory in %%files section |
---|
96 | |
---|
97 | * Sun Sep 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-0vl3 |
---|
98 | - changed devel Group to Development/Libraries |
---|
99 | |
---|
100 | * Sat Feb 18 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.0-0vl2 |
---|
101 | - rebuild |
---|
102 | |
---|
103 | * Sun Oct 30 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.0-0vl1 |
---|
104 | - initial build for VineSeed |
---|