Author: frankb
Update of /cvs/extras/rpms/qwt-doc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15876/devel
Modified Files:
.cvsignore sources
Added Files:
qwt-doc.spec qwt-path.patch
Log Message:
initial import
--- NEW FILE qwt-doc.spec ---
Name: qwt-doc
Summary: Documentation of qwt
Version: 5.0.2
Release: 4%{?dist}
URL:
http://qwt.sourceforge.net
License: LGPLv2 with exceptions
Group: Documentation
Source0:
http://downloads.sourceforge.net/qwt/qwt-%{version}.tar.bz2
Source1:
http://downloads.sourceforge.net/qwt/qwt-%{version}.pdf
Patch0: qwt-path.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: qt4-devel
Buildarch: noarch
Requires: qwt = %{version}
%if 0%{?rhel} > 4
%define epel5mode 1
%else
%define epel5mode 0
%endif
%description
The documentation of the lib.
%prep
%setup -q -n qwt-%{version}
%patch0 -p1
sed -i "s\DOCKPATH\ $RPM_BUILD_ROOT%{_docdir}/qwt-%{version}\1" qwtconfig.pri
%build
#fix the file coding
iconv -f ISO-8859-1 -t utf-8 doc/man/man3/QwtPicker.3 -o doc/man/man3/QwtPicker.3.tmp
iconv -f ISO-8859-1 -t utf-8 doc/html/index.html -o doc/html/index.html.tmp
iconv -f ISO-8859-1 -t utf-8 doc/html/class_qwt_picker.html -o
doc/html/class_qwt_picker.html.tmp
iconv -f ISO-8859-1 -t utf-8 doc/html/qwt__symbol_8cpp-source.html -o
doc/html/qwt__symbol_8cpp-source.html.tmp
mv doc/man/man3/QwtPicker.3.tmp doc/man/man3/QwtPicker.3
mv doc/html/index.html.tmp doc/html/index.html
mv doc/html/class_qwt_picker.html.tmp doc/html/class_qwt_picker.html
mv doc/html/qwt__symbol_8cpp-source.html.tmp doc/html/qwt__symbol_8cpp-source.html
#replace encoding string at the html files
find doc/html/ -name "*.html" | xargs sed -i "s/iso-8859-1/utf-8/g"
cd src
%if %{epel5mode}
%{_libdir}/qt4/bin/qmake
%else
qmake-qt4
%endif
sed -i "s\install_doc: first FORCE\install_doc: FORCE\1" Makefile
%install
rm -rf $RPM_BUILD_ROOT
make -f src/Makefile install_doc COPY="cp -a"
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/qwt-%{version}/
#fix the path of the man pages
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
mv $RPM_BUILD_ROOT%{_docdir}/qwt-%{version}/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3/
rm -rf $RPM_BUILD_ROOT%{_docdir}/qwt-%{version}/man
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_docdir}/qwt-%{version}/*
%{_mandir}/man3/*
%changelog
* Sun Sep 30 2007 Frank Büttner <frank-buettner(a)gmx.net - 5.0.2-4
- modify the file encoding
* Sat Sep 29 2007 Frank Büttner <frank-buettner(a)gmx.net - 5.0.2-3
- add EPEL support
* Sat Sep 29 2007 Frank Büttner <frank-buettner(a)gmx.net - 5.0.2-2
- fix spec file
* Mon Jun 11 2007 Frank Büttner <frank-buettner(a)gmx.net - 5.0.2-1
- split the doc files.
qwt-path.patch:
--- NEW FILE qwt-path.patch ---
diff -Nur
qwt-5.0.1.org/designer/designer.pro qwt-5.0.1/designer/designer.pro
---
qwt-5.0.1.org/designer/designer.pro 2007-05-15 15:23:47.000000000 +0200
+++ qwt-5.0.1/designer/designer.pro 2007-05-15 17:29:13.000000000 +0200
@@ -92,7 +92,7 @@
RESOURCES += \
qwt_designer_plugin.qrc
- target.path = $$[QT_INSTALL_PLUGINS]/designer
+ target.path = QTDESIGNERPATH
INSTALLS += target
}
diff -Nur
qwt-5.0.1.org/qwtconfig.pri qwt-5.0.1/qwtconfig.pri
---
qwt-5.0.1.org/qwtconfig.pri 2007-05-15 12:07:33.000000000 +0200
+++ qwt-5.0.1/qwtconfig.pri 2007-05-15 15:52:39.000000000 +0200
@@ -1,18 +1,6 @@
-######################################################################
-# Install paths
-######################################################################
-
-unix {
- INSTALLBASE = /usr/local/qwt-5.0.2
-}
-
-win32 {
- INSTALLBASE = C:/Qwt-5.0.2
-}
-
-target.path = $$INSTALLBASE/lib
-headers.path = $$INSTALLBASE/include
-doc.path = $$INSTALLBASE/doc
+target.path = LIBPATH
+headers.path = HEADERPATH
+doc.path = DOCKPATH
######################################################################
# qmake internal options
@@ -58,7 +46,7 @@
# QwtSVGItem.
######################################################################
-#CONFIG += QwtSVGItem
+CONFIG += QwtSVGItem
######################################################################
# If you have a commercial license you can use the MathML renderer
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/qwt-doc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 30 Sep 2007 18:45:05 -0000 1.1
+++ .cvsignore 30 Sep 2007 19:06:32 -0000 1.2
@@ -0,0 +1,2 @@
+qwt-5.0.2.pdf
+qwt-5.0.2.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/qwt-doc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 30 Sep 2007 18:45:05 -0000 1.1
+++ sources 30 Sep 2007 19:06:32 -0000 1.2
@@ -0,0 +1,2 @@
+9eacccf772eb66892450a9d7ad98381d qwt-5.0.2.pdf
+53adbb313c478dd4aae4f1c864a2037e qwt-5.0.2.tar.bz2