Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 59aa4034c4df4ceb9786acd8ff049b88 > files > 3

ruby-cairo-1.8.5-1.fc13.src.rpm

%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}

Name:           ruby-cairo
Version:        1.8.5
Release:        1%{?dist}
Summary:        Ruby bindings for cairo

Group:          System Environment/Libraries

License:        GPLv2+
URL:            http://cairographics.org/rcairo
Source0:        http://cairographics.org/releases/rcairo-%{version}.tar.gz
# test_requires_private in test/test_pkg_config.rb will fail with newer cairo
Patch0:         rcairo-1.8.5-test-failure-with-newer-cairo.patch
  
BuildRequires:  ruby
BuildRequires:  ruby-devel
BuildRequires:  cairo-devel
# Make it sure that at least one font is available during %%check
# Otherwise test_text_to_glyphs() in test/test_context.rb fails on F-12/F13.
BuildRequires(check): dejavu-sans-fonts

Requires:       ruby(abi) = 1.8
# If this package is mainly a ruby library, it should provide
# whatever people have to require in their ruby scripts to use the library
# For example, if people use this lib with "require 'foo'", it should provide
# ruby(foo)
Provides:       ruby(cairo) = %{version}-%{release}

%description
Ruby bindings for cairo. Cairo is a 2D graphics library with support for 
multiple output devices. Currently supported output targets include the 
X Window System, win32, and image buffers.

%package devel
Summary:        Ruby-cairo development environment
Group:          Development/Languages
Requires:       %{name} = %{version}-%{release}
Requires:       cairo-devel
Requires:       ruby-devel
Provides:       ruby(cairo-devel) = %{version}-%{release}

%description devel
Header files and libraries for building a extension library for the
ruby-cairo


%prep
%setup -q -n rcairo-%{version}
%patch0 -p1 -b .newcairo

find samples/ -type f | xargs chmod 0644
rm -f samples/.cvsignore

%build
export CFLAGS="$RPM_OPT_FLAGS"
ruby extconf.rb
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install \
  DESTDIR=$RPM_BUILD_ROOT \
  INSTALL="install -c -p"

%clean
rm -rf $RPM_BUILD_ROOT

%check
ruby ./test/run-test.rb --verbose

%files
%defattr(-,root,root,-)
%doc AUTHORS 
%doc COPYING
%doc GPL
%doc NEWS
%doc README.rdoc
%doc samples/
%{ruby_sitelib}/cairo.rb
%{ruby_sitelib}/cairo/
%{ruby_sitearch}/cairo.so

%files devel
%defattr(-,root,root,-)
%{ruby_sitearch}/rb_cairo.h


%changelog
* Thu Sep  2 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 1.8.5-1
- Update to 1.8.5

* Wed Dec 16 2009 Allisson Azevedo <allisson@gmail.com> 1.8.1-1
- Update to 1.8.1

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Jan 23 2009 Allisson Azevedo <allisson@gmail.com> 1.8.0-2
- Rebuild

* Sun Oct  5 2008 Allisson Azevedo <allisson@gmail.com> 1.8.0-1
- Update to 1.8.0

* Tue Sep  9 2008 Allisson Azevedo <allisson@gmail.com> 1.7.0-1
- Update to 1.7.0

* Sun May 18 2008 Allisson Azevedo <allisson@gmail.com> 1.6.1-1
- Update to 1.6.1

* Mon Feb 25 2008 Allisson Azevedo <allisson@gmail.com> 1.5.1-1
- Update to 1.5.1
- Update License for GPLv2+

* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0-2
- Autorebuild for GCC 4.3

* Mon Jun 11 2007 Allisson Azevedo <allisson@gmail.com> 1.5.0-1
- Update to 1.5.0

* Sun Mar 28 2007 Allisson Azevedo <allisson@gmail.com> 1.4.1-2
- Changed license for Ruby License/GPL
- Add ruby-devel for devel requires
- Changed main group for System Environment/Libraries
- Changed install for keep timestamps

* Sun Mar 26 2007 Allisson Azevedo <allisson@gmail.com> 1.4.1-1
- Initial RPM release