[521] | 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: 1%{?_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 | * Mon Oct 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.0-1 |
---|
| 76 | - new upstream release |
---|
| 77 | |
---|
| 78 | * Tue Sep 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.0-1 |
---|
| 79 | - new upstream release |
---|
| 80 | - applied new versioning policy |
---|
| 81 | - removed BuildRequires: ruby-gnome2 (included pkg-config.rb) |
---|
| 82 | - spec in UTF-8 |
---|
| 83 | |
---|
| 84 | * Sat Jun 30 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.5.0-0vl1 |
---|
| 85 | - upstream release |
---|
| 86 | |
---|
| 87 | * Sat Mar 31 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.4.0-0vl2 |
---|
| 88 | - upstream release |
---|
| 89 | - add BuildRequires: rugy-gnome2 (extconf.rb requires "pkg-config") |
---|
| 90 | CAUTION: circulated build dependency exists between ruby-gnome2 and rcairo |
---|
| 91 | - modify %%build and %%install scriptlet to cope with extconf.rb |
---|
| 92 | - add "%%{rlibdir}/cairo" subdirectory in %%files section |
---|
| 93 | |
---|
| 94 | * Sun Sep 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-0vl3 |
---|
| 95 | - changed devel Group to Development/Libraries |
---|
| 96 | |
---|
| 97 | * Sat Feb 18 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.0-0vl2 |
---|
| 98 | - rebuild |
---|
| 99 | |
---|
| 100 | * Sun Oct 30 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.0-0vl1 |
---|
| 101 | - initial build for VineSeed |
---|