forked from ifad/pdfbeads
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpdfbeads.gemspec
61 lines (60 loc) · 2.74 KB
/
pdfbeads.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
######################################################################
#
# PDFBeads -- convert scanned images to a single PDF file
# Version 1.1.2
#
# Unlike other PDF creation tools, this utility attempts to implement
# the approach typically used for DjVu books. Its key feature is
# separating scanned text (typically black, but indexed images with
# a small number of colors are also accepted) from halftone images
# placed into a background layer.
#
# Copyright (C) 2010 Alexey Kryukov ([email protected]).
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#######################################################################
spec = Gem::Specification.new do |s|
s.name = 'pdfbeads'
s.version = '1.1.2'
s.summary = "PDFBeads -- convert scanned images to a single PDF file."
s.description = <<-EOF
PDFBeads is a small utility written in Ruby which takes scanned
page images and converts them into a single PDF file. Unlike other
PDF creation tools, PDFBeads attempts to implement the approach
typically used for DjVu books. Its key feature is separating scanned
text (typically black, but indexed images with a small number of
colors are also accepted) from halftone pictures. Each type of
graphical data is encoded into its own layer with a specific
compression method and resolution.
EOF
# Unfortunately I can't use gem to control package dependencies,
# because in some Linux distributions (e.g. Ubuntu) RMagick is installed
# into the main Ruby directory, and so gem knows nothing about it.
# s.add_dependency('rmagick', '>= 2.13.0')
s.requirements << 'RMagick, v2.13.0 or greater'
s.requirements << 'Hpricot, v0.8.3 or greater'
s.requirements << 'PDF::Reader, v1.0.0 or greater'
s.executables = [ 'pdfbeads' ]
s.default_executable = 'pdfbeads'
s.files = Dir['lib/**/*.rb'] + Dir['bin/*'] + Dir['doc/*.html'] +
['README', 'COPYING', 'ChangeLog']
s.extra_rdoc_files = ['README', 'COPYING', 'ChangeLog']
s.author = "Alexey Kryukov"
s.email = "[email protected]"
s.rubyforge_project = 'PDFBeads'
s.homepage = "http://pdfbeads.rubyforge.org"
end