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