Hello community,

here is the log from the commit of package texworks for openSUSE:Factory 
checked in at 2015-05-06 07:48:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/texworks (Old)
 and      /work/SRC/openSUSE:Factory/.texworks.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "texworks"

Changes:
--------
--- /work/SRC/openSUSE:Factory/texworks/texworks.changes        2013-04-17 
23:18:28.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.texworks.new/texworks.changes   2015-05-06 
07:49:03.000000000 +0200
@@ -1,0 +2,40 @@
+Mon Apr 27 23:04:45 UTC 2015 - [email protected]
+
+- Update to version 0.4.6:
+  + Implement character-level synchronization by using text
+    searching to assist SyncTeX.
+  + Lift hardwrap line length limitation and implement (hard)
+    unwrap.
+  + Always show console output tab while typesetting to show
+    progress.
+  + Improve the handling of UTF-8 byte order marks.
+  + Improve the log parsing script.
+  + Improve the handling of script errors.
+  + Work around a race condition that causes lines to become
+    invisible, subsequently leading to a crash.
+  + Fix incorrectly accumulating indent.
+  + Fix SyncTeX initialization with non-ASCII filenames.
+  + Fix selection of whole lines and when selecting right-to-left.
+  + Fix hangs and crashes when using "Fit to ..." in the PDF view.
+  + Fix a crash when running an invalid system command from
+    scripts.
+  + Fix encoding issues when reading environment variables.
+  + Fix scrolling when searching for multi-line strings.
+  + Fix auto-completion when working with RTL languages.
+  + Improve the handling of Retina displays in Mac OS X.
+  + Fix a crash when opening PDF files from the Windows
+    Explorer.
+  + Provide texworks.appdata.xml for *nix platforms.
+  + Fix compilation with Qt 5.
+  + Improve the CMake build system.
+  + Add support for Lua 5.2.
+  + Move development from Google Code to GitHub.
+- Drop conditionals referring to out-of-support openSUSE
+  releases.
+- Update source URL.
+- Use CMake based build system.
+- Build with Qt5 for openSUSE >= 13.2.
+- Drop manual from filelist, no longer bundled by upstream, see
+  http://www.tug.org/texworks/#Documentation instead.
+
+-------------------------------------------------------------------

Old:
----
  texworks-0.4.5-r1281.tar.gz

New:
----
  release-0.4.6.tar.gz

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

Other differences:
------------------
++++++ texworks.spec ++++++
--- /var/tmp/diff_new_pack.fdl5bF/_old  2015-05-06 07:49:04.000000000 +0200
+++ /var/tmp/diff_new_pack.fdl5bF/_new  2015-05-06 07:49:04.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package TeXworks
+# spec file for package texworks
 #
-# Copyright 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2007-09 by Jonathan Kew.
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,27 +12,41 @@
 # 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 release_num r1281
 
 Name:           texworks
-Version:        0.4.5
-Release:        1
-License:        GPL-2.0+
+Version:        0.4.6
+Release:        0
 Summary:        TeXshop-like TeX Editor
-Url:            http://www.tug.org/texworks/
+License:        GPL-2.0+
 Group:          Productivity/Publishing/TeX/Frontends
-Source0:        
http://texworks.googlecode.com/files/%{name}-%{version}-%{release_num}.tar.gz
+Url:            http://www.tug.org/texworks/
+Source0:        
https://github.com/TeXworks/texworks/archive/release-%{version}.tar.gz
+BuildRequires:  cmake
 BuildRequires:  dbus-1-devel
 BuildRequires:  desktop-file-utils
 BuildRequires:  hunspell-devel
-BuildRequires:  libpoppler-devel
-BuildRequires:  libpoppler-qt4-devel
+BuildRequires:  libpoppler-devel >= 0.24
+%if 0%{?suse_version} >= 1320
+BuildRequires:  libpoppler-qt5-devel >= 0.24
+BuildRequires:  pkgconfig(Qt5Core)
+BuildRequires:  pkgconfig(Qt5DBus)
+BuildRequires:  pkgconfig(Qt5Gui)
+BuildRequires:  pkgconfig(Qt5Script)
+BuildRequires:  pkgconfig(Qt5ScriptTools)
+BuildRequires:  pkgconfig(Qt5UiTools)
+BuildRequires:  pkgconfig(Qt5Widgets)
+BuildRequires:  pkgconfig(Qt5Xml)
+%else
+BuildRequires:  libpoppler-qt4-devel >= 0.24
 BuildRequires:  libqt4-devel
