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