6122e66
%{!?ruby_sitelib:  %define ruby_sitelib  %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
6122e66
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
6122e66
58b70c7
%define rubyabi 1.8
58b70c7
%define realname ncurses-ruby
58b70c7
%define distname ruby-ncurses
6122e66
6122e66
Name: %distname
c3e747f
Version: 1.3.1
c3e747f
Release: 1%{?dist}
6122e66
Summary: A module for ruby applications for using ncurses interfaces
6122e66
Group: System Environment/Libraries 
fe8efbd
License: LGPLv2+
6122e66
URL: http://ncurses-ruby.berlios.de/
6122e66
Source0: http://download.berlios.de/ncurses-ruby/%{realname}-%{version}.tar.bz2
6122e66
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6122e66
BuildRequires: ruby(abi) = %{rubyabi}
6122e66
BuildRequires: ruby
6122e66
BuildRequires: ruby-devel
6122e66
BuildRequires: ncurses-devel
6122e66
Requires: ruby(abi) = %{rubyabi}
6122e66
Requires: ruby
6122e66
Provides: ruby(ncurses) = %{version}-%{release}
6122e66
6122e66
%description
6122e66
This ruby extension makes most functions, constants, and external variables 
6122e66
of the C library ncurses accessible from the Ruby programming language.
6122e66
6122e66
%prep
6122e66
%setup -q -n %{realname}-%{version}
6122e66
%{__chmod} 0644 ncurses_wrap.c
6122e66
find examples/ -type f | xargs %{__chmod} 0644
6122e66
6122e66
%build
6122e66
ruby extconf.rb
6122e66
%{__make} %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fPIC"
6122e66
6122e66
%install
6122e66
%{__rm} -rf $RPM_BUILD_ROOT
6122e66
%{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
6122e66
6122e66
%check
6122e66
6122e66
%clean
6122e66
%{__rm} -rf $RPM_BUILD_ROOT
6122e66
6122e66
%files
6122e66
%defattr(-,root,root,-)
6122e66
%doc README COPYING VERSION THANKS Changes
6122e66
%doc examples
6122e66
%{ruby_sitearch}/ncurses_bin.so
6122e66
%{ruby_sitelib}/ncurses.rb
c3e747f
%{ruby_sitelib}/ncurses_sugar.rb
6122e66
6122e66
%changelog
c3e747f
* Sun Nov 20 2011 Simon Lukasik <slukasik@redhat.com> - 1.3.1-1
c3e747f
- Update to a new upstream version
c3e747f
efb6adc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
efb6adc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
efb6adc
58b70c7
* Fri Jun  4 2010 Simon Lukasik <slukasik@redhat.com> - 1.2.4-1
58b70c7
- Update to new upstream version
58b70c7
8902a15
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9
8902a15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8902a15
7a01fa6
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
7a01fa6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7a01fa6
fe8efbd
* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1-7
fe8efbd
- fix license tag
fe8efbd
b64473f
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1-6
b64473f
- Autorebuild for GCC 4.3
b64473f
6122e66
*  Sat May 19 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-5
58b70c7
- Rewrite: rest of commands to macros 
58b70c7
6122e66
*  Mon May 14 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-4
58b70c7
- Rewrite: "install -s" to "install"
58b70c7
6122e66
*  Sun May 13 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-3
58b70c7
- Rewrite: licence, make parameters, chmod in prep section, 
58b70c7
  added: THANKS and examples/ to doc
58b70c7
6122e66
*  Sun May 13 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-2
58b70c7
- Rewrite: General section(provides, (build)requires), 
58b70c7
  install, clean and files (added ruby_site* macros)
58b70c7
6122e66
*  Sun May 13 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-1
58b70c7
- Initial package.
6122e66