Initial files for rdiscount-1.6.3.2.gem

f38
Gerd Pokorra 15 years ago
parent 77f0fc6ac3
commit 3c50b9b3fe

@ -0,0 +1 @@
rdiscount-1.6.3.2.gem

@ -0,0 +1 @@
rubygem-rdiscount-1_6_3_2-4_fc12:HEAD:rubygem-rdiscount-1.6.3.2-4.fc12.src.rpm:1277102397

@ -0,0 +1,129 @@
# 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: 4%{?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 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

@ -0,0 +1 @@
4dd15db2e2a3def6ed41d13f7063f925 rdiscount-1.6.3.2.gem
Loading…
Cancel
Save