From dfa4f8e56243cef1a998bdf6cce2d5447a3d9370d2ad52cffc24c9dd2e80aed6 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Mon, 4 May 2015 01:19:47 +0000 Subject: [PATCH] Accepting request 304830 from home:badshah400:branches:Publishing Version 0.4.6 OBS-URL: https://build.opensuse.org/request/show/304830 OBS-URL: https://build.opensuse.org/package/show/Publishing/texworks?expand=0&rev=14 --- release-0.4.6.tar.gz | 3 + texworks-0.4.5-r1281.tar.gz | 3 - texworks.changes | 40 +++++++++++++ texworks.spec | 116 ++++++++++++++++++------------------ 4 files changed, 101 insertions(+), 61 deletions(-) create mode 100644 release-0.4.6.tar.gz delete mode 100644 texworks-0.4.5-r1281.tar.gz diff --git a/release-0.4.6.tar.gz b/release-0.4.6.tar.gz new file mode 100644 index 0000000..f5dbf00 --- /dev/null +++ b/release-0.4.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58650574c1e3234c38cddc3375f8043a83cc65075839030fc7089471af6a3bde +size 11271881 diff --git a/texworks-0.4.5-r1281.tar.gz b/texworks-0.4.5-r1281.tar.gz deleted file mode 100644 index f1f21e9..0000000 --- a/texworks-0.4.5-r1281.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd30ce417ff8241083b6894395489bc529660a46bcb45b7d82d4c6a3f8e6e2de -size 5335925 diff --git a/texworks.changes b/texworks.changes index 0ed8a7d..39a8489 100644 --- a/texworks.changes +++ b/texworks.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +Mon Apr 27 23:04:45 UTC 2015 - badshah400@gmail.com + +- 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. + ------------------------------------------------------------------- Sun Apr 14 21:07:21 UTC 2013 - badshah400@gmail.com diff --git a/texworks.spec b/texworks.spec index a4e58a8..a5535d0 100644 --- a/texworks.spec +++ b/texworks.spec @@ -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 @@ usage on the Mac platform. %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 @@ This package adds python scripting abitilies to TeXworks. %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 @@ usage on the Mac platform. 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}' +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} \\\ + .. + +make %{?_smp_mflags} VERBOSE=1 + 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\\\"' - %install -#Python plugin -pushd plugins-src/TWPythonPlugin/ -make INSTALL_ROOT=%{buildroot} install -popd - -#Lua plugin -pushd plugins-src/TWLuaPlugin/ -make INSTALL_ROOT=%{buildroot} install -popd - -#Main package -make INSTALL_ROOT=%{buildroot} 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