[rubygem-prawn] Initial import

Josef Stribny jstribny at fedoraproject.org
Fri May 17 12:14:16 UTC 2013


commit 4a3a987543a973f73683dced6e115728b7c98ef5
Author: Josef Stribny <jstribny at redhat.com>
Date:   Fri May 17 14:14:02 2013 +0200

    Initial import

 .gitignore         |    1 +
 rubygem-prawn.spec |  145 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 147 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c971069 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/prawn-1.0.0.rc2.gem
diff --git a/rubygem-prawn.spec b/rubygem-prawn.spec
new file mode 100644
index 0000000..e2c9623
--- /dev/null
+++ b/rubygem-prawn.spec
@@ -0,0 +1,145 @@
+# Generated from prawn-0.12.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name prawn
+%global mainver 1.0.0
+%global prever .rc2
+%global release 4
+%{?prever:
+%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{mainver}%{?prever}
+%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}
+%global gem_cache %{gem_dir}/cache/%{gem_name}-%{mainver}%{?prever}.gem
+%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{mainver}%{?prever}.gemspec
+}
+
+Summary: A fast and nimble PDF generator for Ruby
+Name: rubygem-%{gem_name}
+Version: %{mainver}
+Release: %{?prever:0.}%{release}%{?prever}%{?dist}
+Group: Development/Languages
+# afm files are licensed by APAFML, the rest of package is GPLv2 or GPLv3 or Ruby
+License: (GPLv2 or GPLv3 or Ruby) and APAFML
+URL: http://prawn.majesticseacreature.com
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}%{?prever}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems) >= 1.3.6
+Requires: rubygem(pdf-reader) >= 0.9.0
+Requires: rubygem(pdf-reader) < 2.0
+Requires: rubygem(pdf-inspector) >= 1.0.2
+Requires: rubygem(pdf-inspector) < 1.1.0
+Requires: rubygem(ttfunk) => 1.0.2
+Requires: rubygem(ttfunk) < 1.1
+Requires: rubygem(ruby-rc4)
+Requires: rubygem(afm)
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel >= 1.3.6
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(ttfunk)
+BuildRequires: rubygem(mocha)
+BuildRequires: rubygem(pdf-reader) >= 0.9.0
+BuildRequires: rubygem(pdf-reader) < 2.0
+BuildRequires: rubygem(pdf-inspector) >= 1.0.2
+BuildRequires: rubygem(pdf-inspector) < 1.1.0
+BuildRequires: rubygem(afm)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}-%{release}
+
+%description
+Prawn is a pure Ruby PDF generation library that provides a lot of great
+functionality while trying to remain simple and reasonably performant.
+Here are some of the important features we provide:
+
+- Vector drawing support, including lines, polygons, curves, ellipses, etc.
+- Extensive text rendering support, including flowing text and limited inline
+  formatting options.
+- Support for both PDF builtin fonts as well as embedded TrueType fonts
+- A variety of low level tools for basic layout needs, including a simple
+  grid system
+- PNG and JPG image embedding, with flexible scaling options
+- Reporting tools for rendering complex data tables, with pagination support
+- Security features including encryption and password protection
+- Tools for rendering repeatable content (i.e headers, footers, and page
+  numbers)
+- Comprehensive internationalization features, including full support for UTF-8
+  based fonts, right-to-left text rendering, fallback font support,
+  and extension points for customizable text wrapping.
+- Support for PDF outlines for document navigation
+- Low level PDF features, allowing users to create custom extensions
+  by dropping down all the way to the PDF object tree layer.
+  (Mostly useful to those with knowledge of the PDF specification)
+- Lots of other stuff!
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+%gem_install -n %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+sed -i '/^require "bundler"/d' ./spec/spec_helper.rb
+sed -i '/^Bundler.setup/d' ./spec/spec_helper.rb
+rspec spec
+popd
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/COPYING
+%doc %{gem_instdir}/GPLv2
+%doc %{gem_instdir}/GPLv3
+%exclude %{gem_instdir}/%{gem_name}.gemspec
+%{gem_instdir}/data/encodings
+%doc %{gem_instdir}/data/fonts/MustRead.html
+%{gem_instdir}/data/fonts/*.afm
+# Agreed upon with upstream, needed for testing
+# https://github.com/prawnpdf/prawn/pull/490
+%exclude %{gem_instdir}/data/fonts/*.dfont
+%exclude %{gem_instdir}/data/fonts/*.ttf
+
+# This is already changed by upstream in master, needed for testing in rc2
+# https://github.com/prawnpdf/prawn/commit/1f8b6c1d12c0754f59ec71aa521bba0ffe8eaa91
+%exclude %{gem_instdir}/data/images/rails.png
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Gemfile
+%{gem_instdir}/Rakefile
+%{gem_instdir}/spec
+%doc %{gem_instdir}/manual
+%{gem_instdir}/data/pdfs
+%{gem_instdir}/data/images
+%{gem_instdir}/data/*.txt
+
+%changelog
+* Fri May 16 2013 Josef Stribny <jstribny at redhat.com> - 1.0.0-0.4.rc2
+- Fixed license considering .afm
+
+* Thu May 16 2013 Josef Stribny <jstribny at redhat.com> - 1.0.0-0.3.rc2
+- *.ttf fonts and rails.png removal
+
+* Tue Apr 16 2013 Josef Stribny <jstribny at redhat.com> - 1.0.0-0.2.rc2
+- Move /data to main package
+
+* Mon Apr 15 2013 Josef Stribny <jstribny at redhat.com> - 1.0.0-0.1.rc2
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+- Update to Prawn 1.0.0.rc2
+
+* Tue Dec 04 2012 Josef Stribny <jstribny at redhat.com> - 0.12.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b7bbe19 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b6685ac18fdd566290f5e1f21e6871a6  prawn-1.0.0.rc2.gem


More information about the scm-commits mailing list