|
|
|
@ -1,30 +1,41 @@
|
|
|
|
|
# Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
|
%global gem_name RedCloth
|
|
|
|
|
%global gemlibname redcloth_scan.so
|
|
|
|
|
|
|
|
|
|
Summary: Textile parser for Ruby
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 4.2.9
|
|
|
|
|
Release: 13%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://redcloth.org
|
|
|
|
|
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 4.3.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Textile parser for Ruby
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://redcloth.org
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
# Fixes failing tests on ARM which defaults to use unsigned char
|
|
|
|
|
# http://jgarber.lighthouseapp.com/projects/13054-redcloth/tickets/236-test-failure-on-armelpowerpc
|
|
|
|
|
Patch0: rubygem-redcloth-4.2.9-unsigned-char-fix.patch
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: rubygem(rspec) < 3
|
|
|
|
|
BuildRequires: rubygem(rspec-core) < 3
|
|
|
|
|
BuildRequires: rubygem(rspec-mocks) < 3
|
|
|
|
|
BuildRequires: rubygem(rspec-expectations) < 3
|
|
|
|
|
#BuildRequires: rubygem(rspec-core) < 3
|
|
|
|
|
#BuildRequires: rubygem(rspec-mocks) < 3
|
|
|
|
|
#BuildRequires: rubygem(rspec-expectations) < 3
|
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Textile parser for Ruby.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Group: Documentation
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
@ -45,17 +56,20 @@ popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
|
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
# Move C extension to the ext dir
|
|
|
|
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
|
|
|
|
cp -a .%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/
|
|
|
|
|
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
|
|
|
|
|
|
|
|
|
# Prevent dangling symlink in -debuginfo.
|
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext
|
|
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
cp -pa .%{_bindir}/* \
|
|
|
|
|
%{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
@ -63,28 +77,31 @@ rspec2 -I$(dirs +1)%{gem_extdir_mri} spec
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/redcloth
|
|
|
|
|
%exclude %{gem_instdir}/.gemtest
|
|
|
|
|
%exclude %{gem_instdir}/.rspec
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
%{gem_instdir}/redcloth.gemspec
|
|
|
|
|
%{gem_instdir}/tasks
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{_bindir}/redcloth
|
|
|
|
|
%{gem_extdir_mri}
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/doc
|
|
|
|
|
%doc %{gem_instdir}/spec
|
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
|
%doc %{gem_instdir}/Rakefile
|
|
|
|
|
%doc %{gem_instdir}/CHANGELOG
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
%license %{gem_instdir}/COPYING
|
|
|
|
|
%{gem_cache}
|
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
|
%exclude %{gem_instdir}/redcloth.gemspec
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/CHANGELOG
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%doc %{gem_instdir}/doc
|
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
%{gem_instdir}/tasks
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jan 10 2017 Vít Ondruch <vondruch@redhat.com> - 4.3.2-1
|
|
|
|
|
- Update to RedCloth 4.3.2.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.9-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|