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