libEMF/libEMF.spec

120 lines
3.3 KiB
RPMSpec

#
# spec file for package libEMF (Version 1.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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: 254
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)
%package devel
Group: System/Libraries
AutoReqProv: on
Summary: Library for manipulation with Enhanced MetaFile (EMF, ECMA-234)
Requires: %name = %version
# add platforms with a wine port here
ExclusiveArch: axp %ix86 ppc sparc
%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
* 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.