My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 73 attachment: 0001-Add-initial-debian-packaging.patch (5.0 KB)

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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
From 1e6b364c90ceb4a182042a601cd12793581e6187 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <rbrito@ime.usp.br>
Date: Fri, 15 Feb 2013 23:31:27 -0200
Subject: [PATCH] Add initial debian packaging.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

For utilities that are not yet packaged in Debian/Ubuntu, we use a "light"
dependency in the form of Suggests, instead of Depends or Recommends.

In fact, for packages that are non-free according to Debian's DFSG, we have
to put them on Suggests or the whole program becomes non-free or contrib.

These (and further notes) should be put in a debian/README.Debian file, when
appropriate.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
---
trunk/debian/changelog | 5 +++++
trunk/debian/compat | 1 +
trunk/debian/control | 29 +++++++++++++++++++++++++++++
trunk/debian/copyright | 29 +++++++++++++++++++++++++++++
trunk/debian/dirs | 1 +
trunk/debian/rules | 6 ++++++
trunk/debian/source/format | 1 +
trunk/debian/watch | 2 ++
8 files changed, 74 insertions(+)
create mode 100644 trunk/debian/changelog
create mode 100644 trunk/debian/compat
create mode 100644 trunk/debian/control
create mode 100644 trunk/debian/copyright
create mode 100644 trunk/debian/dirs
create mode 100755 trunk/debian/rules
create mode 100644 trunk/debian/source/format
create mode 100644 trunk/debian/watch

diff --git a/trunk/debian/changelog b/trunk/debian/changelog
new file mode 100644
index 0000000..964a19e
--- /dev/null
+++ b/trunk/debian/changelog
@@ -0,0 +1,5 @@
+pdfsizeopt (0.0+svn2013.02.15-1~pre0) UNRELEASED; urgency=low
+
+ * Initial packaging. (Closes: #nnn)
+
+ -- Rogério Brito <rbrito@ime.usp.br> Fri, 15 Feb 2013 22:27:05 -0200
diff --git a/trunk/debian/compat b/trunk/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/trunk/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/trunk/debian/control b/trunk/debian/control
new file mode 100644
index 0000000..163e1bf
--- /dev/null
+++ b/trunk/debian/control
@@ -0,0 +1,29 @@
+Source: pdfsizeopt
+Priority: optional
+Section: text
+Maintainer: Rogério Brito <rbrito@ime.usp.br>
+Homepage: https://code.google.com/p/pdfsizeopt/
+Build-Depends:
+ debhelper (>= 9),
+ python (<< 3),
+ python (>= 2.6)
+Standards-Version: 3.9.3
+
+Package: pdfsizeopt
+Architecture: all
+Depends:
+ ghostscript,
+ png22pnm | netpbm,
+ python (>= 2.6),
+ sam2p (>= 0.49),
+ ${misc:Depends}
+Recommends:
+ jbig2enc
+Suggests:
+ multivalent,
+ pngout
+Description: size optimizer for PDF files
+ pdfsizeopt is a program for converting large PDF files to small ones. More
+ specifically, pdfsizeopt is a command-line application and a collection of
+ best practices to optimize the size of PDF files, with focus on PDFs
+ created from TeX and LaTeX documents.
diff --git a/trunk/debian/copyright b/trunk/debian/copyright
new file mode 100644
index 0000000..76b9617
--- /dev/null
+++ b/trunk/debian/copyright
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pdfsizeopt
+Upstream-Contact: https://code.google.com/p/pdfsizeopt
+Source: http://pdfsizeopt.googlecode.com/svn/trunk/
+
+Files: *
+Copyright: © 2009-2012 Peter Szabo <pts@fazekas.hu>
+License: GPL-2+
+
+Files: debian/*
+Copyright: © 2013, Rogério Theodoro de Brito <rbrito@ime.usp.br>.
+License: GPL-2+
+
+License: GPL-2+
+ This package 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 package 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, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/trunk/debian/dirs b/trunk/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/trunk/debian/dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/trunk/debian/rules b/trunk/debian/rules
new file mode 100755
index 0000000..8aa09a2
--- /dev/null
+++ b/trunk/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_install:
+ cp pdfsizeopt.py debian/pdfsizeopt/usr/bin/pdfsizeopt
diff --git a/trunk/debian/source/format b/trunk/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/trunk/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/trunk/debian/watch b/trunk/debian/watch
new file mode 100644
index 0000000..9eb5572
--- /dev/null
+++ b/trunk/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://code.google.com/p/pdfsizeopt/downloads/list?can=1 .*/pdfsizeopt-(\d[\d.]*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz)
--
1.7.10.4

Powered by Google Project Hosting