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