You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
136 lines
3.9 KiB
136 lines
3.9 KiB
# Generated from rdiscount-1.6.3.2.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
%global gemname rdiscount
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
Summary: Fast Implementation of Gruber's Markdown in C
|
|
Name: rubygem-%{gemname}
|
|
Version: 1.6.3.2
|
|
Release: 6%{?dist}
|
|
Group: Development/Languages
|
|
License: ASL 1.1
|
|
URL: http://github.com/rtomayko/rdiscount
|
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
Requires: ruby(abi) = 1.8
|
|
Requires: rubygems
|
|
BuildRequires: rubygems
|
|
BuildRequires: ruby-devel
|
|
BuildRequires: rubygem(rake)
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation
|
|
BuildArch: noarch
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description
|
|
Description: Discount is an implementation of John Gruber's Markdown markup
|
|
language in C. It implements all of the language described in the markdown
|
|
syntax document and passes the Markdown 1.0 test suite.
|
|
|
|
#--
|
|
|
|
%description doc
|
|
This package contains Rakefile, test directory and documentation for
|
|
%{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
|
|
%build
|
|
mkdir -p .%{gemdir}
|
|
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
|
|
gem install -V --local --install-dir $(pwd)/%{gemdir} \
|
|
--force --rdoc %{SOURCE0}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
mkdir -p %{buildroot}%{_mandir}/man7
|
|
mkdir -p %{buildroot}%{ruby_sitearch}
|
|
mv .%{geminstdir}/man/rdiscount.1 %{buildroot}%{_mandir}/man1
|
|
mv .%{geminstdir}/man/markdown.7 %{buildroot}%{_mandir}/man7
|
|
cp -a .%{gemdir}/* %{buildroot}%{gemdir}
|
|
rm -rf %{buildroot}%{geminstdir}/ext
|
|
mv %{buildroot}%{geminstdir}/lib/rdiscount.so %{buildroot}%{ruby_sitearch}
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
|
|
rmdir %{buildroot}%{gemdir}/bin
|
|
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%check
|
|
export GEM_PATH=$(pwd)/%{gemdir}
|
|
pushd .%{geminstdir}
|
|
#
|
|
rake test:unit
|
|
|
|
|
|
%files
|
|
%defattr(-, root, root, -)
|
|
%{_bindir}/rdiscount
|
|
%dir %{geminstdir}
|
|
%{geminstdir}/bin/
|
|
%{geminstdir}/lib/
|
|
%doc %{geminstdir}/COPYING
|
|
%doc %{geminstdir}/README.markdown
|
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
%{ruby_sitearch}/rdiscount.so
|
|
%{_mandir}/man1/rdiscount.1.gz
|
|
%{_mandir}/man7/markdown.7.gz
|
|
|
|
#--
|
|
|
|
%files doc
|
|
%defattr(-, root, root, -)
|
|
%doc %{geminstdir}/Rakefile
|
|
%{gemdir}/doc/%{gemname}-%{version}
|
|
%{geminstdir}/man
|
|
%{geminstdir}/test
|
|
%{geminstdir}/rdiscount.gemspec
|
|
|
|
|
|
%changelog
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.3.2-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.3.2-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Sat Jun 12 2010 Gerd Pokorra <gp@zimt.uni-siegen.de> - 1.6.3.2-4
|
|
- removed the unused macro "ruby_sitelib"
|
|
- put the file rdiscount.gemspec to the doc-subpackage
|
|
- add dependency to the main package for the doc-subpackage
|
|
|
|
* Thu Jun 10 2010 Gerd Pokorra <gp@zimt.uni-siegen.de> - 1.6.3.2-3
|
|
- changed ruby(abi) dependency to be strict
|
|
- changed rubygem module related dependency style
|
|
- only arch-dependent files are in "ruby_sitearch"
|
|
- tests are now successful; "rake test:unit" is used
|
|
- "geminstdir" macro is used when possible
|
|
- "geminstdir" is owned by package
|
|
- ext/ subdirectory is removed form "buildroot" during install; no exclude
|
|
|
|
* Tue Jun 08 2010 Gerd Pokorra <gp@zimt.uni-siegen.de> - 1.6.3.2-2
|
|
- files under ext/ subdirectory excluded
|
|
- remove BuildRoot tag
|
|
- add "Requires: ruby(abi) >= 1.8"
|
|
- use global macro instead of define macro
|
|
- changed license tag
|
|
|
|
* Sun Jun 06 2010 Gerd Pokorra <gp@zimt.uni-siegen.de> - 1.6.3.2-1
|
|
- add "BuildRequires: ruby-devel"
|
|
- Initial package
|