]> git.pld-linux.org Git - packages/t1lib.git/blobdiff - t1lib.spec
- ups
[packages/t1lib.git] / t1lib.spec
index e2833095369c297451e8fca6aea3971c45b4612b..374c7d7efc9669e9894979101f87efb8b7e4aa75 100644 (file)
@@ -1,22 +1,53 @@
+#
+# Conditional build:
+%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(pt_BR):        Rasterizador de fontes Type 1
+Summary(ru):   òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1
+Summary(uk):   òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆԦנType 1
 Name:          t1lib
-Version:       1.0.1
-Release:       5
+Version:       5.1.0
+Release:       3
 License:       LGPL
 Group:         Libraries
-Group(fr):     Librairies
-Group(pl):     Biblioteki
 Source0:       ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
-Patch0:                t1lib-DESTDIR.patch
-Patch1:                t1lib-doc.patch
-Patch2:                t1lib-config.patch
-URL:           http://www.windowmaker.org/
-BuildRequires: XFree86-devel
-BuildRequires: tetex
+# Source0-md5: a05bed4aa63637052e60690ccde70421
+Source1:       %{name}-fonts.Fontmap
+Source2:       %{name}-fonts.fonts.scale
+Source3:       %{name}config
+Source4:       %{name}config.8
+Patch0:                %{name}-DESTDIR.patch
+Patch1:                %{name}-doc.patch
+Patch2:                %{name}-config.patch
+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
+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-tex-babel
+%endif
+Requires(post):        fontpostinst >= 0.1-6
+Obsoletes:     libt1lib1.3.1
+Obsoletes:     libt1lib1.3.1-progs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _fontdir        /usr/share/fonts
+%define                _t1fontsdir     %{_fontsdir}/Type1
+%define                _t1afmdir       %{_t1fontsdir}/afm
+%define                _datadir        /etc
+%define                specflags_ia32   -fomit-frame-pointer
 
 %description
 t1lib is a library distributed under the GNU General Public Library
@@ -46,16 +77,59 @@ of the features:
 - antialiasing is implemented using three gray-levels between black
   and white
 - An interactive test program called "xglyph" is included in the
