File libotf.spec of Package libotf

#
# spec file for package libotf
#
# 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:           libotf
Version:        0.9.12
Release:        0
Summary:        Library for Handling OpenType Fonts
License:        LGPL-2.1+
Group:          System/I18n/Japanese
Url:            http://www.m17n.org/libotf/
# CVS:
#    cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/m17n login
#    cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/m17n co libotf
Source0:        http://www.m17n.org/libotf/libotf-%{version}.tar.bz2
Source1:        baselibs.conf
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch:          libotf-warning-fixes.diff
BuildRequires:  freetype2-devel
BuildRequires:  libtool
BuildRequires:  xorg-x11-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Library for handling OpenType fonts,especially those needed for CJK and other non-Latin
languages.

%package -n libotf0
Summary:        Shared library for libotf
Group:          System/I18n/Japanese

%description -n libotf0
Library for handling OpenType fonts,especially those needed for CJK and other non-Latin
languages.

%package devel
Summary:        Include Files and Libraries mandatory for Development.
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Requires:       freetype2-devel

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require %{name}.

%prep
%setup -q
%patch -p1

%build
./autogen.sh
autoreconf --force --install --verbose
%configure --disable-static --with-pic
make %{?_smp_mflags}

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf %{buildroot}

%post -n libotf0 -p /sbin/ldconfig

%postun -n libotf0 -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_bindir}/*

%files -n libotf0
%defattr(-, root, root)
%{_libdir}/libotf.so.*

%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/libotf.so
%{_libdir}/pkgconfig/libotf.pc

%changelog