From e3d297ac86ea1403ad7de2e9d7ba84c23da3dfd5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 22 2019 21:12:40 +0000 Subject: import mpage-2.5.6-14.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f84dd8c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mpage-2.5.6.tgz diff --git a/.mpage.metadata b/.mpage.metadata new file mode 100644 index 0000000..d6e3ce1 --- /dev/null +++ b/.mpage.metadata @@ -0,0 +1 @@ +6be20c2892523814198cb12b1689781638a2c230 SOURCES/mpage-2.5.6.tgz diff --git a/SOURCES/mpage25-config.patch b/SOURCES/mpage25-config.patch new file mode 100644 index 0000000..fefc547 --- /dev/null +++ b/SOURCES/mpage25-config.patch @@ -0,0 +1,46 @@ +diff -up mpage-2.5.6/Makefile.config mpage-2.5.6/Makefile +--- mpage-2.5.6/Makefile.config 2004-05-30 21:38:31.000000000 +0200 ++++ mpage-2.5.6/Makefile 2009-03-27 11:11:14.652186064 +0100 +@@ -40,7 +40,7 @@ CC=gcc + # See glob.c for all possibilities + # + # PAGESIZE=Letter +-PAGESIZE=A4 ++PAGESIZE=Letter + + # + # Define your spooler type +@@ -50,7 +50,7 @@ PAGESIZE=A4 + SPOOL_TYPE=BSD_SPOOLER + + # PREFIX=e:/usr # OS/2 type +-PREFIX=/usr/local ++PREFIX=/usr + #PREFIX=/usr + BINDIR=$(PREFIX)/bin + LIBDIR=$(PREFIX)/share +@@ -73,7 +73,7 @@ SHEETMARGIN=18 + # + DEFAULT_DUPLEX=0 + +-DEFS = -DPAGE_DEF=\"${PAGESIZE}\" -DLIBDIR=\"${LIBDIR}/mpage\" -DDEFAULT_ENCODING=${ENCODING} -DDEFAULT_DUPLEX=${DEFAULT_DUPLEX} -DDEFAULTSMARGIN=${SHEETMARGIN} -DSPOOLER=${SPOOL_TYPE} # -DKANJI ++DEFS = -DPAGE_DEF=\"${PAGESIZE}\" -DLIBDIR=\"${LIBDIR}/mpage\" -DDEFAULT_ENCODING=${ENCODING} -DDEFAULT_DUPLEX=${DEFAULT_DUPLEX} -DDEFAULTSMARGIN=${SHEETMARGIN} -DSPOOLER=${SPOOL_TYPE} -DKANJI + + + ############################################################################ +@@ -107,7 +107,7 @@ O = .o + # If you are using gcc, you probably don't need to change anything here. + + # Linux: +-CFLAGS = -O2 -s $(DEFS) -Wall ++CFLAGS = $(RPM_OPT_FLAGS) $(DEFS) -Wall + + # AIX (xlC on aix 4): + #CFLAGS = -O2 -s $(DEFS) +@@ -183,5 +183,4 @@ install: + if [ ! -d $(MANDIR) ] ; then mkdir -p $(MANDIR) ; fi + cp mpage$(E) $(BINDIR) + cp mpage.1 $(MANDIR) +- -cp Encodings/* $(LIBDIR)/mpage +- -chmod 644 $(LIBDIR)/mpage/* ++ install -p -m 644 Encodings/* $(LIBDIR)/mpage diff --git a/SPECS/mpage.spec b/SPECS/mpage.spec new file mode 100644 index 0000000..c96e540 --- /dev/null +++ b/SPECS/mpage.spec @@ -0,0 +1,220 @@ +Summary: A tool for printing multiple pages of text on each printed page +Name: mpage +Version: 2.5.6 +Release: 14%{dist} +License: GPLv2+ +Url: http://www.mesa.nl/pub/mpage/ +Group: Applications/Publishing +Source: ftp://ftp.mesa.nl/pub/mpage/mpage-%{version}.tgz +Patch0: mpage25-config.patch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +%description +The mpage utility takes plain text files or PostScript(TM) documents +as input, reduces the size of the text, and prints the files on a +PostScript printer with several pages on each sheet of paper. Mpage is +very useful for viewing large printouts without using up lots of +paper. Mpage supports many different layout options for the printed +pages. + +%prep +%setup -q +%patch0 -p1 -b .config + +%build +make BINDIR=%{_bindir} LIBDIR=%{_datadir} MANDIR=%{_mandir}/man1 + +iconv -f iso-8859-2 -t utf-8 CHANGES > CHANGES.tmp && \ +touch -r CHANGES CHANGES.tmp && mv CHANGES.tmp CHANGES + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/mpage,%{_mandir}/man1} + +make PREFIX=$RPM_BUILD_ROOT/%{_prefix} BINDIR=$RPM_BUILD_ROOT/%{_bindir} \ + LIBDIR=$RPM_BUILD_ROOT/%{_datadir} \ + MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 \ + install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc CHANGES Copyright README NEWS TODO FAQ COPYING COPYING.LESSER +%{_bindir}/mpage +%{_mandir}/man1/mpage.* +%{_datadir}/mpage + +%changelog +* Fri Jan 24 2014 Daniel Mach - 2.5.6-14 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 2.5.6-13 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 2.5.6-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 2.5.6-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 2.5.6-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 2.5.6-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jul 25 2009 Fedora Release Engineering - 2.5.6-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Mar 27 2009 Michal Hlavinka - 2.5.6-7 +- fix doc in file section + +* Fri Mar 27 2009 Michal Hlavinka - 2.5.6-6 +- preserve time stamps + +* Fri Mar 27 2009 Michal Hlavinka - 2.5.6-5 +- clean-up for merge review + +* Wed Feb 25 2009 Fedora Release Engineering - 2.5.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Aug 11 2008 Tom "spot" Callaway - 2.5.6-3 +- fix license tag + +* Wed Feb 13 2008 Tomas Smetana - 2.5.6-2 +- rebuild (gcc-4.3) + +* Tue Jan 15 2008 Tomas Smetana - 2.5.6-1 +- new upstream version + +* Thu Aug 23 2007 Martin Bacovsky - 2.5.5-1 +- upgrade to new upstream version 2.5.5 + +* Wed Jul 12 2006 Jesse Keating - 2.5.4-7.1 +- rebuild + +* Fri May 12 2006 Jitka Kudrnacova - 2.5.4-7 +- Applied patch for font-restriction to avoid problems with gs (bug #191459) + +* Fri Feb 10 2006 Jesse Keating - 2.5.4-6.1 +- bump again for double-long bug on ppc(64) + +* Wed Feb 08 2006 Jitka Kudrnacova 2.5.4-6 +- Fixed page scaling (bug #173276) and modified the manpage + (the bug was mentioned in the manpage) + +* Tue Feb 07 2006 Jesse Keating - 2.5.4-5.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Mar 2 2005 Tim Waugh 2.5.4-5 +- Rebuild for new GCC. + +* Thu Feb 17 2005 Tim Waugh 2.5.4-4 +- Fixed build with GCC 4. + +* Wed Feb 9 2005 Tim Waugh 2.5.4-3 +- Rebuilt. + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Tue Jun 1 2004 Tim Waugh 2.5.4-1 +- 2.5.4. + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Mon Jun 23 2003 Tim Waugh 2.5.3-6 +- Fix header output (bug #97764). +- Fix UTF-8 patch (bug #97763). +- Fix license tag (bug #97763). + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Thu May 8 2003 Tim Waugh 2.5.3-4 +- Handle UTF-8 CJK (bug #90436). + +* Wed Jan 22 2003 Tim Powers 2.5.3-3 +- rebuilt + +* Wed Nov 6 2002 Tim Waugh 2.5.3-2 +- Fix segfault on malformed arguments (bug #77417). +- Removed unused patches. + +* Sun Oct 20 2002 Tim Waugh 2.5.3-1 +- 2.5.3 (bug #74401, bug #70826). + +* Tue Jul 16 2002 Tim Waugh 2.5.2-4 +- Fix segfault when MPAGE is set (bug #68701). + +* Fri Jun 21 2002 Tim Powers 2.5.2-3 +- automated rebuild + +* Fri Jun 14 2002 Tim Waugh 2.5.2-2 +- s/Copyright:/License:/. +- Don't explicitly strip binaries (bug #62564). +- Fix -H option (bug #57105). + +* Wed Apr 24 2002 Florian La Roche +- update to 2.5.2 + +* Sat Apr 13 2002 Tim Powers +- bump release and rebuild + +* Thu Nov 8 2001 Bill Nottingham +- don't segfault if run in a nonexistant locale (#55900) + +* Sun Jun 24 2001 Elliot Lee +- Bump release + rebuild. + +* Wed Apr 11 2001 Bill Nottingham +- only output japanese if we're running in japanese (#34882) + +* Wed Jan 10 2001 Bill Nottingham +- actually *apply the patch* + +* Mon Jan 8 2001 Bill Nottingham +- add patch to use mkstemp + +* Mon Dec 18 2000 Bill Nottingham +- don't change the default papersize + +* Mon Dec 18 2000 Yukihiro Nakai +- Add a Japanese patch. + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Sat Jun 10 2000 Bill Nottingham +- Hm. 2.5.1pre hasn't been touched in two years. I guess that's 'stable'. +- add a bugfix patch from debian. + +* Thu Feb 3 2000 Bill Nottingham +- handle compressed man pages + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 7) + +* Tue Jan 24 1999 Michael Maher +- changed group + +* Thu Dec 17 1998 Michael Maher +- 6.0 build stuff. + +* Sun Aug 16 1998 Jeff Johnson +- build root + +* Mon Apr 27 1998 Prospector System +- translations modified for de, fr, tr + +* Wed Oct 15 1997 Michael Fulbright +- (Re)applied patch to correctly print dvips output. + +* Mon Jul 21 1997 Erik Troan +- built against glibc