File libEMF.spec of Package libEMF

#
# spec file for package libEMF (Version 1.0)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           libEMF
BuildRequires:  gcc-c++
License:        LGPL v2.1 or later
Group:          System/Libraries
AutoReqProv:    on
Version:        1.0
Release:        282
Source0:        %{name}-%{version}.tar.bz2
Patch0:         libEMF-gcc4-fix.diff
Url:            http://libemf.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Library for Manipulation with Enhanced MetaFile (EMF, ECMA-234)
# add platforms with a wine port here
ExclusiveArch:  axp %ix86 ppc sparc

%package devel
License:        LGPL v2.1 or later
Group:          System/Libraries
AutoReqProv:    on
Summary:        Library for manipulation with Enhanced MetaFile (EMF, ECMA-234)
Requires:       %name = %version

%description
LibEMF is a C/C++ library that provides a drawing toolkit based on
ECMA-234. The general purpose of this library is to create vector
graphics files on POSIX systems that can be imported into StarOffice or
OpenOffice. The Enhanced MetaFile (EMF) is one of the two color vector
graphics format that is "vectorially" understood by SO and OO. The EMF
format also has the additional advantage that it can be "broken" into
its constituent components and edited like any other SO or OO graphics
object.



Authors:
--------
    Allen Barnett <libemf@lignumcomputing.com>

%description devel
LibEMF is a C/C++ library which provides a drawing toolkit based on
ECMA-234. The general purpose of this library is to create vector
graphics files on POSIX systems which can be imported into
StarOffice/OpenOffice. The Enhanced MetaFile (EMF) is one of the two
color vector graphics format which is "vectorially" understood by
SO/OO. The EMF format also has the additional advantage that it can be
"broken" into its constituent components and edited like any other
SO/OO graphics object.



Authors:
--------
    Allen Barnett <libemf@lignumcomputing.com>

%define prefix   /usr

%prep
%setup
%patch0
# set docdir to main-package name, will only work if only
# one subpackage has doc files
%define _docdir_fmt %{name}

%build
%{?suse_update_config:%{suse_update_config}}
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure \
                --prefix=%{prefix} \
                --libdir=%{_libdir} \
                --mandir=%{_mandir} \
                --infodir=%{_infodir} \
                --sysconfdir=%{_sysconfdir}
make

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{prefix}/bin/*
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README
%doc doc/html
%{prefix}/include/libEMF
%{_libdir}/*.so
%{_libdir}/*.*a

%changelog
* Wed Aug 13 2008 ro@suse.de
- move ExclusiveArch to main package
* Fri Feb 29 2008 ro@suse.de
- fix build with current gcc
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Sat Aug 23 2003 ro@suse.de
- added ExclusiveArch to specfile
* Sun Jun 15 2003 coolo@suse.de
- package %%_docdir
* Thu Nov 21 2002 sbrabec@suse.cz
- New package.