#
# Conditional build:
-# _without_doc - do not build documentation with LaTeX
+%bcond_without doc # do not build documentation with LaTeX
#
Summary: A library for character- and string-glyphs from Adobe Type 1 fonts
Summary(pl): Biblioteka znakowych i ³añcuchowych glifów z fontów Adobe Type 1
Summary(ru): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1
Summary(uk): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔ¦× Type 1
Name: t1lib
-Version: 5.0.0
-Release: 4
+Version: 5.1.0
+Release: 3
License: LGPL
Group: Libraries
Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
-# Source0-md5: 6b5d79840ec2be72b506c12abb040a60
+# Source0-md5: a05bed4aa63637052e60690ccde70421
Source1: %{name}-fonts.Fontmap
Source2: %{name}-fonts.fonts.scale
Source3: %{name}config
Patch0: %{name}-DESTDIR.patch
Patch1: %{name}-doc.patch
Patch2: %{name}-config.patch
-Patch4: %{name}-KernMapSize.patch
-Patch5: %{name}-man.patch
-Patch7: %{name}-xglyph.patch
-BuildRequires: XFree86-devel
+Patch3: %{name}-KernMapSize.patch
+Patch4: %{name}-man.patch
+Patch5: %{name}-xglyph.patch
+Patch6: %{name}-link.patch
+Patch7: %{name}-aclocal.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
-%if %{!?_without_doc:1}0
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXaw-devel
+BuildRequires: xorg-lib-libXt-devel
+%if %{with doc}
BuildRequires: tetex-dvips
+BuildRequires: tetex-format-latex
BuildRequires: tetex-latex
BuildRequires: tetex-makeindex
-BuildRequires: tetex-format-latex
BuildRequires: tetex-tex-babel
%endif
Requires(post): fontpostinst >= 0.1-6
Obsoletes: libt1lib1.3.1-progs
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _xbindir /usr/X11R6/bin
%define _t1fontsdir %{_fontsdir}/Type1
%define _t1afmdir %{_t1fontsdir}/afm
%define _datadir /etc
-%define specflags_ia32 "-fomit-frame-pointer"
+%define specflags_ia32 -fomit-frame-pointer
%description
t1lib is a library distributed under the GNU General Public Library
- wsparcie dla podkre¶lania, nadkre¶lania, przekre¶lania
- nowe wektory kodowania mog± byæ wczytane w czasie dzia³ania i fonty
mog± byæ ponownie zakodowane przy u¿yciu tych wektorów
-- antyaliasing zaimplementowany przy u¿yciu trzech stopni szaaro¶ci
+- antyaliasing zaimplementowany przy u¿yciu trzech stopni szaro¶ci
pomiêdzy czerni± a biel±
- interaktywny program testowy xglyph - w osobnym pakiecie (wymaga X).
%patch0 -p1
%patch1 -p0
%patch2 -p0
+%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%patch7 -p1
+rm -f ac-tools/aclocal.m4
+
%build
%{__libtoolize}
-%{__aclocal}
-mv -f aclocal.m4 ac-tools
+%{__aclocal} -I ac-tools
%{__autoconf}
%configure
-%{__make} %{?_without_doc:without_doc}
+%{__make} %{!?with_doc:without_doc}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
- $RPM_BUILD_ROOT{%{_includedir},%{_xbindir}} \
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir},%{_includedir}} \
$RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}} \
$RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
done
install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
-mv -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT%{_xbindir}
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes README.t1*
-%if %{?_without_doc:0}%{!?_without_doc:1}
+%if %{with doc}
%doc doc/*.dvi
%endif
%doc doc/*.{tex,eps,fig}
%files xglyph
%defattr(644,root,root,755)
-%attr(755,root,root) %{_xbindir}/xglyph
+%attr(755,root,root) %{_bindir}/xglyph
%{_mandir}/man1/xglyph.1*