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