-  distribution. This program allows to test all of the features of the
-  library. It requires X11.
+  distribution (as separate package). This program allows to test all of
+  the features of the library. It requires X11.
+
+%description -l pl
+t1lib jest wypuszczon± na LGPL bibliotek± do generowania znakowych i
+³añcuchowych glifów z fontów Adobe Type 1. t1lib u¿ywa wiêkszo¶ci kodu
+rasteryzera X11 (wspomaganego przez IBM), ale niektóre wady tego
+rasteryzera zosta³y usuniête. Niektóre cechy t1lib:
+- ca³kowita niezale¿no¶æ od X11 (tylko program dostarczony do testów
+  wymaga X11)
+- fonty s± znane bibliotece poprzez dodanie do pliku z baz± danych o
+  fontach - w czasie uruchamiania
+- ¶cie¿ki wyszukiwania wszystkich plików wej¶ciowych s± konfigurowalne
+  w czasie uruchamiania
+- znaki s± rasteryzowane kiedy s± potrzebne
+- znaki i ca³kowite ³añcuchy mog± byæ zrasteryzowane prostym
+  wywo³aniem funkcji
+- przy rasteryzacji ³añcuchów opcjonalnie mog± byæ brane pod uwagê
+  informacje o kerningu z plików .afm
+- interfejs do informacji o ligaturach z plików .afm
+- do³±czony program do generowania plików .afm z fontów Type 1
+- obroty o dowolny k±t
+- wsparcie do rozszerzania i pochylania znaków
+- 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 szaro¶ci
+  pomiêdzy czerni± a biel±
+- interaktywny program testowy xglyph - w osobnym pakiecie (wymaga X).
+
+%description -l pt_BR
+Rasterizador de fontes Type 1 da Adobe.
+
+%description -l ru
+T1lib - ÜÔÏ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÓÏÚÄÁÎÉÑ ÇÌÉÆÏ× ÓÉÍ×ÏÌÏ× É ÃÅÐÏÞÅË ÓÉÍ×ÏÌÏ×
+ÉÚ ÛÒÉÆÔÏ× Adobe Type 1. T1lib ÉÓÐÏÌØÚÕÅÔ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÄÌÑ X11
+ÐÏÄÁÒÅÎÎÏÇÏ ÆÉÒÍÏÊ IBM ÐÒÏÅËÔÕ X11. îÏ ÎÅËÏÔÏÒÙÅ ÎÅÄÏÓÔÁÔËÉ
+×ËÌÀÞÅÎÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÙÌÉ ÕÓÔÒÁÎÅÎÙ. T1lib ×ËÌÀÞÁÅÔ ÔÁËÖÅ
+ÐÏÄÄÅÒÖËÕ ÁÎÔÉÁÌÉÁÓÉÎÇÁ.
+
+%description -l uk
+T1lib - ÃŠ¦Â̦ÏÔÅËÁ ÄÌÑ ÓÔ×ÏÒÅÎÎÎÑ Ç̦ƦנÓÉÍ×Ï̦נÔÁ ÌÁÎÃÀÖ˦×
+ÓÉÍ×Ï̦נڠÛÒÉÆԦנAdobe Type 1. T1lib ×ÉËÏÒÉÓÔÏ×Õ¤ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ
+ÄÌÑ X11 ÐÏÄÁÒÏ×ÁÎÏÇϠƦÒÍÏÀ IBM ÐÒÏÅËÔÕ X11. áÌÅ ÄÅÑ˦ ÎÅÄÏ̦ËÉ
+×ËÌÀÞÅÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÕÌÉ ÐÒÉÂÒÁΦ. T1lib ÔÁËÏÖ ×ËÌÀÞÁ¤
+ЦÄÔÒÉÍËÕ ÁÎÔÉÁ̦ÁÓÉÎÇÁ.
 
 %package fonts
 Summary:       Type 1 fonts
 Summary(pl):   Fonty Type 1
-Group:         X11/Fonts
-Group(pl):     X11/Fonty
-Requires:      %{name} = %{version}
-Prereq:                type1inst >= 0.6.1
+Group:         Fonts
+Requires(post,postun): fontpostinst >= 0.1-6
+Requires:      %{_fontsdir}/Type1
 
 %description fonts
 Type 1 fonts.
@@ -66,11 +140,12 @@ Zestaw font
 %package devel
 Summary:       Development files for t1lib
 Summary(pl):   Pliki nag³ówkowe i biblioteki dla t1lib
+Summary(pt_BR):        Arquivos de inclusão e bibliotecas para o desenvolvimento com a T1lib
+Summary(ru):   òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1 - ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ
+Summary(uk):   òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆԦנType 1 - ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name} = %{version}
-Prereq:                type1inst
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     libt1lib1.3.1-devel
 
 %description devel
 The files needed for developing applications using t1lib.
@@ -78,26 +153,43 @@ The files needed for developing applications using t1lib.
 %description devel -l pl
 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
 
+%description devel -l pt_BR
+Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
+t1lib.
+
+%description devel -l ru
+æÁÊÌÙ ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ ÉÓÐÏÌØÚÕÀÝÉÈ t1lib ÐÁËÅÔÏ×.
+
+%description devel -l uk
+æÁÊÌÉ ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑ槠ÐÁËÅÔ¦×, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ t1lib.
+
 %package static
 Summary:       Static libraries for t1lib
 Summary(pl):   Biblioteki statyczne dla t1lib
+Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com t1lib
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static libraries for t1lib.
 
-%description devel -l pl
+%description static -l pl
 Biblioteki statyczne dla t1lib.
 
