Revisions of mingw32-libalkimia

Ralf Habacker's avatar Ralf Habacker (rhabacker) committed (revision 6)
fixes
Ralf Habacker's avatar Ralf Habacker (rhabacker) committed (revision 5)
- Add _multibuild
A    _service
A    alkimia-8.1.0.tar.xz
A    manage-translations
A    mingw32-libalkimia-installer.spec
A    mingw32-libalkimia.changes
A    mingw32-libalkimia.spec

Diff for working copy: .
Index: manage-translations
===================================================================
--- manage-translations	(revision 0)
+++ manage-translations	(revision 0)
@@ -0,0 +1,184 @@
+#!/bin/sh
+#
+# Manage KDE translations on OBS
+#
+# @author: Ralf Habacker <ralf.habacker@freenet.de>
+# @author: Thomas Baumgart <thb@net-bembel.de>
+#
+# Syntax: 
+#     manage-translations <mode> [<options>]
+# 
+# Options:
+#    --fetch[5] [<svnrootpath>] [<msgrelpath>] [<docrelpath>]
+#    --clean[5]
+#    --pack[5] (includes --clean)
+#    --unpack[5] <tar ball>
+
+KDE_VERSION=4
+
+fetch_translations () {
+	if ! test -d po; then
+		mkdir -p po
+	fi
+	cd po
+
+	# setup defaults
+	case $KDE_VERSION in
+	  5)
+		SVNROOTPATH=svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/
+		APPSVNROOTPATH=$SVNROOTPATH
+		MSG_RELPATH=messages/extragear-office
+		DOC_RELPATH=docs/extragear-office/kmymoney
+		;;
+	  4)
+		SVNROOTPATH=svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kde4/
+		APPSVNROOTPATH=$SVNROOTPATH
+		MSG_RELPATH=messages/extragear-office
+		DOC_RELPATH=docs/extragear-office/kmymoney
+
+		cat > CMakeLists.txt <<EOF
+# Search KDE installation
+find_package(KDE4 REQUIRED)
+find_package(Gettext REQUIRED)
+include (KDE4Defaults)
+include(MacroOptionalAddSubdirectory)
+
+if (NOT GETTEXT_MSGMERGE_EXECUTABLE)
+MESSAGE(FATAL_ERROR "Please install the msgmerge binary")
+endif (NOT GETTEXT_MSGMERGE_EXECUTABLE)
+
+IF(NOT GETTEXT_MSGFMT_EXECUTABLE)
+MESSAGE(FATAL_ERROR "Please install the msgfmt binary")
+endif (NOT GETTEXT_MSGFMT_EXECUTABLE)
+EOF
+		;;
+	esac
+
+	if test -n "$2"; then
+		SVNROOTPATH=$2
+	fi
+	if test -n "$3"; then
+		MSG_RELPATH=$3
+	fi
+	if test -n "$4"; then
+		DOC_RELPATH=$4
+	fi
+	MSG_SVNPATH=$APPSVNROOTPATH/@LANG@/$MSG_RELPATH
+	DOC_SVNPATH=$APPSVNROOTPATH/@LANG@/$DOC_RELPATH
+
+	svn co --depth=files $SVNROOTPATH .
+
+	for i in $(cat subdirs); do
+		mkdir -p $i/docs/kmymoney
+		if ! test -d "$i/.svn"; then
+			(cd $i; p=$(echo $MSG_SVNPATH | sed "s,@LANG@,$i,g"); svn co $p .)
+			(cd $i; p=$(echo $DOC_SVNPATH | sed "s,@LANG@,$i,g"); svn co $p docs/kmymoney)
+			# remove docs dir if translated docs are not present
+			rmdir --ignore-fail-on-non-empty -p $i/docs/kmymoney
+		fi
+		if test -f $i/kmymoney.po; then
+			case $KDE_VERSION in
+			  5)
+				;;
+			  4)
+				echo "add_subdirectory($i)" >>CMakeLists.txt
+				echo "GETTEXT_PROCESS_PO_FILES($i ALL INSTALL_DESTINATION \${LOCALE_INSTALL_DIR} kmymoney.po)" >$i/CMakeLists.txt
+				;;
+			esac
+		fi
+	done
+}
+
+clean_translations() {
+	# remove svn internal files
+	find po -name .svn -exec rm -rf {} \;
+	# remove non kmymoney files
+	find po -name *.po	| grep -v kmymoney | xargs rm
+	# remove non program binary translation files
+	find po -name *_* -a -type f | xargs rm
+	find po -name org.kde* | xargs rm
+	# remove files that do not belong into a package
+	rm -rf po/x-test
+	rm po/README po/subdirs po/teamnames
+	# remove emtpy directories
+	rmdir --ignore-fail-on-non-empty po/*
+}
+
+pack_translations() {
+	# collect remaining files
+	tar -cJf translations.tar.xz po
+}
+
+#
+# supports tar ball with the following directory layout
+#   po/...
+#   <some-dir>/po/...
+# 
+unpack_translations() {
+	mkdir tmp
+	cd tmp
+	t=$(echo $1 | grep "7z")
+	if test -n "$t"; then
+		7z x $1
+	else    
+		tar -xJf $1
+	fi
+	if test -d po; then
+		cp -a po ..
+	else
+		cp -a */po ..
+	fi
+	cd ..
+	rm -rf tmp
+	patch_cmake_lists_file
+}
+
+patch_cmake_lists_file() {
+	case $KDE_VERSION in
+	  5)
+		a=$(grep ki18n_install CMakeLists.txt)
+		if test -z "$a"; then
+			cat >> CMakeLists.txt <<EOF
+find_package(KF5I18n CONFIG REQUIRED)
+ki18n_install(po)
+
+find_package(KF5DocTools CONFIG)
+if(KF5DocTools_FOUND)
+    kdoctools_install(po)
+endif()
+EOF
+		fi
+		;;
+	  4)
+		a=$(grep "macro_optional_add_subdirectory( po )" CMakeLists.txt)
+		if test -z "$a"; then
+			cat >> CMakeLists.txt <<EOF
+include(MacroOptionalAddSubdirectory)
+macro_optional_add_subdirectory( po )
+EOF
+		fi
+		;;
+	esac
+}
+
+case $1 in
+--*5)
+	KDE_VERSION=5
+	;;
+esac
+
+case $1 in
+--fetch*)
+	fetch_translations
+	;;
+--clean*)
+	clean_translations
+	;;
+--pack*)
+	clean_translations
+	pack_translations
+	;;
+--unpack*)
+	unpack_translations $2
+	;;
+esac

