Hello community,

here is the log from the commit of package qtodotxt for openSUSE:Factory 
checked in at 2016-05-10 09:27:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qtodotxt (Old)
 and      /work/SRC/openSUSE:Factory/.qtodotxt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qtodotxt"

Changes:
--------
--- /work/SRC/openSUSE:Factory/qtodotxt/qtodotxt.changes        2014-10-16 
14:53:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.qtodotxt.new/qtodotxt.changes   2016-05-10 
09:27:24.000000000 +0200
@@ -1,0 +2,9 @@
+Wed May  4 16:34:01 UTC 2016 - [email protected]
+
+- Update to version 1.6.0:
+  * Port to PyQt5.
+  * Add action for hiding/showing completed tasks.
+  * Add action for hiding/showing future tasks.
+  * Add action for hiding/showing sidebar.
+
+-------------------------------------------------------------------

Old:
----
  1.4.0.tar.gz

New:
----
  qtodotxt-1.6.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qtodotxt.spec ++++++
--- /var/tmp/diff_new_pack.vxMjvo/_old  2016-05-10 09:27:25.000000000 +0200
+++ /var/tmp/diff_new_pack.vxMjvo/_new  2016-05-10 09:27:25.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package qtodotxt
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -18,18 +18,18 @@
 
 %define _name   QTodoTxt
 Name:           qtodotxt
-Version:        1.4.0
+Version:        1.6.0
 Release:        0
 Summary:        Cross-platform UI client for todo.txt files
 License:        GPL-3.0+
 Group:          Productivity/Office/Organizers
 Url:            https://github.com/mNantern/QTodoTxt
-Source:         https://github.com/mNantern/%{_name}/archive/%{version}.tar.gz
+Source:         
https://github.com/mNantern/%{_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
-BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
 BuildRequires:  update-desktop-files
-Requires:       python3-qt4
+Requires:       python3-qt5
 BuildArch:      noarch
 
 %description
@@ -38,49 +38,28 @@
 Todo.txt is a popular, minimalistic TODO list format in which the data
 is stored in a simple text file. Since todo.txt is both machine and
 human-readable, you can check out your tasks with a simple text editor
-from any OS, synchronize it with cloud sync tools such as ownCloud, etc.
+from any OS, synchronise it with cloud sync tools such as ownCloud, etc.
 
 %prep
 %setup -q -n %{_name}-%{version}
 sed -e 's/^Icon=.*$/Icon=%{name}/;/^Keywords/d' 
packaging/Debian/%{name}.desktop > %{name}.desktop
 
 %build
-# Nothing to build.
+python3 setup.py build
 
 %install
-install -Dm 0755 bin/%{name} %{buildroot}%{_datadir}/%{name}/bin/%{name}
-cp -rf {%{name},artwork} %{buildroot}%{_datadir}/%{name}/
+python3 setup.py install \
+  --root=%{buildroot} \
+  --prefix=%{_prefix}
+
 # A tricky way to get all available icon sizes.
 ls artwork/icon/ | sed -n 's/.*-\([0-9]*\).png/\1/p' | while read size; do
     install -Dm 0644 artwork/icon/qTodo-$size.png 
%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
 done
 install -Dm 0644 %{name}.desktop 
%{buildroot}%{_datadir}/applications/%{name}.desktop
 
-dirname $(find %{buildroot}%{_datadir} -name '*.py') | sort -u | while read 
dir; do
-    pushd "$dir"
-    ls *.py | while read py; do
-        # Tranfer to PyQt4 from PySide.
-        sed -i 
's/PySide/PyQt4/g;s/\(QtCore.\)\(Signal\)/\1pyqt\2/g;s/\(QtCore.\)\(Slot\)/\1pyqt\2/g'
 "$py"
-        # One more specific hack about PyQt4.
-        sed -i 
's/\(QAbstractItemView.\)SelectionMode.\(ExtendedSelection\)/\1\2/g' "$py"
-
-        # Add execution bit to scripts with shebangs and remove from others.
-        if [[ "$(head -c2 "$py"; echo)" == "#!" ]]; then
-            chmod a+x "$py"
-        else
-            chmod a-x "$py"
-        fi
-    done
-    # Generate .pyc.
-    touch -c *.py
-    %py3_compile .
-    popd
-done
-
-mkdir -p %{buildroot}%{_bindir}/
-ln -s %{_datadir}/%{name}/bin/%{name} %{buildroot}/%{_bindir}/%{name}
 %suse_update_desktop_file -r -G %{_name} %{name} Utility DesktopUtility
-%fdupes %{buildroot}
+%fdupes %{buildroot}%{python3_sitelib}/
 
 %post
 %desktop_database_post
@@ -94,8 +73,11 @@
 %defattr(-,root,root)
 %doc AUTHORS gpl.txt
 %{_bindir}/%{name}
-%{_datadir}/%{name}/
+%{python3_sitelib}/%{name}/
+%{python3_sitelib}/%{name}-*
 %{_datadir}/applications/%{name}.desktop
-%{_datadir}/icons/hicolor/*/
+%dir %{_datadir}/icons/hicolor/*/
+%dir %{_datadir}/icons/hicolor/*/apps/
+%{_datadir}/icons/hicolor/*/apps/%{name}.*
 
 %changelog


Reply via email to