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