Index: _service
===================================================================
--- _service	(revision 0)
+++ _service	(revision 0)
@@ -0,0 +1,12 @@
+<services>
+  <service name="tar_scm">
+     <param name="scm">git</param>
+     <param name="url">https://invent.kde.org/office/alkimia.git</param>
+     <param name="versionformat">master+%cd+git.%h</param>
+    <param name="revision">master</param>
+  </service>
+  <service name="recompress">
+     <param name="file">*.tar</param>
+     <param name="compression">xz</param>
+  </service>
+<service name="set_version"/></services>

Index: mingw32-libalkimia.changes
===================================================================
--- mingw32-libalkimia.changes	(revision 0)
+++ mingw32-libalkimia.changes	(revision 0)
@@ -0,0 +1,125 @@
+-------------------------------------------------------------------
+Wed Mar 16 15:17:43 UTC 2022 - Ralf Habacker <ralf.habacker@freenet.de>
+
+- Add _multibuild
+
+-------------------------------------------------------------------
+Wed Jan 20 13:50:41 UTC 2021 - Ralf Habacker <ralf.habacker@freenet.de>
+
+- Update to 8.0.4.
+- Split out the qt5 build variant into a separate package to fix
+  spec file naming mismatch
+- Remove obsolete definition for Png2Ico_EXECUTABLE; it has been
+  added to mingw32-kf5-filesystem
+
+-------------------------------------------------------------------
+Wed Jan 20 07:42:48 UTC 2021 - Ralf Habacker <ralf.habacker@freenet.de>
+
+- Create separate source package for each build variant to have
+  unique dependencies
+- Fix wrong package name in the qt5 build variant
+
+-------------------------------------------------------------------
+Tue Jun 2 20:01:00 UTC 2020 - Ralf Habacker <ralf.habacker@freenet.de>
+
+- Fix not finding i686-w64-mingw32-png2ico for building qt5
+
+-------------------------------------------------------------------
+Thu May 28 19:38:38 UTC 2020 - ralf.habacker@freenet.de
+
+- Add different tarball and _multibuild file for building qt5
+  variant caused by incompatibilites
+
+-------------------------------------------------------------------
+Fri Jan 24 08:51:09 UTC 2020 - Ralf Habacker <ralf.habacker@freenet.de>
+
+- Disable financequote.pl because of missing dependencies
+
+-------------------------------------------------------------------
+Sat Jan 11 09:28:53 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
+
+- Update to 8.0.3.
+  * Add option to disable Webkit on KF5 builds
+  * Bug and crash fixes
+  * Don't hardcode the QML install dir
+  * Fix integration of "Finance::Quote" sources into kmymoney
+  * Export class AlkWebPage as wrapper for a generic web page
+  * Fix installing and finding financequote.pl
+  * Add experimental support for financequote.pl
+
+-------------------------------------------------------------------
+Sat Apr 27 10:19:10 UTC 2019 - ralf.habacker@freenet.de
+
+- fix dependencies for language packages
+
+-------------------------------------------------------------------
+Fri Apr 26 22:16:44 UTC 2019 - ralf.habacker@freenet.de
+
+- fix building of qt4 and qt5 variant
+  Until 8.0.2 is out we are using a git tarball to get recent fixed.
+  For translation support a copy of alkimia 8.0.1 source tarball
+  is embedded.
+
+-------------------------------------------------------------------
+Wed Apr 24 12:59:41 UTC 2019 - ralf.habacker@freenet.de
+
+- update to version 8.0.1 stable
+
+-------------------------------------------------------------------
+Thu Oct 25 09:14:40 UTC 2018 - Christophe Giboudeaux <christophe@krop.fr>
+
+- Run spec-cleaner.
+- Install the license file.
+
+-------------------------------------------------------------------
+Sat Apr 14 03:36:59 UTC 2018 - wbauer@tmo.at
+
+- update to version 7.0.2:
+  * fix compiling kmymoney 4.8
+
+-------------------------------------------------------------------
+Fri Mar 16 21:02:17 UTC 2018 - wbauer@tmo.at
+
+- update to version 7.0.1:
+  * now also supports MPIR instead of GMP
+
+-------------------------------------------------------------------
+Wed Jan 31 08:43:28 UTC 2018 - wbauer@tmo.at
+
+- Rename package to alkimia, following the upstream name
+
+-------------------------------------------------------------------
+Mon Jan 29 09:50:22 UTC 2018 - nico.kruber@gmail.com
+
+- update to version 7.0 stable
+- thanks to users 'tittiatcoke' and 'wolfi323' for creating the
+  initial unstable package out of the git repository
+- enable package builds for both Qt4 and Qt5
+- remove Fix-AlkValue-operator-QString-w-valueRef.patch (applied
+  upstream)
+
+-------------------------------------------------------------------
+Tue Jul  4 08:35:10 UTC 2017 - jengelh@inai.de
+
+- Fix RPM groups.
+
+-------------------------------------------------------------------
+Sat Jul  1 13:36:08 UTC 2017 - wbauer@tmo.at
+
+- Update to version 5.0.0:
+  * add support for newer versions of cmake (>=2.8.7)
+  * use implicit sharing in AlkValue
+- Add Fix-AlkValue-operator-QString-w-valueRef.patch to fix
+  AlkValue::operator=(QString)
+- Adjust Urls and file lists
+
+-------------------------------------------------------------------
+Fri Jan 20 21:38:35 UTC 2012 - asterios.dramis@gmail.com
+
+- Update to version 4.3.2:
+  * Bugfix release.
+
+-------------------------------------------------------------------
+Tue Aug  9 17:42:54 UTC 2011 - asterios.dramis@gmail.com
+
+- Initial release (version 4.3.1).

