Update to 0.6.4

Drop switches for Qt4 and Python2
This commit is contained in:
Robin Lee 2020-03-18 14:24:47 +00:00
parent ed5722209b
commit 0c14b5a80c
3 changed files with 10 additions and 23 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ texworks-0.2.3.tar.gz
/texworks-release-0.6.1.tar.gz
/texworks-release-0.6.2.tar.gz
/texworks-release-0.6.3.tar.gz
/texworks-release-0.6.4.tar.gz

View File

@ -1 +1 @@
SHA512 (texworks-release-0.6.3.tar.gz) = 389cf54441e74164fc842f2f293cdee45c6ff9fe202f262d32f3fb076de9a29813a62cd75052969293f2f784e0722215bbbf2206e75bc836a13d495bf5aed653
SHA512 (texworks-release-0.6.4.tar.gz) = 8fa3e16e6ee19d46dba30707e7a83340c1d68f6cb855cc2838c5c168dc580f8973cb7438bdfce93e51962653694d369c51d7a82a07ad6bcf5eb89030fa3640ea

View File

@ -1,15 +1,8 @@
%if 0%{?fedora} >= 22
%global use_qt5 1
%endif
%if 0%{?fedora} >= 30 || 0%{?rhel} > 7
%global use_python3 1
%endif
%global __provides_exclude_from ^%{_libdir}/%{name}/.*\\.so$
Name: texworks
Version: 0.6.3
Release: 6%{?dist}
Version: 0.6.4
Release: 1%{?dist}
Summary: A simple IDE for authoring TeX documents
License: GPLv2+
@ -19,7 +12,6 @@ Source0: https://github.com/TeXworks/texworks/archive/release-%{version}/
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: hunspell-devel
%if 0%{?use_qt5}
BuildRequires: poppler-qt5-devel
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Widgets)
@ -29,14 +21,7 @@ BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5ScriptTools)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: zlib-devel
%else
BuildRequires: poppler-qt4-devel
%endif
%if 0%{?use_python3}
BuildRequires: python3-devel
%else
BuildRequires: python2-devel
%endif
BuildRequires: lua-devel
BuildRequires: desktop-file-utils
BuildRequires: cmake
@ -55,10 +40,7 @@ You may install the texlive-* packages to make this program useful.
%build
mkdir build
pushd build
%cmake .. -DWITH_PYTHON=ON -DTW_BUILD_ID=Fedora -DTeXworks_DIC_DIR=%{_datadir}/myspell -DTeXworks_PLUGIN_DIR=%{_libdir}/texworks -DCMAKE_BUILD_TYPE=RelWithDebInfo \
%if 0%{?use_qt5}
-DDESIRED_QT_VERSION=5
%endif
%cmake .. -DWITH_PYTHON=ON -DTW_BUILD_ID=Fedora -DTeXworks_DIC_DIR=%{_datadir}/myspell -DTeXworks_PLUGIN_DIR=%{_libdir}/texworks -DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
popd
@ -76,11 +58,15 @@ rm %{buildroot}/%{_docdir}/%{name}/COPYING
%{_libdir}/%{name}/
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*/apps/TeXworks*
%{_datadir}/metainfo/*
%changelog
* Wed Mar 18 2020 Robin Lee <cheeselee@fedoraproject.org> - 0.6.4-1
- Update to 0.6.4
- Drop switches for Qt4 and Python2
* Tue Feb 25 2020 Robin Lee <cheeselee@fedoraproject.org> - 0.6.3-6
- Filter private shared libraries