libEMF/libEMF.spec

123 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libEMF (Version 1.0)
#
# Copyright (c) 2005 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://www.suse.de/feedback/
#
# norootforbuild
Name: libEMF
BuildRequires: gcc-c++
License: LGPL
Group: System/Libraries
Autoreqprov: on
Version: 1.0
Release: 185
Source0: %{name}-%{version}.tar.bz2
Patch0: libEMF-gcc3-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 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>
%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 -p1
%{?suse_update_config:%{suse_update_config}}
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure \
--prefix=%{prefix} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--sysconfdir=%{_sysconfdir}
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}
cp -R AUTHORS COPYING COPYING.LIB ChangeLog NEWS README doc/html $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%dir /usr/share/doc/packages/%{name}
%doc /usr/share/doc/packages/%{name}/AUTHORS
%doc /usr/share/doc/packages/%{name}/COPYING
%doc /usr/share/doc/packages/%{name}/COPYING.LIB
%doc /usr/share/doc/packages/%{name}/ChangeLog
%doc /usr/share/doc/packages/%{name}/NEWS
%doc /usr/share/doc/packages/%{name}/README
%{prefix}/bin/*
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{prefix}/include/libEMF
%{_libdir}/*.so
%{_libdir}/*.*a
%defattr(-, root, root)
%doc /usr/share/doc/packages/%{name}/html
%changelog -n libEMF
* 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.