Index: mingw32-libalkimia-installer.spec
===================================================================
--- mingw32-libalkimia-installer.spec	(revision 0)
+++ mingw32-libalkimia-installer.spec	(revision 0)
@@ -0,0 +1,68 @@
+#
+# spec file for package mingw32-umbrello-installer
+#
+# Copyright (c) 2014 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/
+#
+
+%define _name   libalkimia
+%define rname   alkimia
+
+Name:           mingw32-%{_name}-installer
+Summary:        Library with common classes and functionality used by finance applications
+License:        LGPL-2.1+
+Group:          Development/Libraries/C and C++
+Url:            https://kmymoney.org/
+Version:        2.25.2
+Release:        0
+Source0:        https://download.kde.org/stable/%{rname}/%{version}/src/%{rname}-%{version}.tar.xz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildArch:      noarch
+BuildRequires:  mingw32-installer-base
+# klauncher
+BuildRequires:  mingw32-kdelibs4
+BuildRequires:  mingw32-kdebase4-runtime
+# not used yet
+#BuildRequires:  mingw32-khelpcenter-online
+BuildRequires:  mingw32-libopenssl
+BuildRequires:  mingw32-onlinequoteseditor
+BuildRequires:  mingw32-shared-mime-info
+
+# language packages
+BuildRequires:  mingw32-kdebase4-runtime-lang
+BuildRequires:  mingw32-kdelibs4-lang
+BuildRequires:  mingw32-libalkimia-lang
+BuildRequires:  mingw32-shared-mime-info-lang
+
+# for debug package
+BuildRequires:  mingw32-libalkimia-debug
+BuildRequires:  mingw32-kdelibs4-debug
+BuildRequires:  mingw32-kdebase4-runtime-debug
+#BuildRequires:  mingw32-khelpcenter-online-debug
+BuildRequires:  mingw32-qt4-debug
+
+%description
+This package contains a setup installer of libalkimia, a library with common classes and functionality used by finance applications
+
+%_mingw32_installer_package -n mingw32-onlinequoteseditor -p libalkimia -P "Libalkimia, a library with common classes and functionality used by finance applications"
+
+%prep
+%_mingw32_installer_prep
+
+%build
+%_mingw32_installer_build -a onlinequoteseditor -e onlinequoteseditor -p onlinequoteseditor -P Onlinequoteseditor -r mingw32-%{_name} -s %{SOURCE0}
+
+%install
+%_mingw32_installer_install
+
+%changelog

