]> git.pld-linux.org Git - packages/t1lib.git/blobdiff - t1lib.spec
- rel 4 for ac
[packages/t1lib.git] / t1lib.spec
index 2cbc77aaafa6b01337c67579532c4c934d7acc55..bc7f5c5c1588dde0bcc11bd7419cfee2512819d9 100644 (file)
@@ -1,28 +1,50 @@
+#
+# Conditional build:
+# _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.1.0
-Release:       1
+Version:       5.0.0
+Release:       4
 License:       LGPL
 Group:         Libraries
-Group(de):     Libraries
-Group(es):     Bibliotecas
-Group(fr):     Librairies
-Group(pl):     Biblioteki
 Source0:       ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
+# Source0-md5: 6b5d79840ec2be72b506c12abb040a60
 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
-URL:           http://www.windowmaker.org/
+Patch4:                %{name}-KernMapSize.patch
+Patch5:                %{name}-man.patch
+Patch7:                %{name}-xglyph.patch
 BuildRequires: XFree86-devel
-BuildRequires: tetex
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+%if %{!?_without_doc:1}0
+BuildRequires: tetex-dvips
 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
+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"
 
 %description
 t1lib is a library distributed under the GNU General Public Library
@@ -52,18 +74,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 szaaro¶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(de):     X11/Fonts
-Group(pl):     X11/Fonty
-Requires:      %{name} = %{version}
-Prereq:                textutils
-Prereq:                sed
+Group:         Fonts
+Requires(post,postun): fontpostinst >= 0.1-6
+Requires:      %{_fontsdir}/Type1
 
 %description fonts
 Type 1 fonts.
@@ -74,11 +137,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(de):     Entwicklung/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     libt1lib1.3.1-devel
 
 %description devel
 The files needed for developing applications using t1lib.
@@ -86,14 +150,22 @@ 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(de):     Entwicklung/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static libraries for t1lib.
@@ -101,13 +173,20 @@ Static libraries for t1lib.
 %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(de):     X11/Applikationen
-Group(pl):     X11/Aplikacje
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description xglyph
 Test program for t1lib with X11 interface.
@@ -116,22 +195,29 @@ 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
+%patch4 -p1
+%patch5 -p1
+%patch7 -p1
 
 %build
-autoconf
+%{__libtoolize}
+%{__aclocal}
+mv -f aclocal.m4 ac-tools
+%{__autoconf}
 %configure
 
-%{__make}
+%{__make} %{?_without_doc:without_doc}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
        $RPM_BUILD_ROOT{%{_includedir},%{_xbindir}} \
-       $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}}
+       $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}} \
+       $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
@@ -141,48 +227,52 @@ 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 -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT%{_xbindir}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
+
+> $RPM_BUILD_ROOT%{_datadir}/%{name}/FontDatabase
+
+for sec in 1 5; do
+       install debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec}
+done
+install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
 
-gzip -9nf Changes README.t1* doc/*.dvi
+mv -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT%{_xbindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+fontpostinst Type1
+
 %postun -p /sbin/ldconfig
 
 %post fonts
-cd %{_t1fontsdir}
-rm -f fonts.scale.bak Fontmap.bak
-cat fonts.scale.* | sort -u > fonts.scale.tmp
-cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
-cat fonts.scale.tmp >> fonts.scale
-rm -f fonts.scale.tmp
-ln -sf fonts.scale fonts.dir
-cat Fontmap.* > Fontmap
+fontpostinst Type1
 
 %postun fonts
-cd %{_t1fontsdir}
-rm -f fonts.scale.bak Fontmap.bak
-cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
-cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
-cat fonts.scale.tmp >> fonts.scale
-rm -f fonts.scale.tmp
-ln -sf fonts.scale fonts.dir
-cat Fontmap.* > Fontmap 2>/dev/null
+fontpostinst Type1
 
 %files
 %defattr(644,root,root,755)
-%doc {Changes,README.t1*,doc/*.dvi}.gz 
+%doc Changes README.t1*
+%if %{?_without_doc:0}%{!?_without_doc:1}
+%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)
@@ -193,7 +283,7 @@ cat Fontmap.* > Fontmap 2>/dev/null
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/*.so
-%attr(755,root,root) %{_libdir}/*.la
+%{_libdir}/*.la
 %{_includedir}/*
 
 %files static
@@ -203,3 +293,4 @@ cat Fontmap.* > Fontmap 2>/dev/null
 %files xglyph
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_xbindir}/xglyph
+%{_mandir}/man1/xglyph.1*
This page took 0.044291 seconds and 4 git commands to generate.