File t1lib.spec of Package t1lib

#
# spec file for package t1lib
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           t1lib
Version:        5.1.2
Release:        0
Summary:        Adobe Type 1 Font Rasterizing Library
License:        LGPL-2.0-only AND LGPL-2.1-only
Group:          System/Libraries
URL:            ftp://sunsite.unc.edu/pub/Linux/libs/graphics/
Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-5.1.2.tar.bz2
Patch0:         t1lib-auto.patch
Patch1:         https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/t1lib/files/t1lib-5.1.2-CVE-2010-2642_2011-0433_2011-5244.patch
Patch2:         https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/t1lib/files/t1lib-5.1.2-CVE-2011-0764.patch
Patch3:         https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/t1lib/files/t1lib-5.1.2-CVE-2011-1552_1553_1554.patch
Patch4:         https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/t1lib/files/t1lib-do-not-install-t1lib_doc-r1.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  xorg-x11-devel

%description
T1lib is a library for generating character and string glyphs from
Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X
Window System rasterizer donated by IBM to the X Window System project.
Some disadvantages of the rasterizer included in the X Window System
have been eliminated.

%package      -n t1lib-devel
Summary:        Development Libraries for T1lib
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description  -n t1lib-devel

This package provides the t1lib development environment header files, and more.

%package      -n t1lib-static-devel
Summary:        Static Development Libraries for T1lib
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       glibc-devel
Requires:       xorg-x11-libICE-devel
Requires:       xorg-x11-libSM-devel
Requires:       xorg-x11-libX11-devel
Requires:       xorg-x11-libXext-devel
Requires:       xorg-x11-libXpm-devel

%description  -n t1lib-static-devel

This package provides the t1lib static libraries.

%prep
%autosetup -p1 -n t1lib-%{version}

%build
autoreconf -fi
export CFLAGS="%{optflags} -ffat-lto-objects"
%configure %{_target_cpu}-suse-linux-gnu
%make_build without_doc

%install
%make_install

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%license LICENSE
%doc Changes LGPL README.t1*
%doc doc/t1lib_doc.pdf
%doc doc/t1_data.eps
%{_libdir}/libt1.so.*
%{_libdir}/libt1x.so.*
%dir %config
%config %{_datadir}/t1lib/t1lib.config
%{_bindir}/type1afm
%{_bindir}/xglyph
%{_datadir}/t1lib

%files -n t1lib-devel
%{_libdir}/libt1.so
%{_libdir}/libt1x.so
%{_includedir}/t1lib.h
%{_includedir}/t1libx.h

%files -n t1lib-static-devel
%{_libdir}/libt1x.la
%{_libdir}/libt1x.a
%{_libdir}/libt1.la
%{_libdir}/libt1.a

%changelog -n t1lib
* Wed Jan 31 2007 - mfabian@suse.de
- Bugzilla #240159: array subscript out of bounds.
* Wed Jan 17 2007 - mfabian@suse.de
- Bugzilla #137002: update to 5.1.0.
* Wed Aug 16 2006 - aj@suse.de
- Replace xorg-x11-devel BuildRequires with really needed libs.
* Fri Jun 16 2006 - schwab@suse.de
- Handle reference to datarootdir variable.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Feb 14 2005 - ro@suse.de
- fix build with current tetex
- remove tetex from neededforbuild and use prebuilt docu
to break cycle between tetex and t1lib
* Thu Feb 10 2005 - ro@suse.de
- added libpng to neededforbuild (for tetex)
* Sat Jan 10 2004 - adrian@suse.de
- add %%run_ldconfig
* Fri Jun 13 2003 - kukuk@suse.de
- Add missing directory to filelist
* Fri May 16 2003 - mfabian@suse.de
- remove stuff from buildroot which is not in the file list.
- add execute permissions to shared libraries.
* Sat Aug 10 2002 - mfabian@suse.de
- t1lib-devel should require t1lib
* Mon Jun 17 2002 - meissner@suse.de
- rerun auto* tools so we support newer platforms.
* Tue May 21 2002 - freitag@suse.de
- update to t1lib-1.3.1
* Thu Jan 31 2002 - mfabian@suse.de
- use %%{_libdir}
* Sat Aug 11 2001 - mfabian@suse.de
- update to t1lib-1.1.1
* Mon May 07 2001 - mfabian@suse.de
- bzip2 sources
* Fri Feb 16 2001 - mfabian@suse.de
- new package: t1lib version 1.1.0

%changelog
openSUSE Build Service is sponsored by