2011-04-04 07:42:27 +00:00
|
|
|
#
|
2015-05-04 01:19:47 +00:00
|
|
|
# spec file for package texworks
|
2011-04-04 07:42:27 +00:00
|
|
|
#
|
2019-03-20 11:22:18 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-04-04 07:42:27 +00:00
|
|
|
# Copyright (c) 2007-09 by Jonathan Kew.
|
|
|
|
#
|
|
|
|
# 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.
|
2015-05-04 01:19:47 +00:00
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-04-04 07:42:27 +00:00
|
|
|
#
|
2012-05-03 14:08:03 +00:00
|
|
|
|
|
|
|
|
2011-04-04 07:42:27 +00:00
|
|
|
Name: texworks
|
2019-03-20 11:22:18 +00:00
|
|
|
Version: 0.6.3
|
2015-05-04 01:19:47 +00:00
|
|
|
Release: 0
|
2011-04-04 07:42:27 +00:00
|
|
|
Summary: TeXshop-like TeX Editor
|
2019-03-20 11:22:18 +00:00
|
|
|
License: GPL-2.0-or-later
|
2011-04-04 07:42:27 +00:00
|
|
|
Group: Productivity/Publishing/TeX/Frontends
|
2015-05-04 01:19:47 +00:00
|
|
|
Url: http://www.tug.org/texworks/
|
|
|
|
Source0: https://github.com/TeXworks/texworks/archive/release-%{version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
2011-04-04 07:42:27 +00:00
|
|
|
BuildRequires: dbus-1-devel
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: hunspell-devel
|
2015-05-04 01:19:47 +00:00
|
|
|
BuildRequires: libpoppler-devel >= 0.24
|
|
|
|
BuildRequires: libpoppler-qt5-devel >= 0.24
|
2019-03-20 11:22:18 +00:00
|
|
|
BuildRequires: lua-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: texlive-tex-bin
|
|
|
|
BuildRequires: update-desktop-files
|
2016-04-15 12:45:24 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
2015-05-04 01:19:47 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Script)
|
|
|
|
BuildRequires: pkgconfig(Qt5ScriptTools)
|
2019-03-20 11:22:18 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
2015-05-04 01:19:47 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5UiTools)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
2011-04-04 07:42:27 +00:00
|
|
|
Requires: dbus-1
|
|
|
|
Requires: hunspell
|
|
|
|
Requires: poppler-tools
|
|
|
|
Requires: texlive-latex
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2016-07-25 08:29:22 +00:00
|
|
|
The TeXworks project is a simple TeX front-end program (working
|
|
|
|
environment) that is modeled on Dick Koch's TeXShop for Mac OS X.
|
2011-04-04 07:42:27 +00:00
|
|
|
|
2011-04-27 08:46:55 +00:00
|
|
|
%package plugin-python
|
|
|
|
Summary: Plugins to add python scripting to texworks
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
2015-05-04 01:19:47 +00:00
|
|
|
Requires: python
|
2011-04-27 08:46:55 +00:00
|
|
|
|
|
|
|
%description plugin-python
|
2016-07-25 08:29:22 +00:00
|
|
|
The TeXworks project is a simple TeX front-end program (working
|
|
|
|
environment) that is modeled on Dick Koch's TeXShop for Mac OS X.
|
2011-04-27 08:46:55 +00:00
|
|
|
|
|
|
|
This package adds python scripting abitilies to TeXworks.
|
|
|
|
|
|
|
|
%package plugin-lua
|
|
|
|
Summary: Plugins to add python scripting to texworks
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
2015-05-04 01:19:47 +00:00
|
|
|
Requires: lua
|
2011-04-27 08:46:55 +00:00
|
|
|
|
|
|
|
%description plugin-lua
|
2016-07-25 08:29:22 +00:00
|
|
|
The TeXworks project is a simple TeX front-end program (working
|
|
|
|
environment) that is modeled on Dick Koch's TeXShop for Mac OS X.
|
2011-04-27 08:46:55 +00:00
|
|
|
|
|
|
|
This package adds lua scripting abitilies to TeXworks.
|
|
|
|
|
2011-04-04 07:42:27 +00:00
|
|
|
%prep
|
2015-05-04 01:19:47 +00:00
|
|
|
%setup -q -n texworks-release-%{version}
|
2011-04-04 07:42:27 +00:00
|
|
|
|
|
|
|
%build
|
2011-04-27 08:46:55 +00:00
|
|
|
|
2019-03-20 11:22:18 +00:00
|
|
|
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DTW_BUILD_ID="openSUSE" \
|
|
|
|
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=%{_lib} \
|
|
|
|
-DWITH_LUA=ON \
|
|
|
|
-DWITH_PYTHON=ON \
|
|
|
|
-DTeXworks_DIC_DIR=%{_datadir}/myspell \
|
|
|
|
-DDESIRED_QT_VERSION="5" \
|
|
|
|
-DTeXworks_PLUGIN_DIR=%{_libdir}/%{name}
|
|
|
|
|
|
|
|
%cmake_build
|
2011-04-27 08:46:55 +00:00
|
|
|
|
2015-05-04 01:19:47 +00:00
|
|
|
%install
|
2019-03-20 11:22:18 +00:00
|
|
|
%cmake_install
|
2011-04-04 07:42:27 +00:00
|
|
|
%suse_update_desktop_file texworks Publishing WordProcessor
|
|
|
|
|
2015-05-04 01:19:47 +00:00
|
|
|
# Package doc files using %%doc, remove them here
|
|
|
|
for i in COPYING README.md NEWS
|
|
|
|
do
|
|
|
|
rm %{buildroot}%{_datadir}/doc/%{name}/${i}
|
|
|
|
done
|
2011-04-04 07:42:27 +00:00
|
|
|
|
|
|
|
%files
|
2019-03-20 11:22:18 +00:00
|
|
|
%doc README.md NEWS
|
|
|
|
%license COPYING
|
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
%{_datadir}/metainfo/texworks.appdata.xml
|
2011-04-04 07:42:27 +00:00
|
|
|
%{_bindir}/texworks
|
|
|
|
%{_datadir}/applications/texworks.desktop
|
|
|
|
%{_datadir}/pixmaps/*.png
|
2019-03-20 11:22:18 +00:00
|
|
|
%{_mandir}/man1/texworks.1%{?ext_man}
|
2011-04-04 07:42:27 +00:00
|
|
|
|
2011-04-27 08:46:55 +00:00
|
|
|
%files plugin-python
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/*PythonPlugin.so
|
|
|
|
|
|
|
|
%files plugin-lua
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/*LuaPlugin.so
|
|
|
|
|
2011-04-04 07:42:27 +00:00
|
|
|
%changelog
|