-BuildRequires:  update-desktop-files
-BuildRequires:  python-devel
+%endif
 BuildRequires:  lua-devel
+BuildRequires:  python-devel
+BuildRequires:  update-desktop-files
 Requires:       dbus-1
 Requires:       hunspell
 Requires:       poppler-tools
@@ -51,8 +65,8 @@
 %package plugin-python
 Summary:        Plugins to add python scripting to texworks
 Group:          Development/Libraries/Python
-Requires:       python
 Requires:       %{name} = %{version}
+Requires:       python
 
 %description plugin-python
 The TeXworks project is an effort to build a simple TeX front-end
@@ -68,8 +82,8 @@
 %package plugin-lua
 Summary:        Plugins to add python scripting to texworks
 Group:          Development/Libraries/Other
-Requires:       lua
 Requires:       %{name} = %{version}
+Requires:       lua
 
 %description plugin-lua
 The TeXworks project is an effort to build a simple TeX front-end
@@ -83,66 +97,52 @@
 This package adds lua scripting abitilies to TeXworks.
 
 %prep
-%setup -q -n texworks-%{version}
+%setup -q -n texworks-release-%{version}
 
 %build
 
-#Python plugin 
-pushd plugins-src/TWPythonPlugin/
-qmake 'INSTALL_PREFIX=%{_prefix}' 'TW_PLUGINPATH=%{_libdir}/%{name}' -after \
-             'INCLUDEPATH -= /usr/include/python2.6/' \
-             'INCLUDEPATH += %{_includedir}/python%{py_ver}/' \
-             'LIBS -= -lpython2.6' \
-             'LIBS += -lpython%{py_ver}'
-popd
-
-#Lua plugin
-pushd plugins-src/TWLuaPlugin/
-qmake 'INSTALL_PREFIX=%{_prefix}' 'TW_PLUGINPATH=%{_libdir}/%{name}' -after \
-            'PKGCONFIG -= lua5.1' \
-            'PKGCONFIG += lua'
-popd
-
-#Main package
-qmake 'TW_BUILD_ID=openSUSE' 'INSTALL_PREFIX=%{_prefix}' 
'TW_HELPPATH=%{_docdir}/%{name}/manual' 'DOCS_DIR=%{_docdir}/%{name}' -after \
-            'QMAKE_CXXFLAGS -= -DTW_DICPATH=\\\"/usr/share/myspell/dicts\\\"' \
-            'QMAKE_CXXFLAGS += -DTW_DICPATH=\\\"%{_datadir}/myspell\\\"'
+mkdir build
+pushd build
+cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \\\
+      -DTW_BUILD_ID="openSUSE" \\\
+      -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=%{_lib} \\\
+      -DWITH_LUA=ON \\\
+      -DWITH_PYTHON=ON \\\
+%if 0%{?suse_version} >= 1320      
+      -DDESIRED_QT_VERSION="5" \\\
+%else
+      -DDESIRED_QT_VERSION="4" \\\
+%endif
+      -DTeXworks_PLUGIN_DIR=%{_libdir}/%{name} \\\
+      ..
  
-%install
-#Python plugin 
-pushd plugins-src/TWPythonPlugin/
-make INSTALL_ROOT=%{buildroot} install
-popd
+make %{?_smp_mflags} VERBOSE=1
 
-#Lua plugin
-pushd plugins-src/TWLuaPlugin/
-make INSTALL_ROOT=%{buildroot} install
 popd
 
-#Main package
-make INSTALL_ROOT=%{buildroot} install
+%install
+pushd build
+%make_install
 %suse_update_desktop_file texworks Publishing WordProcessor
+popd
 
-%clean
-rm -rf %{buildroot}
+# Package doc files using %%doc, remove them here
+for i in COPYING README.md NEWS
+do
+  rm %{buildroot}%{_datadir}/doc/%{name}/${i}
+done
 
 %post
-%if 0%{?suse_version} > 1130
 %desktop_database_post
-%else
-gtk-update-icon-cache %{_datadir}/icons/hicolor || true
-%endif
  
 %postun
-%if 0%{?suse_version} > 1130
 %desktop_database_postun
-%else
-gtk-update-icon-cache %{_datadir}/icons/hicolor || true
-%endif
 
 %files
 %defattr(-,root,root)
-%doc COPYING README NEWS manual/
+%doc COPYING README.md NEWS
+%dir %{_datadir}/appdata
+%{_datadir}/appdata/texworks.appdata.xml
 %{_bindir}/texworks
 %{_datadir}/applications/texworks.desktop
 %{_datadir}/pixmaps/*.png


Reply via email to