libEMF/libEMF.spec

Name: libEMF
Summary: Library for generating Enhanced Metafiles
Version: 1.0.3
Release: 1
License: LGPL/GPL
Group: System Environment/Libraries
URL: http://libemf.sourceforge.net/
Description: libEMF is a library for generating Enhanced Metafiles on systems which don't natively support the ECMA-234 Graphics Device Interface (GDI). The library is intended to be used as a driver for other graphics programs such as Grace or gnuplot. Therefore, it implements a very limited subset of the GDI.

CentOS 7 x86_64

The build could not start because the following file is missing: libEMF-1.0.3.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: libEMF-1.0.3.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL6 ships with libEMF-1.0.4-1.el6
# ExclusiveDist: el2 el3 el4 el5

Summary: Library for generating Enhanced Metafiles
Name: libEMF
Version: 1.0.3
Release: 1%{?dist}
License: LGPL/GPL
Group: System Environment/Libraries
URL: http://libemf.sourceforge.net/

Source: http://dl.sf.net/pstoedit/libEMF-%{version}.tar.gz
Patch0: libEMF-1.0.3-amd64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: libstdc++-devel

%description
libEMF is a library for generating Enhanced Metafiles on systems which
don't natively support the ECMA-234 Graphics Device Interface
(GDI). The library is intended to be used as a driver for other
graphics programs such as Grace or gnuplot. Therefore, it implements a
very limited subset of the GDI.

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup
%patch0 -p1 -b .amd64
%{__chmod} 0644 libemf/libemf.h

%build
%configure \
    --disable-static \
    --enable-editing
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}" CPPROG="%{__cp} -avp"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING* NEWS README
%{_bindir}/printemf
%{_libdir}/libEMF.so.*

%files devel
%defattr(-, root, root, 0755)
%doc doc/html/
%{_includedir}/libEMF/
%{_libdir}/libEMF.so
%exclude %{_libdir}/libEMF.la

%changelog
* Thu May 24 2007 Dag Wieers <dag@wieers.com> - 1.0.3-1
- Initial package. (using DAR)