Index: mingw32-libalkimia.spec
===================================================================
--- mingw32-libalkimia.spec	(revision 0)
+++ mingw32-libalkimia.spec	(revision 0)
@@ -0,0 +1,167 @@
+#
+# spec file for package mingw32-libalkimia
+#
+# Copyright (c) 2017 SUSE LINUX 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/
+#
+
+%define rname alkimia
+%define soname_qt4 mingw32-libalkimia
+%define soname_qt5 mingw32-libalkimia5
+%define sonum 8
+%define tarversion 8.0.4
+%define with_plasma 0
+
+Name:           mingw32-libalkimia
+Version:        8.0.4
+Release:        0
+Summary:        Library with common classes and functionality used by finance applications
+License:        LGPL-2.1+
+Group:          Development/Libraries/C and C++
+Url:            https://kmymoney.org/
+Source0:        https://download.kde.org/stable/%{rname}/%{version}/src/%{rname}-%{version}.tar.xz
+Source1:        manage-translations
+Source2:        %{rname}-%{tarversion}.tar.xz
+BuildRequires:  mingw32-cross-gcc-c++
+BuildRequires:  doxygen
+BuildRequires:  mingw32-gmp-devel
+BuildRequires:  mingw32-cross-kde4-tools
+BuildRequires:  mingw32-libkde4-devel
+BuildRequires:  mingw32-extra-cmake-modules
+# for translation
+BuildRequires:  mingw32-ki18n-devel
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%_mingw32_package_header_debug
+BuildArch: noarch
+
+# Template for lang sub-package.
+#
+# -c <package> specify conflicting package
+# -n <package> specify custom base name
+# -r <package> specify custom requirement
+# -R do not add requirement from -n option
+# -S do not add supplements
+#
+%define _mingw32_lang_package(n:r:c:RS) \
+%package %{-n:-n %{-n*}-}lang \
+Summary: Translations for package %{-n:%{-n*}}%{!-n:%{name}} \
+Group: System/Localization \
+%{!-R:Requires: %{-n:%{-n*}}%{!-n:%{name}} = %{version}} \
+%{-r:Requires: %{-r*}} \
+%{-c:Conflicts: %{-c*}} \
+Provides: %{-n:%{-n*}}%{!-n:%{name}}-lang-all = %{version} \
+%{!-S:Supplements: %{-n:%{-n*}}%{!-n:%{name}}} \
+BuildArch: noarch \
+%description %{-n:-n %{-n*}-}lang \
+Provides translations for the \"%{-n:%{-n*}}%{!-n:%{name}}\" package.
+
+%_mingw32_lang_package -n %{soname_qt4} -c %{soname_qt5}-lang
+
+%_mingw32_debug_package 
+
+%description
+libalkimia is a library with common classes and functionality used by finance
+applications.
+
+%package -n mingw32-onlinequoteseditor
+Summary:        Application for editing and checking online quotes
+Group:          System/Libraries
+
+%description -n mingw32-onlinequoteseditor
+OnlineQuotesEditor is a gui application for editing and checking online quotes
+applications.
+
+%package -n %{soname_qt4}%{sonum}
+Summary:        Library with common classes and functionality used by finance applications
+Group:          System/Libraries
+
+%description -n %{soname_qt4}%{sonum}
+%{soname_qt4} is a library for Qt4 with common classes and functionality used by finance
+applications.
+
+%package -n %{soname_qt4}-devel
+Summary:        Development Files for %{soname_qt4}
+Group:          Development/Languages/C and C++
+Requires:       %{soname_qt4}%{sonum} = %{version}
+
+%description -n %{soname_qt4}-devel
+The development files for %{soname_qt4}.
+
+%if %with_plasma
+%package -n %{soname_qt4}-plasma-widgets
+Summary:        Alkima plasma widgets
+Group:          System/Libraries
+
+%description -n %{soname_qt4}-plasma-widgets
+This package contains plasma widgets provided by the alkimia library.
+%endif
+
+%prep
+%setup -q -n %{rname}-%{version}
+# import translations
+sh -x %{_sourcedir}/manage-translations --unpack5 %{SOURCE2}
+
+%build
+%_mingw32_cmake_kde4 -d build-qt4 -- -DBUILD_QT4=1 -DGETTEXT_FOUND=1 -DBUILD_APPLETS=%with_plasma
+%make_jobs
+
+%install
+cd build-qt4
+%_mingw32_kde4_makeinstall
+cd ..
+
+%_mingw32_find_lang %{rname} || true
+%_mingw32_find_lang onlinequoteseditor alkimia.lang || true
+%_mingw32_find_lang plasma_applet_onlinequote alkimia.lang || true
+%_mingw32_find_lang plasma_applet_org.wincak.foreigncurrencies2 alkimia.lang || true
+
+%files
+%defattr(-,root,root,-)
+%dir %{_mingw32_libdir}/qt4/plugins/imports
+%dir %{_mingw32_libdir}/qt4/plugins/imports/org
+%dir %{_mingw32_libdir}/qt4/plugins/imports/org/kde
+%dir %{_mingw32_libdir}/qt4/plugins/imports/org/kde/alkimia
+%{_mingw32_libdir}/qt4/plugins/imports/org/kde/alkimia/libqmlalkimia.dll
+%{_mingw32_libdir}/qt4/plugins/imports/org/kde/alkimia/qmldir
+
+%files -n mingw32-onlinequoteseditor
+%defattr(-,root,root,-)
+%{_mingw32_kde4_bindir}/onlinequoteseditor.exe
+%{_mingw32_datadir}/applications/kde4/org.kde.onlinequoteseditor.desktop
+%{_mingw32_datadir}/icons/*/*/*/onlinequoteseditor.*
+
+%if %with_plasma
+%files -n %{soname_qt4}-plasma-widgets
+%defattr(-,root,root,-)
+%{_mingw32_libdir}/kde4/plasma_applet_onlinequote.dll
+%{_mingw32_datadir}/kde4/services/plasma-applet-onlinequote.desktop
+%endif
+
+%files -n %{soname_qt4}-devel
+%defattr(-,root,root,-)
+%dir %{_mingw32_kde4_includedir}/alkimia/
+%{_mingw32_kde4_includedir}/alkimia/Qt4
+%{_mingw32_kde4_libdir}/cmake/LibAlkimia-*/
+%{_mingw32_kde4_libdir}/libalkimia.dll.a
+
+%files -n %{soname_qt4}%{sonum}
+%defattr(-,root,root,-)
+%{_mingw32_kde4_bindir}/libalkimia-*.dll
+%{_mingw32_kde4_configdir}/alkimia-quotes.knsrc
+%{_mingw32_kde4_configdir}/kmymoney-quotes.knsrc
+%{_mingw32_kde4_configdir}/skrooge-quotes.knsrc
+
+%files -n %{soname_qt4}-lang -f %{rname}.lang
+%defattr(-,root,root,-)
+
+%changelog

Index: alkimia-8.1.0.tar.xz
===================================================================
Binary file 'alkimia-8.1.0.tar.xz' added.
Ralf Habacker's avatar Ralf Habacker (rhabacker) committed (revision 4)
Ralf Habacker's avatar Ralf Habacker (rhabacker) committed (revision 3)
Ralf Habacker's avatar Ralf Habacker (rhabacker) committed (revision 2)
- Add _multibuild
Ralf Habacker's avatar Ralf Habacker (rhabacker) committed (revision 1)
Displaying revisions 21 - 26 of 26
openSUSE Build Service is sponsored by