Browse Source

mapge package createion

Signed-off-by: fpdpbuilder_pel7x64builder0 <fpdpbuilder@powerel.org>
fpdpbuilder_pel7x64builder0 7 months ago
parent
commit
7ca674b3d6
2 changed files with 266 additions and 0 deletions
  1. 46
    0
      SOURCES/mpage25-config.patch
  2. 220
    0
      SPECS/mpage.spec

+ 46
- 0
SOURCES/mpage25-config.patch View File

@@ -0,0 +1,46 @@
1
+diff -up mpage-2.5.6/Makefile.config mpage-2.5.6/Makefile
2
+--- mpage-2.5.6/Makefile.config	2004-05-30 21:38:31.000000000 +0200
3
++++ mpage-2.5.6/Makefile	2009-03-27 11:11:14.652186064 +0100
4
+@@ -40,7 +40,7 @@ CC=gcc
5
+ #  See glob.c for all possibilities
6
+ #
7
+ # PAGESIZE=Letter
8
+-PAGESIZE=A4
9
++PAGESIZE=Letter
10
+ 
11
+ #
12
+ # Define your spooler type
13
+@@ -50,7 +50,7 @@ PAGESIZE=A4
14
+ SPOOL_TYPE=BSD_SPOOLER
15
+ 
16
+ # PREFIX=e:/usr		# OS/2 type
17
+-PREFIX=/usr/local
18
++PREFIX=/usr
19
+ #PREFIX=/usr
20
+ BINDIR=$(PREFIX)/bin
21
+ LIBDIR=$(PREFIX)/share
22
+@@ -73,7 +73,7 @@ SHEETMARGIN=18 
23
+ #
24
+ DEFAULT_DUPLEX=0
25
+ 
26
+-DEFS = -DPAGE_DEF=\"${PAGESIZE}\" -DLIBDIR=\"${LIBDIR}/mpage\" -DDEFAULT_ENCODING=${ENCODING} -DDEFAULT_DUPLEX=${DEFAULT_DUPLEX} -DDEFAULTSMARGIN=${SHEETMARGIN} -DSPOOLER=${SPOOL_TYPE} # -DKANJI
27
++DEFS = -DPAGE_DEF=\"${PAGESIZE}\" -DLIBDIR=\"${LIBDIR}/mpage\" -DDEFAULT_ENCODING=${ENCODING} -DDEFAULT_DUPLEX=${DEFAULT_DUPLEX} -DDEFAULTSMARGIN=${SHEETMARGIN} -DSPOOLER=${SPOOL_TYPE} -DKANJI
28
+ 
29
+ 
30
+ ############################################################################
31
+@@ -107,7 +107,7 @@ O = .o
32
+ # If you are using gcc, you probably don't need to change anything here.
33
+ 
34
+ # Linux:
35
+-CFLAGS = -O2 -s $(DEFS) -Wall
36
++CFLAGS = $(RPM_OPT_FLAGS) $(DEFS) -Wall
37
+ 
38
+ # AIX (xlC on aix 4):
39
+ #CFLAGS = -O2 -s $(DEFS)
40
+@@ -183,5 +183,4 @@ install:
41
+ 	if [ ! -d $(MANDIR) ] ; then mkdir -p $(MANDIR) ; fi
42
+ 	cp mpage$(E) $(BINDIR)
43
+ 	cp mpage.1 $(MANDIR)
44
+-	-cp Encodings/* $(LIBDIR)/mpage
45
+-	-chmod 644 $(LIBDIR)/mpage/*
46
++	install -p -m 644 Encodings/* $(LIBDIR)/mpage

+ 220
- 0
SPECS/mpage.spec View File

@@ -0,0 +1,220 @@
1
+Summary: A tool for printing multiple pages of text on each printed page
2
+Name: mpage
3
+Version: 2.5.6
4
+Release: 14%{dist}
5
+License: GPLv2+
6
+Url: http://www.mesa.nl/pub/mpage/
7
+Group: Applications/Publishing
8
+Source: ftp://ftp.mesa.nl/pub/mpage/mpage-%{version}.tgz
9
+Patch0: mpage25-config.patch
10
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 
11
+
12
+%description
13
+The mpage utility takes plain text files or PostScript(TM) documents
14
+as input, reduces the size of the text, and prints the files on a
15
+PostScript printer with several pages on each sheet of paper. Mpage is
16
+very useful for viewing large printouts without using up lots of
17
+paper. Mpage supports many different layout options for the printed
18
+pages.
19
+
20
+%prep
21
+%setup -q
22
+%patch0 -p1 -b .config
23
+
24
+%build
25
+make BINDIR=%{_bindir} LIBDIR=%{_datadir} MANDIR=%{_mandir}/man1
26
+
27
+iconv -f iso-8859-2 -t utf-8 CHANGES > CHANGES.tmp && \
28
+touch -r CHANGES CHANGES.tmp && mv CHANGES.tmp CHANGES
29
+
30
+%install
31
+rm -rf $RPM_BUILD_ROOT
32
+mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/mpage,%{_mandir}/man1}
33
+
34
+make PREFIX=$RPM_BUILD_ROOT/%{_prefix} BINDIR=$RPM_BUILD_ROOT/%{_bindir} \
35
+	LIBDIR=$RPM_BUILD_ROOT/%{_datadir} \
36
+	MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 \
37
+	install
38
+
39
+%clean
40
+rm -rf $RPM_BUILD_ROOT
41
+
42
+%files
43
+%defattr(-,root,root)
44
+%doc CHANGES Copyright README NEWS TODO FAQ COPYING COPYING.LESSER
45
+%{_bindir}/mpage
46
+%{_mandir}/man1/mpage.*
47
+%{_datadir}/mpage
48
+
49
+%changelog
50
+* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.5.6-14
51
+- Mass rebuild 2014-01-24
52
+
53
+* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.5.6-13
54
+- Mass rebuild 2013-12-27
55
+
56
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-12
57
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
58
+
59
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-11
60
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
61
+
62
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-10
63
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
64
+
65
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-9
66
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
67
+
68
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-8
69
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
70
+
71
+* Fri Mar 27 2009 Michal Hlavinka <mhlavink@redhat.com> - 2.5.6-7
72
+- fix doc in file section
73
+
74
+* Fri Mar 27 2009 Michal Hlavinka <mhlavink@redhat.com> - 2.5.6-6
75
+- preserve time stamps
76
+
77
+* Fri Mar 27 2009 Michal Hlavinka <mhlavink@redhat.com> - 2.5.6-5
78
+- clean-up for merge review
79
+
80
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-4
81
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
82
+
83
+* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.5.6-3
84
+- fix license tag
85
+
86
+* Wed Feb 13 2008 Tomas Smetana <tsmetana@redhat.com> - 2.5.6-2
87
+- rebuild (gcc-4.3)
88
+
89
+* Tue Jan 15 2008 Tomas Smetana <tsmetana@redhat.com> - 2.5.6-1
90
+- new upstream version
91
+
92
+* Thu Aug 23 2007 Martin Bacovsky <mbacovsk@redhat.com> - 2.5.5-1
93
+- upgrade to new upstream version 2.5.5
94
+
95
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4-7.1
96
+- rebuild
97
+
98
+* Fri May 12 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 2.5.4-7
99
+- Applied patch for font-restriction to avoid problems with gs (bug #191459)
100
+
101
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4-6.1
102
+- bump again for double-long bug on ppc(64)
103
+
104
+* Wed Feb 08 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 2.5.4-6
105
+- Fixed page scaling (bug #173276) and modified the manpage
106
+  (the bug was mentioned in the manpage)
107
+
108
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4-5.2
109
+- rebuilt for new gcc4.1 snapshot and glibc changes
110
+
111
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
112
+- rebuilt
113
+
114
+* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-5
115
+- Rebuild for new GCC.
116
+
117
+* Thu Feb 17 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-4
118
+- Fixed build with GCC 4.
119
+
120
+* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-3
121
+- Rebuilt.
122
+
123
+* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
124
+- rebuilt
125
+
126
+* Tue Jun  1 2004 Tim Waugh <twaugh@redhat.com> 2.5.4-1
127
+- 2.5.4.
128
+
129
+* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
130
+- rebuilt
131
+
132
+* Mon Jun 23 2003 Tim Waugh <twaugh@redhat.com> 2.5.3-6
133
+- Fix header output (bug #97764).
134
+- Fix UTF-8 patch (bug #97763).
135
+- Fix license tag (bug #97763).
136
+
137
+* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
138
+- rebuilt
139
+
140
+* Thu May  8 2003 Tim Waugh <twaugh@redhat.com> 2.5.3-4
141
+- Handle UTF-8 CJK (bug #90436).
142
+
143
+* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 2.5.3-3
144
+- rebuilt
145
+
146
+* Wed Nov  6 2002 Tim Waugh <twaugh@redhat.com> 2.5.3-2
147
+- Fix segfault on malformed arguments (bug #77417).
148
+- Removed unused patches.
149
+
150
+* Sun Oct 20 2002 Tim Waugh <twaugh@redhat.com> 2.5.3-1
151
+- 2.5.3 (bug #74401, bug #70826).
152
+
153
+* Tue Jul 16 2002 Tim Waugh <twaugh@redhat.com> 2.5.2-4
154
+- Fix segfault when MPAGE is set (bug #68701).
155
+
156
+* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 2.5.2-3
157
+- automated rebuild
158
+
159
+* Fri Jun 14 2002 Tim Waugh <twaugh@redhat.com> 2.5.2-2
160
+- s/Copyright:/License:/.
161
+- Don't explicitly strip binaries (bug #62564).
162
+- Fix -H option (bug #57105).
163
+
164
+* Wed Apr 24 2002 Florian La Roche <Florian.LaRoche@redhat.de>
165
+- update to 2.5.2
166
+
167
+* Sat Apr 13 2002 Tim Powers <timp@redhat.com>
168
+- bump release and rebuild
169
+
170
+* Thu Nov  8 2001 Bill Nottingham <notting@redhat.com>
171
+- don't segfault if run in a nonexistant locale (#55900)
172
+
173
+* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
174
+- Bump release + rebuild.
175
+
176
+* Wed Apr 11 2001 Bill Nottingham <notting@redhat.com>
177
+- only output japanese if we're running in japanese (#34882)
178
+
179
+* Wed Jan 10 2001 Bill Nottingham <notting@redhat.com>
180
+- actually *apply the patch*
181
+
182
+* Mon Jan  8 2001 Bill Nottingham <notting@redhat.com>
183
+- add patch to use mkstemp
184
+
185
+* Mon Dec 18 2000 Bill Nottingham <notting@redhat.com>
186
+- don't change the default papersize
187
+
188
+* Mon Dec 18 2000 Yukihiro Nakai <ynakai@redhat.com>
189
+- Add a Japanese patch.
190
+
191
+* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
192
+- automatic rebuild
193
+
194
+* Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
195
+- Hm. 2.5.1pre hasn't been touched in two years. I guess that's 'stable'.
196
+- add a bugfix patch from debian.
197
+
198
+* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
199
+- handle compressed man pages
200
+
201
+* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
202
+- auto rebuild in the new build environment (release 7)
203
+
204
+* Tue Jan 24 1999 Michael Maher <mike@redhat.com>
205
+- changed group
206
+
207
+* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
208
+- 6.0 build stuff.
209
+
210
+* Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
211
+- build root
212
+
213
+* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
214
+- translations modified for de, fr, tr
215
+
216
+* Wed Oct 15 1997 Michael Fulbright <msf@redhat.com>
217
+- (Re)applied patch to correctly print dvips output.
218
+
219
+* Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
220
+- built against glibc