]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
fe75889178687c064c0f8ab4e50d93cb19ea36d1
[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.14
7 Release:        3
8 License:        GPL v3+
9 Group:          Applications/Text
10 Source0:        https://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz
11 # Source0-md5:  781ac3d9b213fa3e1ed0d79f986dc8c7
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}-atan2.patch
27 Patch12:        format-security.patch
28 Patch13:        %{name}-texinfo.patch
29 URL:            http://www.gnu.org/software/a2ps/
30 BuildRequires:  automake
31 BuildRequires:  flex
32 BuildRequires:  gettext-tools
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 for a2ps library
62 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki a2ps
63 Group:          Development/Libraries
64 Requires:       %{name} = %{version}-%{release}
65
66 %description devel
67 Header files for a2ps library.
68
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki a2ps.
71
72 %package static
73 Summary:        a2ps static library
74 Summary(pl.UTF-8):      Biblioteka statyczna a2ps
75 Group:          Development/Libraries
76 Requires:       %{name}-devel = %{version}-%{release}
77
78 %description static
79 a2ps static library.
80
81 %description static -l pl.UTF-8
82 Biblioteka statyczna 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 %patch12 -p1
99 %patch13 -p1
100
101 %{__mv} po/{no,nb}.po
102
103 %build
104 cp -f /usr/share/automake/config.* auxdir
105 %configure \
106         --with-gnu-gettext \
107         --with-medium=_glibc  \
108         --with-encoding=latin1 \
109         --enable-shared \
110         --enable-kanji
111 %{__make}
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
116         $RPM_BUILD_ROOT%{_mandir}/pl/man1
117
118 %{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile
119
120 %{__make} install \
121         DESTDIR=$RPM_BUILD_ROOT
122
123 install i18n-fonts-0.1/afm/*.afm $RPM_BUILD_ROOT%{_datadir}/a2ps/afm
124 install i18n-fonts-0.1/fonts/*.pfb $RPM_BUILD_ROOT%{_datadir}/a2ps/fonts
125 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
126
127 # it doesn't belong here (part of glibc in PLD case)
128 %{__rm} $RPM_BUILD_ROOT%{_infodir}/regex.info
129
130 %find_lang %{name}
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %post
136 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
137 /sbin/ldconfig
138
139 %postun
140 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
141 /sbin/ldconfig
142
143 %files -f %{name}.lang
144 %defattr(644,root,root,755)
145 %doc AUTHORS ChangeLog NEWS README THANKS
146 %dir %{_sysconfdir}
147 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps.cfg
148 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps-site.cfg
149 %attr(755,root,root) %{_bindir}/a2ps
150 %attr(755,root,root) %{_bindir}/card
151 %attr(755,root,root) %{_bindir}/composeglyphs
152 %attr(755,root,root) %{_bindir}/fixnt
153 %attr(755,root,root) %{_bindir}/fixps
154 %attr(755,root,root) %{_bindir}/ogonkify
155 %attr(755,root,root) %{_bindir}/pdiff
156 %attr(755,root,root) %{_bindir}/psmandup
157 %attr(755,root,root) %{_bindir}/psset
158 %attr(755,root,root) %{_bindir}/texi2dvi4a2ps
159 %attr(755,root,root) %{_libdir}/liba2ps.so.*.*.*
160 %attr(755,root,root) %ghost %{_libdir}/liba2ps.so.1
161 %{_mandir}/man1/a2ps.1*
162 %{_mandir}/man1/card.1*
163 %{_mandir}/man1/fixps.1*
164 %{_mandir}/man1/ogonkify.1*
165 %{_mandir}/man1/pdiff.1*
166 %{_mandir}/man1/psmandup.1*
167 %{_mandir}/man1/psset.1*
168 %{_mandir}/man1/texi2dvi4a2ps.1*
169 %lang(pl) %{_mandir}/pl/man1/ogonkify.1*
170 %{_infodir}/a2ps.info*
171 %{_infodir}/ogonkify.info*
172
173 %dir %{_datadir}/a2ps
174 %dir %{_datadir}/a2ps/afm
175 %{_datadir}/a2ps/afm/*.afm
176 %{_datadir}/a2ps/afm/*.map
177 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
178
179 %{_datadir}/a2ps/encoding
180 %{_datadir}/a2ps/fonts
181 %{_datadir}/a2ps/ppd
182 %{_datadir}/a2ps/ps
183 %{_datadir}/a2ps/sheets
184
185 %dir %{_datadir}/ogonkify
186 %{_datadir}/ogonkify/*.enc
187 %{_datadir}/ogonkify/*.ps
188 %{_datadir}/ogonkify/afm
189 %{_datadir}/ogonkify/fonts
190
191 %files devel
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_libdir}/liba2ps.so
194 %{_libdir}/liba2ps.la
195 %{_includedir}/liba2ps.h
196
197 %files static
198 %defattr(644,root,root,755)
199 %{_libdir}/liba2ps.a
This page took 0.067791 seconds and 2 git commands to generate.