+%description static -l pt_BR
+Bibliotecas estáticas para desenvolvimento com t1lib
+
+%description static -l ru
+óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó t1lib.
+
+%description static -l uk
+óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú t1lib.
+
 %package xglyph
 Summary:       Test program for t1lib with X11 interface
-Summary:       Program testowy dla t1lib z interfejsem X11
+Summary(pl):   Program testowy dla t1lib z interfejsem X11
 Group:         X11/Applications
-Group(pl):     X11/Aplikacje
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description xglyph
 Test program for t1lib with X11 interface.
@@ -106,72 +198,96 @@ Test program for t1lib with X11 interface.
 Program testowy dla t1lib z interfejsem X11.
 
 %prep
-%setup -q -n T1-%{version}
+%setup -q
 %patch0 -p1
 %patch1 -p0
 %patch2 -p0
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+
+rm -f ac-tools/aclocal.m4
 
 %build
-autoconf
-LDFLAGS="-s"; export LDFLAGS
+%{__libtoolize}
+%{__aclocal} -I ac-tools
+%{__autoconf}
 %configure
 
-%{__make}
+%{__make} %{!?with_doc:without_doc}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
-       $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
-       $RPM_BUILD_ROOT/usr/X11R6/bin
+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
 
-install Fonts/afm/*.afm                $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
-install Fonts/type1/*.pfb      $RPM_BUILD_ROOT%{_fontdir}/Type1
-cp -a Fonts/enc                        $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
+install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
+install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_t1fontsdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}-fonts
+install %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}-fonts
 
-mv $RPM_BUILD_ROOT{%{_bindir}/xglyph,/usr/X11R6/bin}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
+> $RPM_BUILD_ROOT%{_datadir}/%{name}/FontDatabase
 
-gzip -9nf Changes README.t1* doc/*.dvi
+for sec in 1 5; do
+       install debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec}
+done
+install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+fontpostinst Type1
 
-%post  -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %post fonts
-cd %{_fontdir}/Type1
-%{_bindir}/type1inst -nolog -q
+fontpostinst Type1
 
 %postun fonts
-cd %{_fontdir}/Type1
-%{_bindir}/type1inst -nolog -q
-
-%clean
-rm -r $RPM_BUILD_ROOT
+fontpostinst Type1
 
 %files
 %defattr(644,root,root,755)
-%doc {Changes,README.t1*,doc/*.dvi}.gz 
+%doc Changes README.t1*
+%if %{with doc}
+%doc doc/*.dvi
+%endif
 %doc doc/*.{tex,eps,fig}
 
 %attr(755,root,root) %{_bindir}/type1afm
+%attr(755,root,root) %{_bindir}/t1libconfig
 %attr(755,root,root) %{_libdir}/*.so.*.*
 
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/enc
 
-%config(noreplace) %{_datadir}/%{name}/t1lib.config
+%ghost %{_datadir}/%{name}/t1lib.config
+%ghost %{_datadir}/%{name}/FontDatabase
+
+%{_mandir}/man[58]/*
+%{_mandir}/man1/type1afm.1*
 
 %files fonts
 %defattr(644,root,root,755)
-%{_fontdir}/Type1/afm/*
-%{_fontdir}/Type1/*.pfb
+%{_t1fontsdir}/*.pfb
+%{_t1afmdir}/*.afm
+%{_t1fontsdir}/*.%{name}-fonts
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/*.so
-%attr(755,root,root) %{_libdir}/*.la
+%{_libdir}/*.la
 %{_includedir}/*
 
 %files static
@@ -180,4 +296,5 @@ rm -r $RPM_BUILD_ROOT
 
 %files xglyph
 %defattr(644,root,root,755)
-%attr(755,root,root) /usr/X11R6/bin/xglyph
+%attr(755,root,root) %{_bindir}/xglyph
+%{_mandir}/man1/xglyph.1*
This page took 0.085382 seconds and 4 git commands to generate.