diff --git a/libemf/libemf.patch b/libemf/libemf.patch new file mode 100644 index 0000000000..df2d8b5940 --- /dev/null +++ b/libemf/libemf.patch @@ -0,0 +1,24 @@ +Index: configure +--- configure.orig 2009-08-12 16:52:16.000000000 +0200 ++++ configure 2010-05-07 13:29:20.000000000 +0200 +@@ -8419,7 +8419,7 @@ + LIBTOOL_DEPS="$ltmain" + + # Always use our own libtool. +-LIBTOOL='$(SHELL) /usr/bin/libtool' ++LIBTOOL='$(SHELL) $(prefix)/bin/libtool' + + + +Index: src/Makefile.in +--- src/Makefile.in.orig 2009-10-02 13:45:40.000000000 +0200 ++++ src/Makefile.in 2010-05-07 13:30:50.000000000 +0200 +@@ -49,7 +49,7 @@ + PROGRAMS = $(bin_PROGRAMS) + printemf_SOURCES = printemf.c + printemf_OBJECTS = printemf.$(OBJEXT) +-printemf_LDADD = $(LDADD) ++printemf_LDADD = $(LDADD) -static + printemf_DEPENDENCIES = $(top_builddir)/libemf/libEMF.la + DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/config + depcomp = $(SHELL) $(top_srcdir)/config/depcomp diff --git a/libemf/libemf.spec b/libemf/libemf.spec new file mode 100644 index 0000000000..41efd756d5 --- /dev/null +++ b/libemf/libemf.spec @@ -0,0 +1,79 @@ +## +## libemf.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2010 OpenPKG Foundation e.V. +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: libemf +Summary: Enhanced Metafile Library +URL: http://libemf.sourceforge.net/ +Vendor: Lignum Computing, Inc. +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Graphics +License: GPL +Version: 1.0.4 +Release: 20100507 + +# list of sources +Source0: http://switch.dl.sourceforge.net/libemf/libEMF-%{version}.tar.gz +Patch0: libemf.patch + +# build information +BuildPreReq: OpenPKG, openpkg >= 20100101, libtool +PreReq: OpenPKG, openpkg >= 20100101 + +%description + This is a library implementation of the ECMA-234 API for the + generation of Enhanced Metafile Format (EMF) files. + +%track + prog libemf = { + version = %{version} + url = http://sourceforge.net/projects/libemf/files/ + regex = libEMF-(__VER__)\.tar\.gz + } + +%prep + %setup -q -n libEMF-%{version} + %patch -p0 + +%build + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + ./configure \ + --prefix=%{l_prefix} \ + --enable-editing \ + --disable-threads \ + --disable-shared + %{l_make} %{l_mflags -O} + +%install + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libEMF.so* + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean +