]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- added a2ps-ogonkify-xfig-fix.patch; release 23
[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 %build
84 %configure2_13 \
85         --with-gnu-gettext \
86         --with-medium=_glibc  \
87         --with-encoding=latin1 \
88         --enable-shared \
89         --enable-kanji
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
95         $RPM_BUILD_ROOT%{_mandir}/pl/man1
96
97 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
98
99 mv -f tmp contrib/emacs/Makefile
100
101 %{__make} install DESTDIR=$RPM_BUILD_ROOT
102
103 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
104 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
105 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
106
107 %find_lang %{name}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post
113 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
114 /sbin/ldconfig
115
116 %postun
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
118 /sbin/ldconfig
119
120 %files -f %{name}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog NEWS README THANKS
123
124 %dir %{_sysconfdir}
125 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
126 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
127
128 %attr(755,root,root) %{_bindir}/*
129 %attr(755,root,root) %{_libdir}/lib*.so.*.*
130 %{_mandir}/man1/*
131 %lang(pl) %{_mandir}/pl/man1/*
132 %{_infodir}/a2ps*info*
133 %{_infodir}/ogonkify*info*
134
135 %dir %{_datadir}/a2ps
136 %dir %{_datadir}/a2ps/afm
137 %{_datadir}/a2ps/afm/*.afm
138 %{_datadir}/a2ps/afm/*.map
139 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
140
141 %{_datadir}/a2ps/encoding
142 %{_datadir}/a2ps/fonts
143 %{_datadir}/a2ps/ppd
144 %{_datadir}/a2ps/ps
145 %{_datadir}/a2ps/sheets
146
147 %dir %{_datadir}/ogonkify
148 %{_datadir}/ogonkify/*.enc
149 %{_datadir}/ogonkify/*.ps
150 %{_datadir}/ogonkify/afm
151 %{_datadir}/ogonkify/fonts
152
153 %files devel
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_libdir}/lib*.la
156 %attr(755,root,root) %{_libdir}/lib*.so
157 %{_includedir}/*
158
159 %files static
160 %defattr(644,root,root,755)
161 %{_libdir}/lib*.a
This page took 0.040054 seconds and 4 git commands to generate.