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