From 0a4b3a6aeac4ab964bf6213dc9b0af2f0a62577b Mon Sep 17 00:00:00 2001 From: cvs2git Date: Wed, 27 Jun 2001 16:11:40 +0000 Subject: [PATCH] This commit was manufactured by cvs2git to create branch 'PLD_1_0_freez'. Sprout from master 2001-06-27 16:11:40 UTC Jakub Bogusz '- info patch: fixed ogonkify.texi (one tab too much)' Delete: a2ps-security.patch a2ps.spec --- a2ps-security.patch | 67 ------------------ a2ps.spec | 166 -------------------------------------------- 2 files changed, 233 deletions(-) delete mode 100644 a2ps-security.patch delete mode 100644 a2ps.spec diff --git a/a2ps-security.patch b/a2ps-security.patch deleted file mode 100644 index ce4b6cf..0000000 --- a/a2ps-security.patch +++ /dev/null @@ -1,67 +0,0 @@ -diff -ur a2ps-4.13.orig/lib/routines.c a2ps-4.13/lib/routines.c ---- a2ps-4.13.orig/lib/routines.c Sat Oct 16 06:46:37 1999 -+++ a2ps-4.13/lib/routines.c Fri Jan 5 12:51:20 2001 -@@ -242,3 +242,50 @@ - /* Don't complain if you can't unlink. Who cares of a tmp file? */ - unlink (filename); - } -+ -+/* -+ * Securely generate a temp file, and make sure it gets -+ * deleted upon exit. -+ */ -+static char ** tempfiles; -+static unsigned ntempfiles; -+ -+static void -+cleanup_tempfiles() -+{ -+ while (ntempfiles--) -+ unlink(tempfiles[ntempfiles]); -+} -+ -+char * -+safe_tempnam(const char *pfx) -+{ -+ char *dirname, *filename; -+ int fd; -+ -+ if (!(dirname = getenv("TMPDIR"))) -+ dirname = "/tmp"; -+ -+ tempfiles = (char **) realloc(tempfiles, -+ (ntempfiles+1) * sizeof(char *)); -+ if (tempfiles == NULL) -+ return NULL; -+ -+ filename = malloc(strlen(dirname) + strlen(pfx) + sizeof("/XXXXXX")); -+ if (!filename) -+ return NULL; -+ -+ sprintf(filename, "%s/%sXXXXXX", dirname, filename); -+ -+ if ((fd = mkstemp(filename)) < 0) { -+ free(filename); -+ return NULL; -+ } -+ close(fd); -+ -+ if (ntempfiles == 0) -+ atexit(cleanup_tempfiles); -+ tempfiles[ntempfiles++] = filename; -+ -+ return filename; -+} -diff -ur a2ps-4.13.orig/lib/routines.h a2ps-4.13/lib/routines.h ---- a2ps-4.13.orig/lib/routines.h Mon Oct 18 22:24:41 1999 -+++ a2ps-4.13/lib/routines.h Fri Jan 5 12:37:53 2001 -@@ -255,7 +255,8 @@ - /* If _STR_ is not defined, give it a tempname in _TMPDIR_ */ - #define tempname_ensure(Str) \ - do { \ -- (Str) = (Str) ? (Str) : tempnam (NULL, "a2_"); \ -+ (Str) = (Str) ? (Str) : safe_tempnam("a2_"); \ - } while (0) -+char * safe_tempnam(const char *); - - #endif diff --git a/a2ps.spec b/a2ps.spec deleted file mode 100644 index 8c3f274..0000000 --- a/a2ps.spec +++ /dev/null @@ -1,166 +0,0 @@ -Summary: Text to Postscript filter -Summary(pl): Filtr text/plain do Postscriptu -Name: a2ps -Version: 4.13b -Release: 16 -License: GPL -Group: Applications/Text -Group(de): Applikationen/Text -Group(fr): Utilitaires/Texte -Group(pl): Aplikacje/Tekst -Source0: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz -Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz -Patch0: %{name}-info.patch -Patch1: %{name}-security.patch -Patch2: %{name}-etc.patch -Patch3: %{name}-flex.patch -Patch4: %{name}-conf.patch -Patch5: %{name}-glibcpaper.patch -Patch6: %{name}-autoenc.patch -Patch7: %{name}-i18n.patch -URL: http://www.inf.enst.fr/~demaille/a2ps/ -Prereq: /sbin/ldconfig -Requires: psutils -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) - -%define _sysconfdir /etc/a2ps - -%description -a2ps is a text to PostScript filter with pretty-printing capabilities. -It includes support for a wide number of programming languages, -encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages -(for the interface). It has also the ability to delegate the -processing of some files to other applications, letting you print DVI, -PostScript etc. with the very same interface. - -%description -l pl -A2ps jest programem pozwalajaj±cym na ³adne drukowanie plików -tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków -programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci -papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e -przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na -wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia. -Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany -PostScript zawieraj±cy polskie znaki. - -%package devel -Summary: Header files and development documentation for a2ps -Summary(pl): Pliki nag³ówkowe i dokunentacja do a2ps -Group: Libraries -Group(de): Libraries -Group(es): Bibliotecas -Group(fr): Librairies -Group(pl): Biblioteki -Requires: %{name} = %{version} - -%description devel -Header files and development documentation for a2ps. - -%description devel -l pl -Pliki nag³ówkowe i dokumentacja do a2ps. - -%package static -Summary: a2ps static libraries -Summary(pl): Biblioteki statyczne do a2ps -Group: Libraries -Group(de): Libraries -Group(es): Bibliotecas -Group(fr): Librairies -Group(pl): Biblioteki -Requires: %{name}-devel = %{version} - -%description static -a2ps static libraries. - -%description static -l pl -Biblioteki statyczne do a2ps. - -%prep -%setup -q -n %{name}-4.13 -a 1 -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 - -%build -%configure \ - --with-gnu-gettext \ - --with-medium=_glibc \ - --with-encoding=latin1 \ - --enable-shared \ - --enable-kanji -%{__make} - -%install -rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} - -perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp - -mv -f tmp contrib/emacs/Makefile - -%{__make} install DESTDIR=$RPM_BUILD_ROOT - -gzip -9nf AUTHORS ChangeLog NEWS README THANKS - -install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm -install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts - -%find_lang %{name} - -%clean -rm -rf $RPM_BUILD_ROOT - -%post -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 -/sbin/ldconfig - -%postun -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 -/sbin/ldconfig - -%files -f %{name}.lang -%defattr(644,root,root,755) -%doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz - -%dir %{_sysconfdir} -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg - -%attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/lib*.so.*.* -%{_mandir}/man1/* -%{_infodir}/a2ps*info* -%{_infodir}/ogonkify*info* - -%dir %{_datadir}/a2ps -%dir %{_datadir}/a2ps/afm -%{_datadir}/a2ps/afm/*.afm -%{_datadir}/a2ps/afm/*.map -%attr(755,root,root) %{_datadir}/a2ps/afm/*.sh - -%{_datadir}/a2ps/encoding -%{_datadir}/a2ps/fonts -%{_datadir}/a2ps/ppd -%{_datadir}/a2ps/ps -%{_datadir}/a2ps/sheets - -%dir %{_datadir}/ogonkify -%{_datadir}/ogonkify/*.enc -%{_datadir}/ogonkify/*.ps -%{_datadir}/ogonkify/afm -%{_datadir}/ogonkify/fonts - -%files devel -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/lib*.la -%attr(755,root,root) %{_libdir}/lib*.so -%{_includedir}/* - -%files static -%defattr(644,root,root,755) -%{_libdir}/lib*.a -- 2.43.0