]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- massive attack: adding Source-md5
[packages/a2ps.git] / a2ps.spec
1 Summary:        Text to Postscript filter
2 Summary(ja):    ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
3 Summary(pl):    Filtr text/plain do Postscriptu
4 Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷
5 Name:           a2ps
6 Version:        4.13b
7 Release:        23
8 License:        GPL
9 Group:          Applications/Text
10 Source0:        ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
11 # Source0-md5:  0c8e0c31b08c14f7a7198ce967eb3281
12 Source1:        ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
13 # Source1-md5:  fee1456d0e6e94af4fc5b5a1bb9687b7
14 Source2:        ogonkify.1.pl
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-security.patch
17 Patch2:         %{name}-etc.patch
18 Patch3:         %{name}-flex.patch
19 Patch4:         %{name}-conf.patch
20 Patch5:         %{name}-glibcpaper.patch
21 Patch6:         %{name}-autoenc.patch
22 Patch7:         %{name}-i18n.patch
23 Patch8:         %{name}-ogonkify-xfig-fix.patch
24 URL:            http://www.inf.enst.fr/~demaille/a2ps/
25 BuildRequires:  flex
26 Prereq:         /sbin/ldconfig
27 Requires:       psutils
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _sysconfdir     /etc/a2ps
31
32 %description
33 a2ps is a text to PostScript filter with pretty-printing capabilities.
34 It includes support for a wide number of programming languages,
35 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
36 (for the interface). It has also the ability to delegate the
37 processing of some files to other applications, letting you print DVI,
38 PostScript etc. with the very same interface.
39
40 %description -l pl
41 A2ps jest programem pozwalaj±cym na ³adne drukowanie plików
42 tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
43 programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
44 papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
45 przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
46 wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
47 Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
48 PostScript zawieraj±cy polskie znaki.
49
50 %package devel
51 Summary:        Header files and development documentation for a2ps
52 Summary(pl):    Pliki nag³ówkowe i dokumentacja do a2ps
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}
55
56 %description devel
57 Header files and development documentation for a2ps.
58
59 %description devel -l pl
60 Pliki nag³ówkowe i dokumentacja do a2ps.
61
62 %package static
63 Summary:        a2ps static libraries
64 Summary(pl):    Biblioteki statyczne do a2ps
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}
67
68 %description static
69 a2ps static libraries.
70
71 %description static -l pl
72 Biblioteki statyczne do a2ps.
73
74 %prep
75 %setup  -q -n %{name}-4.13 -a 1
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79 %patch3 -p1
80 %patch4 -p1
81 %patch5 -p1
82 %patch6 -p1
83 %patch7 -p1
84 %patch8 -p0
85
86 %build
87 %configure2_13 \
88         --with-gnu-gettext \
89         --with-medium=_glibc  \
90         --with-encoding=latin1 \
91         --enable-shared \
92         --enable-kanji
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
98         $RPM_BUILD_ROOT%{_mandir}/pl/man1
99
100 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
101
102 mv -f tmp contrib/emacs/Makefile
103
104 %{__make} install DESTDIR=$RPM_BUILD_ROOT
105
106 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
107 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
108 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
109
110 %find_lang %{name}
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post
116 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
117 /sbin/ldconfig
118
119 %postun
120 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
121 /sbin/ldconfig
122
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README THANKS
126
127 %dir %{_sysconfdir}
128 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
129 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
130
131 %attr(755,root,root) %{_bindir}/*
132 %attr(755,root,root) %{_libdir}/lib*.so.*.*
133 %{_mandir}/man1/*
134 %lang(pl) %{_mandir}/pl/man1/*
135 %{_infodir}/a2ps*info*
136 %{_infodir}/ogonkify*info*
137
138 %dir %{_datadir}/a2ps
139 %dir %{_datadir}/a2ps/afm
140 %{_datadir}/a2ps/afm/*.afm
141 %{_datadir}/a2ps/afm/*.map
142 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
143
144 %{_datadir}/a2ps/encoding
145 %{_datadir}/a2ps/fonts
146 %{_datadir}/a2ps/ppd
147 %{_datadir}/a2ps/ps
148 %{_datadir}/a2ps/sheets
149
150 %dir %{_datadir}/ogonkify
151 %{_datadir}/ogonkify/*.enc
152 %{_datadir}/ogonkify/*.ps
153 %{_datadir}/ogonkify/afm
154 %{_datadir}/ogonkify/fonts
155
156 %files devel
157 %defattr(644,root,root,755)
158 %{_libdir}/lib*.la
159 %attr(755,root,root) %{_libdir}/lib*.so
160 %{_includedir}/*
161
162 %files static
163 %defattr(644,root,root,755)
164 %{_libdir}/lib*.a
This page took 0.049821 seconds and 4 git commands to generate.