File t1lib.spec of Package t1lib

#
# spec file for package t1lib
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           t1lib
Version:        5.1.2
Release:        0
License:        LGPL-2.0 and LGPL-2.1
Summary:        Adobe Type 1 Font Rasterizing Library
Url:            ftp://sunsite.unc.edu/pub/Linux/libs/graphics/
Group:          System/Libraries
Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-5.1.2.tar.bz2
Source1:        %{name}-rpmlintrc
Patch0:         t1lib-auto.patch
BuildRequires:  xorg-x11-devel

%if 0%{?suse_version} > 1210
# Fix build for openSUSE 12.2
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
%endif

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
%setup0 -q -n t1lib-%{version}
%patch0 -p1 -b .auto


%build
autoreconf -fi
export CFLAGS="%{optflags}"
./configure --prefix=/usr \
            --mandir=%{_mandir} \
            --infodir=%{_infodir} \
	        --libdir=%{_libdir} \
            %{_target_cpu}-suse-linux-gnu
make without_doc

%install
make prefix=%{buildroot}%{_prefix} libdir=%{buildroot}%{_libdir} install
rm -f %{buildroot}%{_datadir}/t1lib/doc/t1lib_doc*

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%files
%defattr(-, root, root)
%doc Changes LGPL LICENSE README*
%doc doc/t1lib_doc.pdf
%doc doc/t1_data.eps
%attr(755, root, root) %{_libdir}/libt1.so.*
%attr(755, root, root) %{_libdir}/libt1x.so.*
%dir %config
%config %{_datadir}/t1lib/t1lib.config
%{_bindir}/type1afm
%{_bindir}/xglyph
%{_datadir}/t1lib

%files -n t1lib-devel
%defattr(-, root, root)
%{_libdir}/libt1.so
%{_libdir}/libt1x.so
%{_includedir}/t1lib.h
%{_includedir}/t1libx.h

%files -n t1lib-static-devel
%defattr(-, root, root)
%{_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
openSUSE Build Service is sponsored by