%global appver 2.0.0-rc2 %global build_timestamp 20210103 %global changelog_date Sun Jan 03 2021 %global tarball %([[ %{appver} == *"-"* ]] && echo master || echo %{appver}) Name: ghostwriter Version: %(echo %{appver} | tr '-' '~') Release: 0.%{build_timestamp}%{?dist} License: GPLv3+ and CC-BY and CC-BY-SA and MPLv1.1 and BSD and LGPLv3 and MIT and ISC Summary: A distraction-free Markdown editor URL: http://wereturtle.github.io/%{name}/ Source0: http://github.com/wereturtle/%{name}/archive/%{tarball}.tar.gz BuildRequires: gcc-c++ BuildRequires: make BuildRequires: pkgconfig BuildRequires: pkgconfig(hunspell) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: cmake(Qt5XmlPatterns) BuildRequires: cmake(Qt5WebEngine) BuildRequires: cmake(Qt5X11Extras) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Help) BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5Xml) Requires: hicolor-icon-theme # Required qt5-qtwebengine is not available on some arches. ExclusiveArch: %{qt5_qtwebengine_arches} %description Ghostwriter is a text editor for Markdown, which is a plain text markup format created by John Gruber. For more information about Markdown, please visit John Gruber’s website at http://www.daringfireball.net. Ghostwriter provides a relaxing, distraction-free writing environment, whether your masterpiece be that next blog post, your school paper, or your novel. %prep %autosetup -n %{name}-%{tarball} %build #pushd %{name}-%{tarball} %qmake_qt5 PREFIX=%{_prefix} #popd %make_build %install %make_install INSTALL_ROOT=%{buildroot} %find_lang %{name} --with-qt %files -f %{name}.lang %doc CHANGELOG.md CONTRIBUTING.md CREDITS.md README.md %license COPYING %{_bindir}/ghostwriter %{_datarootdir}/ghostwriter/* %{_metainfodir}/ghostwriter.appdata.xml %{_datarootdir}/applications/ghostwriter.desktop %{_datarootdir}/icons/hicolor/*/apps/ghostwriter.* %{_mandir}/man1/* %changelog * Sun Jan 3 2021 wereturtle - %{appver} - If at first you don't succeed...