]> git.pld-linux.org Git - packages/t1lib.git/blobdiff - t1lib.spec
- versioned Obsoletes
[packages/t1lib.git] / t1lib.spec
index cc9a5d255ac7ab904b27892eb49afa7cd77a85ea..a1c7951b34e5693f03739b8ba1ce85477f6cd5f1 100644 (file)
@@ -1,7 +1,7 @@
 #
 # 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.UTF-8):     Biblioteka znakowych i łańcuchowych glifów z fontów Adobe Type 1
 Summary(pt_BR.UTF-8):  Rasterizador de fontes Type 1
@@ -9,10 +9,10 @@ Summary(ru.UTF-8):    Растеризатор шрифтов Type 1
 Summary(uk.UTF-8):     Растеризатор шрифтів Type 1
 Name:          t1lib
 Version:       5.1.2
-Release:       2
+Release:       10
 License:       GPL v2
 Group:         Libraries
-Source0:       ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
+Source0:       http://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
 # Source0-md5: a5629b56b93134377718009df1435f3c
 Source1:       %{name}-fonts.Fontmap
 Source2:       %{name}-fonts.fonts.scale
@@ -25,12 +25,22 @@ Patch3:             %{name}-man.patch
 Patch4:                %{name}-xglyph.patch
 Patch5:                %{name}-aclocal.patch
 Patch6:                %{name}-link.patch
+Patch7:                format-security.patch
+Patch8:                t1lib-5.1.2-CVE-2010-2642_2011-0433_2011-5244.patch
+Patch9:                t1lib-5.1.2-CVE-2011-0764.patch
+Patch10:       t1lib-5.1.2-CVE-2011-1552_1553_1554.patch
+URL:           http://www.t1lib.org/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libtool
+BuildRequires: rpm >= 4.4.9-56
+%if "%{pld_release}" == "ac"
+BuildRequires: XFree86-devel
+%else
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXaw-devel
 BuildRequires: xorg-lib-libXt-devel
+%endif
 %if %{with doc}
 BuildRequires: tetex-dvips
 BuildRequires: tetex-format-latex
@@ -38,9 +48,10 @@ 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
+Requires:      findutils
+Requires(post):        /sbin/ldconfig
+Obsoletes:     libt1lib1.3.1 < 5
+Obsoletes:     libt1lib1.3.1-progs < 5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _t1fontsdir     %{_fontsdir}/Type1
@@ -131,7 +142,7 @@ Summary(ru.UTF-8):  Растеризатор шрифтов Type 1 - файлы 
 Summary(uk.UTF-8):     Растеризатор шрифтів Type 1 - файли для розробки програм
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Obsoletes:     libt1lib1.3.1-devel
+Obsoletes:     libt1lib1.3.1-devel < 5
 
 %description devel
 The files needed for developing applications using t1lib.
@@ -170,6 +181,22 @@ Bibliotecas estáticas para desenvolvimento com t1lib
 %description static -l uk.UTF-8
 Статична бібліотека для програмування з t1lib.
 
+%package doc
+Summary:       Manual for t1lib
+Summary(fr.UTF-8):     Documentation pour t1lib
+Summary(it.UTF-8):     Documentazione di t1lib
+Summary(pl.UTF-8):     Podręcznik dla t1lib
+Group:         Documentation
+
+%description doc
+Documentation for t1lib.
+
+%description doc -l fr.UTF-8
+Documentation pour t1lib.
+
+%description doc -l it.UTF-8
+Documentazione di t1lib.
+
 %package x
 Summary:       libt1x library (X11 XImage interface)
 Summary(pl.UTF-8):     Biblioteka libt1x (interfejs X11 XImage)
@@ -214,6 +241,7 @@ Statyczna biblioteka libt1x.
 Summary:       Type 1 fonts
 Summary(pl.UTF-8):     Fonty Type 1
 Group:         Fonts
+Requires:      fontpostinst >= 0.1-6
 Requires(post,postun): fontpostinst >= 0.1-6
 Requires:      %{_fontsdir}/Type1
 
@@ -244,6 +272,10 @@ Program testowy dla t1lib z interfejsem X11.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
 
 rm -f ac-tools/aclocal.m4
 
@@ -265,19 +297,19 @@ install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir},%{_includedir}} \
        DESTDIR=$RPM_BUILD_ROOT
 
 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
+cp -a Fonts/afm/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
+cp -a Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_t1fontsdir}
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}-fonts
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}-fonts
 
-install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
+install -p %{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}
+       cp -a debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec}
 done
-install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
+cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
 
 # let autodeps work
 chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
@@ -285,10 +317,7 @@ chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-fontpostinst Type1
-
+%post  -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %post  x -p /sbin/ldconfig
@@ -302,7 +331,7 @@ fontpostinst Type1
 
 %files
 %defattr(644,root,root,755)
-%doc Changes README.t1* doc/*.{tex,eps,fig} %{?with_doc:doc/*.dvi}
+%doc Changes README.t1*
 %attr(755,root,root) %{_bindir}/type1afm
 %attr(755,root,root) %{_bindir}/t1libconfig
 %attr(755,root,root) %{_libdir}/libt1.so.*.*.*
@@ -325,6 +354,12 @@ fontpostinst Type1
 %defattr(644,root,root,755)
 %{_libdir}/libt1.a
 
+%if %{with doc}
+%files doc
+%defattr(644,root,root,755)
+%doc doc/*.{tex,eps,fig} %{?with_doc:doc/*.dvi}
+%endif
+
 %files x
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libt1x.so.*.*.*
This page took 0.045968 seconds and 4 git commands to generate.