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