From 3c50b9b3fed389e376284c8abbc5aefba9b1577a Mon Sep 17 00:00:00 2001 From: Gerd Pokorra Date: Mon, 21 Jun 2010 06:55:14 +0000 Subject: [PATCH] Initial files for rdiscount-1.6.3.2.gem --- .cvsignore | 1 + import.log | 1 + rubygem-rdiscount.spec | 129 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 132 insertions(+) create mode 100644 import.log create mode 100644 rubygem-rdiscount.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c1ca11c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +rdiscount-1.6.3.2.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..06407ec --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-rdiscount-1_6_3_2-4_fc12:HEAD:rubygem-rdiscount-1.6.3.2-4.fc12.src.rpm:1277102397 diff --git a/rubygem-rdiscount.spec b/rubygem-rdiscount.spec new file mode 100644 index 0000000..2833fef --- /dev/null +++ b/rubygem-rdiscount.spec @@ -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 - 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 - 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 - 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 - 1.6.3.2-1 +- add "BuildRequires: ruby-devel" +- Initial package diff --git a/sources b/sources index e69de29..e85abdb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4dd15db2e2a3def6ed41d13f7063f925 rdiscount-1.6.3.2.gem