rpms/QTeXEngine/devel QTeXEngine-path.patch, NONE, 1.1 QTeXEngine-svn1552.patch, NONE, 1.1 QTeXEngine.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
supercyper
supercyper at fedoraproject.org
Mon Jan 25 17:09:16 UTC 2010
Author: supercyper
Update of /cvs/pkgs/rpms/QTeXEngine/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2109/devel
Modified Files:
.cvsignore sources
Added Files:
QTeXEngine-path.patch QTeXEngine-svn1552.patch QTeXEngine.spec
import.log
Log Message:
* Tue Jan 26 2010 Chen Lei <supercyper AT 163 DOT com> - 0.2-2.20100119svn
- initial commit
QTeXEngine-path.patch:
QTeXEngine.pro | 4 +---
config.pri | 2 +-
src/src.pro | 18 ++++++++++++++++++
3 files changed, 20 insertions(+), 4 deletions(-)
--- NEW FILE QTeXEngine-path.patch ---
diff -Naur QTeXEngine.old/config.pri QTeXEngine/config.pri
--- QTeXEngine.old/config.pri 2009-08-05 10:27:02.000000000 +0800
+++ QTeXEngine/config.pri 2010-01-25 23:59:37.401090753 +0800
@@ -2,7 +2,7 @@
CONFIG += release
# Comment the lines bellow if you want to build QTeXEngine statically
-#CONFIG += QTeXEngineDll
+CONFIG += QTeXEngineDll
diff -Naur QTeXEngine.old/QTeXEngine.pro QTeXEngine/QTeXEngine.pro
--- QTeXEngine.old/QTeXEngine.pro 2009-08-05 10:27:16.000000000 +0800
+++ QTeXEngine/QTeXEngine.pro 2010-01-26 00:11:00.409340153 +0800
@@ -3,6 +3,4 @@
TEMPLATE = subdirs
SUBDIRS = \
- src \
- example \
- test
\ No newline at end of file
+ src
diff -Naur QTeXEngine.old/src/src.pro QTeXEngine/src/src.pro
--- QTeXEngine.old/src/src.pro 2009-08-05 10:29:40.000000000 +0800
+++ QTeXEngine/src/src.pro 2010-01-26 00:38:51.903338460 +0800
@@ -19,3 +19,21 @@
HEADERS = QTeXEngine.h
SOURCES += QTeXPaintEngine.cpp
SOURCES += QTeXPaintDevice.cpp
+# Install directives
+INSTALLBASE = /usr
+
+target.path = $$LIBDIR
+headers.path = $$INSTALLBASE/include/QTeXEngine
+documentation.path = $$QTeXDOCDIR
+example.path = $$QTeXDOCDIR
+test.path = $$QTeXDOCDIR
+
+headers.files = $$HEADERS
+documentation.files += ../doc/html \
+ ../COPYING.txt \
+ ../README.txt \
+ ../CHANGES.txt
+example.files += ../example
+test.files += ../test
+
+INSTALLS = target headers documentation example test
QTeXEngine-svn1552.patch:
QTeXEngine-20100119/src/QTeXPaintEngine.cpp | 2 +-
QTeXEngine.old//COPYING.txt |only
QTeXEngine.old//doc |only
3 files changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE QTeXEngine-svn1552.patch ---
Only in QTeXEngine.old/: COPYING.txt
Only in QTeXEngine.old/: doc
diff -urP --exclude=.svn QTeXEngine.old/src/QTeXPaintEngine.cpp QTeXEngine-20100119/src/QTeXPaintEngine.cpp
--- QTeXEngine.old/src/QTeXPaintEngine.cpp 2009-08-17 15:30:28.000000000 +0800
+++ QTeXEngine-20100119/src/QTeXPaintEngine.cpp 2009-10-02 19:41:56.000000000 +0800
@@ -409,7 +409,7 @@
t << "\\pgfputat";
t << pgfPoint(convertPoint(painter()->worldMatrix().map(r.bottomLeft())));
- t << "{\\pgfimage[interpolate=true,width=";
+ t << "{\\pgfimage[interpolate=false,width=";
QString u = unit();
t << QString::number(r.width()*resFactorX()) + u + ",height=";
--- NEW FILE QTeXEngine.spec ---
Name: QTeXEngine
Version: 0.2
Release: 2.20100119svn%{?dist}
Summary: Library enabling Qt based applications to easily export graphics to TeX
License: GPLv3
Group: System Environment/Libraries
URL: http://soft.proindependent.com/qtexengine/
Source0: http://download.berlios.de/qtiplot/%{name}-%{version}-opensource.zip
# Fixes the build and install of QTeXEngine
Patch0: QTeXEngine-path.patch
# Fixes between 0.2 and svn1552 checkout
Patch1: QTeXEngine-svn1552.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: qt4-devel
BuildRequires: doxygen
BuildRequires: dos2unix
%description
QTeXEngine is a library enabling Qt based applications to easily export
graphics created using the QPainter class to TeX. It is built on top of
QPaintEngine and uses the TikZ/Pgf graphic systems for TeX.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
The %{name}-doc package contains documentation for the %{name} library.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
rm -rf example/.svn
rm -rf test/.svn
#fix source files for debug package
find %{_builddir} -name '*.h' -exec dos2unix {} \;
find %{_builddir} -name '*.hh' -exec dos2unix {} \;
find %{_builddir} -name '*.hpp' -exec dos2unix {} \;
find %{_builddir} -name '*.c' -exec dos2unix {} \;
find %{_builddir} -name '*.cc' -exec dos2unix {} \;
find %{_builddir} -name '*.cpp' -exec dos2unix {} \;
%build
export PATH=%{_qt4_bindir}:$PATH
%_qt4_qmake QTeXDOCDIR=%{_docdir}/%{name}-%{version} LIBDIR=%{_libdir}
make %{?_smp_mflags}
pushd doc
doxygen Doxyfile
popd
dos2unix COPYING.txt
dos2unix README.txt
dos2unix CHANGES.txt
dos2unix example/*
dos2unix test/test*
%install
rm -rf %{buildroot}
make INSTALL="install -p" INSTALL_ROOT=%{buildroot} install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%dir %{_docdir}/%{name}-%{version}
%{_docdir}/%{name}-%{version}/*.txt
%{_libdir}/libQTeXEngine.so.1*
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
%{_libdir}/libQTeXEngine.so
%files doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}/html
%{_docdir}/%{name}-%{version}/example
%{_docdir}/%{name}-%{version}/test
%changelog
* Sat Jan 23 2010 Chen Lei <supercyper AT 163 DOT com> - 0.2-2.20100119svn
- svn 1552
- split doc subpackage
* Thu Jan 21 2010 Chen Lei <supercyper AT 163 DOT com> - 0.2-1
- use qt4-based rpm macros
- drop Requires(post,postun)
* Sun Nov 29 2009 Chen Lei <supercyper AT 163 DOT com> - 0.2-0
- initial rpm build
--- NEW FILE import.log ---
QTeXEngine-0_2-2_20100119svn_fc12:HEAD:QTeXEngine-0.2-2.20100119svn.fc12.src.rpm:1264439181
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/QTeXEngine/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 24 Jan 2010 17:31:31 -0000 1.1
+++ .cvsignore 25 Jan 2010 17:09:15 -0000 1.2
@@ -0,0 +1 @@
+QTeXEngine-0.2-opensource.zip
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/QTeXEngine/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 24 Jan 2010 17:31:31 -0000 1.1
+++ sources 25 Jan 2010 17:09:15 -0000 1.2
@@ -0,0 +1 @@
+fc2fe7f3fdb9e06c00d1f5c3c3e68920 QTeXEngine-0.2-opensource.zip
More information about the scm-commits
mailing list