| Line | |
|---|
| 1 | %define buildrequires_ge() %(LC_ALL="C" rpm -q --queryformat 'BuildRequires:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
|---|
| 2 | %define name ruby-v4l |
|---|
| 3 | %define version 0.1.2 |
|---|
| 4 | %define release 0vl1 |
|---|
| 5 | |
|---|
| 6 | Name: %{name} |
|---|
| 7 | Summary: ruby/V4L is simple wapper of v4l(Video for Linux). |
|---|
| 8 | Version: %{version} |
|---|
| 9 | Release: %{release} |
|---|
| 10 | Source: http://ruby.ad-hoc.org/v4l/%{name}-%{version}.tar.bz2 |
|---|
| 11 | URL: http://rubyforge.org/projects/ruby-v4l/ |
|---|
| 12 | Group: Development/Libraries |
|---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 14 | License: LGPL |
|---|
| 15 | %buildrequires_ge ruby-devel |
|---|
| 16 | |
|---|
| 17 | %description |
|---|
| 18 | ruby/V4L is simple wapper of v4l(Video for Linux). |
|---|
| 19 | In other words this library will only run on Linux machines which support a |
|---|
| 20 | video4linux-device. |
|---|
| 21 | |
|---|
| 22 | %prep |
|---|
| 23 | rm -rf $RPM_BUILD_ROOT |
|---|
| 24 | %setup -q |
|---|
| 25 | |
|---|
| 26 | %build |
|---|
| 27 | ruby extconf.rb |
|---|
| 28 | make |
|---|
| 29 | |
|---|
| 30 | %install |
|---|
| 31 | rm -rf $RPM_BUILD_ROOT |
|---|
| 32 | make install sitearchdir=$RPM_BUILD_ROOT%{rarchdir} |
|---|
| 33 | |
|---|
| 34 | %clean |
|---|
| 35 | rm -rf $RPM_BUILD_ROOT |
|---|
| 36 | |
|---|
| 37 | %files |
|---|
| 38 | %defattr(-,root,root,0755) |
|---|
| 39 | %{rarchdir}/*.so |
|---|
| 40 | %doc tests/*.rb |
|---|
| 41 | |
|---|
| 42 | %changelog |
|---|
| 43 | * Tue Dec 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl1 |
|---|
| 44 | - new upstream release |
|---|
| 45 | - rebuilt with ruby-1.8 |
|---|
| 46 | - changed Group: |
|---|
| 47 | - s/Copyright/License/ |
|---|
| 48 | |
|---|
| 49 | * Thu Nov 22 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 0.0.2-0vl2 |
|---|
| 50 | - fix %%files section |
|---|
| 51 | |
|---|
| 52 | * Tue Nov 20 2000 Kazuhisa TAKEI <takei@vinelinux.org> 0.0.2-0vl1 |
|---|
| 53 | - initial package |
|---|
Note: See
TracBrowser
for help on using the repository browser.