[EmfEngine] Initial Import

Chen Lei supercyper at fedoraproject.org
Sat Sep 11 00:47:15 UTC 2010


commit e56e7e0eb4b550196a58f0b434289ecde5bb31a7
Author: Chen Lei <supercyper at 163.com>
Date:   Sat Sep 11 08:46:48 2010 +0800

    Initial Import

 .gitignore               |    1 +
 EmfEngine-0.8-path.patch |   22 +++++++++++++
 EmfEngine.spec           |   76 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 4 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bdca239 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/EmfEngine-0.8-opensource.zip
diff --git a/EmfEngine-0.8-path.patch b/EmfEngine-0.8-path.patch
new file mode 100644
index 0000000..dd57f06
--- /dev/null
+++ b/EmfEngine-0.8-path.patch
@@ -0,0 +1,22 @@
+--- EmfEngine/src/src.pro.org	2010-07-27 10:02:59.583419904 +0800
++++ EmfEngine/src/src.pro	2010-07-27 10:04:53.287670706 +0800
+@@ -27,9 +27,17 @@
+ 	}
+ } else {
+ 	win32: LIBS += -lgdi32
+-        unix:  LIBS += /usr/local/lib/libEMF.a
+-        unix:  INCLUDEPATH += /usr/local/include/libEMF
++        unix:  LIBS += -lEMF
++        unix:  INCLUDEPATH += /usr/include/libEMF
+ 	SOURCES += EmfEngine.cpp 
+ 	SOURCES += EmfPaintDevice.cpp
+ }
+ 
++# Install directives
++INSTALLBASE = /usr
++
++target.path = $$LIBDIR
++headers.path = $$INSTALLBASE/include/QTeXEngine
++
++headers.files = $$HEADERS
++INSTALLS = target headers
diff --git a/EmfEngine.spec b/EmfEngine.spec
new file mode 100644
index 0000000..ca7423f
--- /dev/null
+++ b/EmfEngine.spec
@@ -0,0 +1,76 @@
+Name:		EmfEngine
+Version:	0.8
+Release:	1%{?dist}
+Summary:	Library enabling Qt based applications to export graphics to the EMF format
+License:	GPLv3
+Group:		System Environment/Libraries
+URL:		http://soft.proindependent.com/emf
+Source0:	http://download.berlios.de/qtiplot/%{name}-%{version}-opensource.zip
+# Fixes the build and install of EmfEngine
+Patch0:		EmfEngine-0.8-path.patch
+BuildRequires:	libEMF-devel qt4-devel dos2unix
+
+%description
+The  Enhanced MetaFile format (EMF) is the native vector graphics file format
+on Windows. Qt is a cross-platform application development framework, widely 
+used for the development of GUI programs. Although it provides tools for almost
+every aspect of software development, Qt doesn't include a straightforward 
+solution for the export of 2D graphics to the EMF format. EmfEngine covers this
+lack and enables Qt based applications to easily export graphics created using
+the QPainter class to the Enhanced Metafile format. It is built on top of the 
+QPaintEngine class, which provides an abstract definition of how QPainter draws
+to a given device on a given platform. 
+
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+Requires:	libEMF-devel%{?_isa}
+Requires:	qt4-devel%{?_isa}
+
+%description devel
+The %{name}-devel package contains libraries, header files and
+documentation for developing applications that use %{name}.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+
+#fix source files for debug package
+find -type f -exec dos2unix -k {} ";"
+
+%build
+export PATH=%{_qt4_bindir}:$PATH
+pushd src
+%{_qt4_qmake} CONFIG+=EmfEngineDll LIBS+=-lEMF \
+	INCLUDEPATH+=%{_includedir}/libEMF LIBDIR=%{_libdir}
+make %{?_smp_mflags}
+popd
+
+%install
+pushd src
+make install INSTALL="install -p" INSTALL_ROOT=%{buildroot}
+make %{?_smp_mflags}
+popd
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc *.txt
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc example
+%{_includedir}/*
+%{_libdir}/*.so
+
+%changelog
+* Mon Jul 26 2010 Chen Lei <supercyper at 163.com> - 0.8-1
+- initial rpm build
diff --git a/sources b/sources
index e69de29..5fc9182 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5eb31470e1e0e4d95289f76aec5c1b98  EmfEngine-0.8-opensource.zip


More information about the scm-commits mailing list