]> git.pld-linux.org Git - packages/a2ps.git/blame - a2ps.spec
- BR libpaper-devel
[packages/a2ps.git] / a2ps.spec
CommitLineData
cc4bd0f6 1Summary: Text to Postscript filter
0c09f6e7
ER
2Summary(ja.UTF-8): テキスト→PostScript フィルタ
3Summary(pl.UTF-8): Filtr text/plain do Postscriptu
4Summary(zh_CN.UTF-8): 纯文本到Postscript转换器
842ab1c6 5Name: a2ps
40aeff3d 6Version: 4.13b
f300b781 7Release: 29
bb1d7181 8License: GPL
cc4bd0f6 9Group: Applications/Text
27031e15 10Source0: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
40a6492c 11# Source0-md5: 0c8e0c31b08c14f7a7198ce967eb3281
f4c7b40d 12Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
40a6492c 13# Source1-md5: fee1456d0e6e94af4fc5b5a1bb9687b7
3984b7c7 14Source2: ogonkify.1.pl
6f1a19c3 15Patch0: %{name}-info.patch
e5d03e50 16Patch1: %{name}-security.patch
f4c7b40d 17Patch2: %{name}-etc.patch
18Patch3: %{name}-flex.patch
19Patch4: %{name}-conf.patch
20Patch5: %{name}-glibcpaper.patch
21Patch6: %{name}-autoenc.patch
8d12198d 22Patch7: %{name}-i18n.patch
a4bc71e1 23Patch8: %{name}-ogonkify-xfig-fix.patch
8bfe0f1c 24Patch9: %{name}-pl.po-update.patch
ab646c7a 25Patch10: %{name}-locale-names.patch
bfe62ba4 26Patch11: %{name}-malloc.patch
a67e49b6 27Patch12: %{name}-CAN-2004-1170.patch
2e4392ae 28Patch13: %{name}-atan2.patch
842ab1c6 29URL: http://www.inf.enst.fr/~demaille/a2ps/
8bfe0f1c 30BuildRequires: automake
e6246505 31BuildRequires: flex
27965559 32BuildRequires: libpaper-devel
8bfe0f1c 33BuildRequires: gettext-devel
fe10624c 34BuildRequires: texinfo
8bfe0f1c 35Requires(post,postun): /sbin/ldconfig
f4c7b40d 36Requires: psutils
ce89659f 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49e058ba 38
bb1d7181 39%define _sysconfdir /etc/a2ps
75b4d611 40
49e058ba 41%description
27031e15 42a2ps is a text to PostScript filter with pretty-printing capabilities.
43It includes support for a wide number of programming languages,
44encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
45(for the interface). It has also the ability to delegate the
46processing of some files to other applications, letting you print DVI,
47PostScript etc. with the very same interface.
49e058ba 48
3f520e73
JR
49%description -l pl.UTF-8
50A2ps jest programem pozwalającym na ładne drukowanie plików tekstowych
51w PostScript. Posiada wsparcie dla wielu różnych języków
52programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielkości
53papieru, i języków komunikacji z użytkownikiem. Potrafi także
54przekazać przetwarzanie plików do innych programów (tak, że można
55wszystko drukować (DVI, PostScript) przy użyciu tego samego polecenia.
56Zawiera program ,,ogonkify'' poprawiający błędnie zakodowany
57PostScript zawierający polskie znaki.
49e058ba 58
06185f79 59%package devel
842ab1c6 60Summary: Header files and development documentation for a2ps
0c09f6e7 61Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do a2ps
e5d03e50 62Group: Development/Libraries
ab646c7a 63Requires: %{name} = %{version}-%{release}
49e058ba 64
65%description devel
27031e15 66Header files and development documentation for a2ps.
49e058ba 67
3f520e73
JR
68%description devel -l pl.UTF-8
69Pliki nagłówkowe i dokumentacja do a2ps.
49e058ba 70
06185f79 71%package static
842ab1c6 72Summary: a2ps static libraries
0c09f6e7 73Summary(pl.UTF-8): Biblioteki statyczne do a2ps
e5d03e50 74Group: Development/Libraries
ab646c7a 75Requires: %{name}-devel = %{version}-%{release}
49e058ba 76
77%description static
27031e15 78a2ps static libraries.
49e058ba 79
3f520e73 80%description static -l pl.UTF-8
27031e15 81Biblioteki statyczne do a2ps.
49e058ba 82
83%prep
8bfe0f1c 84%setup -q -n %{name}-4.13 -a1
90210d62 85%patch0 -p1
e5d03e50 86%patch1 -p1
f4c7b40d 87%patch2 -p1
88%patch3 -p1
89%patch4 -p1
90%patch5 -p1
91%patch6 -p1
8d12198d 92%patch7 -p1
a4bc71e1 93%patch8 -p0
8bfe0f1c 94%patch9 -p1
ab646c7a 95%patch10 -p1
bfe62ba4 96%patch11 -p1
a67e49b6 97%patch12 -p1
2e4392ae 98%patch13 -p1
ab646c7a
JB
99
100mv -f po/{no,nb}.po
bb21d86a 101
49e058ba 102%build
8bfe0f1c 103cp -f /usr/share/automake/config.* auxdir
01229bd3 104%configure2_13 \
f4c7b40d 105 --with-gnu-gettext \
106 --with-medium=_glibc \
842ab1c6 107 --with-encoding=latin1 \
f4c7b40d 108 --enable-shared \
109 --enable-kanji
f4a8a2ee 110%{__make}
49e058ba 111
112%install
113rm -rf $RPM_BUILD_ROOT
3984b7c7 114install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
115 $RPM_BUILD_ROOT%{_mandir}/pl/man1
842ab1c6 116
8bfe0f1c 117%{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile
c4af5858 118
bacca9a2
PG
119%{__make} install \
120 DESTDIR=$RPM_BUILD_ROOT
bb1d7181 121
bfc88ea4
ER
122install i18n-fonts-0.1/afm/*.afm $RPM_BUILD_ROOT%{_datadir}/a2ps/afm
123install i18n-fonts-0.1/fonts/*.pfb $RPM_BUILD_ROOT%{_datadir}/a2ps/fonts
3984b7c7 124install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
9136753d 125
ee2b9d7b 126%find_lang %{name}
127
bb1d7181 128%clean
129rm -rf $RPM_BUILD_ROOT
130
c4af5858 131%post
47e8a5bf 132[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
842ab1c6 133/sbin/ldconfig
c4af5858 134
19eb8916 135%postun
47e8a5bf 136[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
19eb8916 137/sbin/ldconfig
49e058ba 138
ee2b9d7b 139%files -f %{name}.lang
253202e5 140%defattr(644,root,root,755)
9136753d 141%doc AUTHORS ChangeLog NEWS README THANKS
1011688d 142%dir %{_sysconfdir}
bfc88ea4
ER
143%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps.cfg
144%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps-site.cfg
be4c848f 145%attr(755,root,root) %{_bindir}/*
bb1d7181 146%attr(755,root,root) %{_libdir}/lib*.so.*.*
687997fb 147%{_mandir}/man1/*
3984b7c7 148%lang(pl) %{_mandir}/pl/man1/*
687997fb 149%{_infodir}/a2ps*info*
150%{_infodir}/ogonkify*info*
842ab1c6 151
2f5e00bd 152%dir %{_datadir}/a2ps
8f471631 153%dir %{_datadir}/a2ps/afm
154%{_datadir}/a2ps/afm/*.afm
155%{_datadir}/a2ps/afm/*.map
156%attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
157
06185f79 158%{_datadir}/a2ps/encoding
159%{_datadir}/a2ps/fonts
160%{_datadir}/a2ps/ppd
161%{_datadir}/a2ps/ps
162%{_datadir}/a2ps/sheets
8f471631 163
75b4d611
JR
164%dir %{_datadir}/ogonkify
165%{_datadir}/ogonkify/*.enc
166%{_datadir}/ogonkify/*.ps
b370eb7b 167%{_datadir}/ogonkify/afm
168%{_datadir}/ogonkify/fonts
8f471631 169
49e058ba 170%files devel
842ab1c6 171%defattr(644,root,root,755)
98224703 172%{_libdir}/lib*.la
bb1d7181 173%attr(755,root,root) %{_libdir}/lib*.so
9b5d77c4 174%{_includedir}/*
49e058ba 175
176%files static
842ab1c6 177%defattr(644,root,root,755)
bcd1524c 178%{_libdir}/lib*.a
This page took 0.104978 seconds and 4 git commands to generate.