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