2010-06-04 17:43:54 +00:00
|
|
|
%define realname ncurses-ruby
|
|
|
|
%define distname ruby-ncurses
|
2007-05-21 18:12:07 +00:00
|
|
|
|
|
|
|
Name: %distname
|
2011-11-20 18:06:46 +00:00
|
|
|
Version: 1.3.1
|
2018-02-09 13:26:55 +00:00
|
|
|
Release: 25%{?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
|
2013-03-14 14:19:46 +00:00
|
|
|
Patch0: 0001-STR2CSTR-deprecated.patch
|
2014-02-03 10:47:30 +00:00
|
|
|
Patch1: 0002-Werror-format-security.patch
|
2014-05-02 13:34:22 +00:00
|
|
|
# Fixes "ncurses_wrap.c:827:12: error: variable 'tz' has initializer but incomplete type"
|
|
|
|
# https://github.com/eclubb/ncurses-ruby/commit/0f7decd5e5a205444c9d31f19b0599a7e42b0fd8
|
|
|
|
Patch2: ruby-ncurses-fix-missing-tz-prototypes.patch
|
2015-09-02 16:38:45 +00:00
|
|
|
# rb_thread_select was removed from Ruby 2.2.
|
|
|
|
# https://bugs.ruby-lang.org/issues/9502#change-45212
|
|
|
|
# https://github.com/sup-heliotrope/ncursesw-ruby/commit/809e549408bfdf7cab4b98a73f6e78dd3ad81d86
|
|
|
|
Patch3: ruby-ncurses-1.3.1-use-new-rb_thread_fd_select-avoiding-deprecated-functions.patch
|
2014-05-02 13:34:22 +00:00
|
|
|
BuildRequires: ruby(release)
|
2007-05-21 18:12:07 +00:00
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: ncurses-devel
|
2013-03-14 09:59:57 +00:00
|
|
|
Requires: ruby(release) >= %{rubyabi}
|
2007-05-21 18:12:07 +00:00
|
|
|
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}
|
2013-03-14 14:19:46 +00:00
|
|
|
%patch0 -p1 -b .p
|
2014-02-03 10:47:30 +00:00
|
|
|
%patch1 -p1 -b .format
|
2014-05-02 13:34:22 +00:00
|
|
|
%patch2 -p1 -b .systime
|
2015-09-02 16:38:45 +00:00
|
|
|
%patch3 -p1 -b .ruby22
|
2007-05-21 18:12:07 +00:00
|
|
|
%{__chmod} 0644 ncurses_wrap.c
|
|
|
|
find examples/ -type f | xargs %{__chmod} 0644
|
|
|
|
|
|
|
|
%build
|
2012-02-07 09:20:13 +00:00
|
|
|
ruby extconf.rb --vendor
|
2007-05-21 18:12:07 +00:00
|
|
|
%{__make} %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2013-03-15 14:14:05 +00:00
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT ruby_headers= INSTALL="%{__install} -p"
|
2007-05-21 18:12:07 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README COPYING VERSION THANKS Changes
|
|
|
|
%doc examples
|
2012-02-07 09:20:13 +00:00
|
|
|
%{ruby_vendorarchdir}/ncurses_bin.so
|
|
|
|
%{ruby_vendorlibdir}/ncurses.rb
|
|
|
|
%{ruby_vendorlibdir}/ncurses_sugar.rb
|
2007-05-21 18:12:07 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-02-09 13:26:55 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-25
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-20 22:08:20 +00:00
|
|
|
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.3.1-24
|
|
|
|
- Rebuilt for switch to libxcrypt
|
|
|
|
|
2018-01-04 06:44:10 +00:00
|
|
|
* Thu Jan 04 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.1-23
|
|
|
|
- F-28: rebuild for ruby25
|
|
|
|
|
2017-08-03 07:51:40 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 13:21:52 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 11:55:53 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-12 05:15:09 +00:00
|
|
|
* Thu Jan 12 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.1-19
|
|
|
|
- F-26: rebuild for ruby24
|
|
|
|
|
2016-02-04 22:23:39 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-13 08:32:46 +00:00
|
|
|
* Wed Jan 13 2016 Vít Ondruch <vondruch@redhat.com> - 1.3.1-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
|
|
|
|
2015-09-02 16:38:45 +00:00
|
|
|
* Wed Sep 02 2015 Vít Ondruch <vondruch@redhat.com> - 1.3.1-16
|
|
|
|
- Fix Ruby 2.2 compatibility.
|
|
|
|
|
2015-06-18 22:39:23 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-17 14:37:16 +00:00
|
|
|
* Sat Jan 17 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.1-14
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
|
|
|
|
|
2014-08-18 00:32:32 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 03:11:54 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-02 13:34:22 +00:00
|
|
|
* Fri May 02 2014 Vít Ondruch <vondruch@redhat.com> - 1.3.1-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
|
|
|
|
|
2014-02-03 10:47:30 +00:00
|
|
|
* Mon Feb 03 2014 Šimon Lukašík <slukasik@redhat.com> - 1.3.1-10
|
|
|
|
- FTBFS if "-Werror=format-security" flag is used (#1037313)
|
|
|
|
|
2013-08-04 13:13:12 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-15 14:14:05 +00:00
|
|
|
* Fri Mar 15 2013 Simon Lukasik <slukasik@redhat.com> - 1.3.1-8
|
|
|
|
- Workaround ruby 2.0 build bug 921650.
|
|
|
|
|
2013-03-14 14:19:46 +00:00
|
|
|
* Thu Mar 14 2013 Simon Lukasik <slukasik@redhat.com> - 1.3.1-7
|
|
|
|
- Avoid using deprecated macro STR2CSTR (#822814)
|
|
|
|
|
2013-03-14 09:59:57 +00:00
|
|
|
* Thu Mar 14 2013 Simon Lukasik <slukasik@redhat.com> - 1.3.1-6
|
|
|
|
- Fix build requires for Ruby 2.0 release
|
|
|
|
|
2013-02-14 22:03:19 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 17:20:53 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-07 09:20:13 +00:00
|
|
|
* Tue Feb 07 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.1-3
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
2012-01-14 03:00:25 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-20 18:06:46 +00:00
|
|
|
* Sun Nov 20 2011 Simon Lukasik <slukasik@redhat.com> - 1.3.1-1
|
|
|
|
- Update to a new upstream version
|
|
|
|
|
2011-02-09 09:09:11 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-06-04 17:43:54 +00:00
|
|
|
* Fri Jun 4 2010 Simon Lukasik <slukasik@redhat.com> - 1.2.4-1
|
|
|
|
- Update to new upstream version
|
|
|
|
|
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
|
2010-06-04 17:43:54 +00:00
|
|
|
- Rewrite: rest of commands to macros
|
|
|
|
|
2007-05-21 18:12:07 +00:00
|
|
|
* Mon May 14 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-4
|
2010-06-04 17:43:54 +00:00
|
|
|
- Rewrite: "install -s" to "install"
|
|
|
|
|
2007-05-21 18:12:07 +00:00
|
|
|
* Sun May 13 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-3
|
2010-06-04 17:43:54 +00:00
|
|
|
- Rewrite: licence, make parameters, chmod in prep section,
|
|
|
|
added: THANKS and examples/ to doc
|
|
|
|
|
2007-05-21 18:12:07 +00:00
|
|
|
* Sun May 13 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-2
|
2010-06-04 17:43:54 +00:00
|
|
|
- Rewrite: General section(provides, (build)requires),
|
|
|
|
install, clean and files (added ruby_site* macros)
|
|
|
|
|
2007-05-21 18:12:07 +00:00
|
|
|
* Sun May 13 2007 Simon Lukasik <lukasim@atlas.cz> - 1.1-1
|
2010-06-04 17:43:54 +00:00
|
|
|
- Initial package.
|
2007-05-21 18:12:07 +00:00
|
|
|
|