Name: ghostwriter Version: 1.7.4 Release: 1%{?dist} License: GPLv3+ and CC-BY and CC-BY-SA and MPLv1.1 and BSD and LGPLv3 and MIT and ISC Summary: Cross-platform, aesthetic, distraction-free Markdown editor URL: https://github.com/wereturtle/%{name} Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: qt5-linguist BuildRequires: pkgconfig(Qt5XmlPatterns) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Help) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: hunspell-devel BuildRequires: gcc-c++ Requires: hicolor-icon-theme %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 mkdir -p %{_target_platform} sed -i 's@appdata/@metainfo/@g' %{name}.pro %build pushd %{_target_platform} %qmake_qt5 PREFIX=%{_prefix} .. popd %make_build -C %{_target_platform} %check appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %install %make_install INSTALL_ROOT=%{buildroot} -C %{_target_platform} %find_lang %{name} --with-qt %files -f %{name}.lang %doc CHANGELOG.md CONTRIBUTING.md CREDITS.md README.md %license COPYING %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %dir %{_datadir}/ghostwriter %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/pixmaps/%{name}.xpm %{_datadir}/metainfo/%{name}.appdata.xml %changelog * Mon Dec 10 2018 Vitaly Zaitsev - 1.7.4-1 - Updated to version 1.7.4. * Sat Oct 27 2018 Vitaly Zaitsev - 1.7.3-1 - Initial SPEC release.