summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tqt3/qt3-devel-doc.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'opensuse/core/tqt3/qt3-devel-doc.spec.in')
-rw-r--r--opensuse/core/tqt3/qt3-devel-doc.spec.in104
1 files changed, 104 insertions, 0 deletions
diff --git a/opensuse/core/tqt3/qt3-devel-doc.spec.in b/opensuse/core/tqt3/qt3-devel-doc.spec.in
new file mode 100644
index 000000000..91a409995
--- /dev/null
+++ b/opensuse/core/tqt3/qt3-devel-doc.spec.in
@@ -0,0 +1,104 @@
+#
+# spec file for package qt3-devel-doc
+#
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+# norootforbuild
+
+
+Name: qt3-devel-doc
+BuildRequires: cups-devel freeglut-devel freetype2-devel gcc-c++ pkgconfig update-desktop-files qt3-devel
+%if %suse_version < 1130
+BuildRequires: libpng-devel
+%else
+BuildRequires: libpng14-devel
+%endif
+URL: http://www.trolltech.com/
+License: GPL, QPL
+Autoreqprov: on
+Summary: Documentation for the Qt 3 Development Kit
+Group: Documentation/HTML
+Version: 3.4.0
+Release: 1
+PreReq: /bin/grep
+BuildArch: noarch
+Provides: qt3-devel-tutorial
+Obsoletes: qt3-devel-tutorial
+Requires: qt3-devel
+# COMMON-BEGIN
+# COMMON-END
+
+%description
+This package contains the documentation for the Qt 3 Development Kit.
+
+You will find documentation, precompiled examples, and a tutorial for
+getting started with Qt in /usr/lib/qt3/doc.
+
+This package contains the documentation for the Qt 3 Development Kit.
+
+You will find documentation, precompiled examples, and a tutorial for
+getting started with Qt in /usr/lib/qt3/doc.
+
+%build
+export VERSION=%suse_version
+source %SOURCE1 %{version}
+export WLIB=%_lib
+export QTDIR=`pwd`
+if [ %_lib == "lib64" ]; then
+export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DUSE_LIB64_PATHES"
+fi
+export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
+#
+# call build from build_script.rpmrc for threaded Qt library
+# only really needed tools will be builded here, all extra tools will be
+# builded in qt3.spec
+#
+call_configure -thread -shared -no-sql-mysql -no-sql-psql -no-sql-odbc -no-sql-sqlite $OPTIONS
+cd src
+make %{?jobs:-j%jobs}
+cd ..
+
+%install
+export VERSION=%suse_version
+export WLIB=%_lib
+export QTDIR=`pwd`
+source %SOURCE1 %{version}
+cd src
+make INSTALL_ROOT=$RPM_BUILD_ROOT install_htmldocs
+cd ..
+#
+# install menu entries
+#
+%suse_update_desktop_file -i -u qtconfig3 Qt Utility DesktopSettings
+%suse_update_desktop_file -i assistant3 Qt Development Documentation
+
+install -d -m 0755 ${RPM_BUILD_ROOT}/%{_defaultdocdir}/qt3/
+ln -sf /usr/lib/qt3/doc/html ${RPM_BUILD_ROOT}/%{_defaultdocdir}/qt3/
+mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
+install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/usr/share/pixmaps/
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%files
+%defattr(-,root,root)
+%dir /usr/lib/qt3/doc
+%doc /usr/lib/qt3/doc/html
+%{_docdir}/qt3/html
+/usr/share/applications/qtconfig3.desktop
+/usr/share/applications/assistant3.desktop
+/usr/share/pixmaps/assistant3.png
+
+%changelog