File focuswriter.spec of Package focuswriter
#
# spec file for package focuswriter
#
# Copyright (c) 2025 Graeme Gott <graeme@gottcode.org>
#
# 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.
Name: focuswriter
Summary: A full-screen, distraction-free writing program
Version: 1.8.12
Release: 1
License: GPL-3.0-or-later
URL: https://gottcode.org/%{name}/
Source: %{name}-%{version}.tar.bz2
#--------------------------------------------------------------------
# Fedora
#--------------------------------------------------------------------
%if 0%{?fedora}
Group: Applications/Editors
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: libappstream-glib
BuildRequires: ninja-build
%endif
#--------------------------------------------------------------------
# SUSE
#--------------------------------------------------------------------
%if 0%{?suse_version}
Group: Productivity/Office/Word Processor
%endif
#--------------------------------------------------------------------
# All
#--------------------------------------------------------------------
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: zlib-devel
BuildRequires: pkgconfig(hunspell)
BuildRequires: cmake
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6PrintSupport)
BuildRequires: cmake(Qt6Widgets)
#--------------------------------------------------------------------
%description
A full-screen, distraction-free writing program. You can customize your
environment by changing the font, colors, and background image to add
ambiance as you type. FocusWriter features an on-the-fly updating word
count, optional auto-save, optional daily goals, and an interface that
hides away to allow you to focus more clearly; additionally, when you
open the program your current work-in-progress will automatically load
and position you at the end of your document, so that you can immediately
jump back in.
%prep
%autosetup -p1
#--------------------------------------------------------------------
# Fedora
#--------------------------------------------------------------------
%if 0%{?fedora}
%build
%cmake_qt6
%cmake_build
%install
%cmake_install
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml || :
%endif
#--------------------------------------------------------------------
# SUSE
#--------------------------------------------------------------------
%if 0%{?suse_version}
%build
%cmake_qt6
%{qt6_build}
%install
%{qt6_install}
%endif
#--------------------------------------------------------------------
%files
%defattr(-,root,root,-)
%if 0%{?suse_version}
%{_datadir}/icons/hicolor/
%endif
%doc ChangeLog COPYING CREDITS README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man?/%{name}.*
%changelog
* Wed May 14 2025 Graeme Gott <graeme@gottcode.org> - 1.8.12-1
- Update to 1.8.12
* Fri Mar 07 2025 Graeme Gott <graeme@gottcode.org> - 1.8.11-1
- Update to 1.8.11
* Fri Feb 14 2025 Graeme Gott <graeme@gottcode.org> - 1.8.10-1
- Update to 1.8.10
* Fri Oct 11 2024 Graeme Gott <graeme@gottcode.org> - 1.8.9-1
- Update to 1.8.9
* Tue May 21 2024 Graeme Gott <graeme@gottcode.org> - 1.8.8-1
- Update to 1.8.8
* Thu May 02 2024 Graeme Gott <graeme@gottcode.org> - 1.8.7-1
- Update to 1.8.7
* Tue Jan 16 2024 Graeme Gott <graeme@gottcode.org> - 1.8.6-1
- Update to 1.8.6
* Tue Jun 27 2023 Graeme Gott <graeme@gottcode.org> - 1.8.5-1
- Update to 1.8.5
* Tue Jan 10 2023 Graeme Gott <graeme@gottcode.org> - 1.8.4-1
- Update to 1.8.4
* Mon Sep 26 2022 Graeme Gott <graeme@gottcode.org> - 1.8.3-1
- Update to 1.8.3
* Thu Sep 01 2022 Graeme Gott <graeme@gottcode.org> - 1.8.2-2
- Fix source file name
* Thu Sep 01 2022 Graeme Gott <graeme@gottcode.org> - 1.8.2-1
- Update to 1.8.2
* Sat Jul 02 2022 Graeme Gott <graeme@gottcode.org> - 1.8.1-3
- Add ownership of icons in openSUSE
* Sat Jul 02 2022 Graeme Gott <graeme@gottcode.org> - 1.8.1-2
- Fix compiler dependency in Fedora
* Sat Jul 02 2022 Graeme Gott <graeme@gottcode.org> - 1.8.1-1
- Update to 1.8.1
* Sun Jun 19 2022 Graeme Gott <graeme@gottcode.org> - 1.8.0-1
- Update to 1.8.0
* Tue Apr 21 2020 Graeme Gott <graeme@gottcode.org> - 1.7.6-1
- Update to 1.7.6
* Mon Feb 24 2020 Graeme Gott <graeme@gottcode.org> - 1.7.5-1
- Update to 1.7.5
* Thu Jan 16 2020 Graeme Gott <graeme@gottcode.org> - 1.7.4-1
- Update to 1.7.4
* Wed Aug 07 2019 Graeme Gott <graeme@gottcode.org> - 1.7.3-1
- Update to 1.7.3
* Thu Mar 07 2019 Graeme Gott <graeme@gottcode.org> - 1.7.2-1
- Update to 1.7.2
* Mon Dec 17 2018 Graeme Gott <graeme@gottcode.org> - 1.7.1-1
- Update to 1.7.1
* Tue Dec 11 2018 Graeme Gott <graeme@gottcode.org> - 1.7.0-1
- Update to 1.7.0
* Mon Sep 03 2018 Graeme Gott <graeme@gottcode.org> - 1.6.16-1
- Update to 1.6.16
* Fri Jul 20 2018 Graeme Gott <graeme@gottcode.org> - 1.6.15-1
- Update to 1.6.15
* Fri Jul 06 2018 Graeme Gott <graeme@gottcode.org> - 1.6.14-1
- Update to 1.6.14
* Tue May 29 2018 Graeme Gott <graeme@gottcode.org> - 1.6.13-1
- Update to 1.6.13
* Sat Apr 14 2018 Graeme Gott <graeme@gottcode.org> - 1.6.12-1
- Update to 1.6.12
* Fri Mar 30 2018 Graeme Gott <graeme@gottcode.org> - 1.6.11-1
- Update to 1.6.11
* Wed Feb 21 2018 Graeme Gott <graeme@gottcode.org> - 1.6.10-1
- Update to 1.6.10
* Wed Feb 07 2018 Graeme Gott <graeme@gottcode.org> - 1.6.9-1
- Update to 1.6.9
* Tue Dec 26 2017 Graeme Gott <graeme@gottcode.org> - 1.6.8-1
- Update to 1.6.8
* Fri Aug 25 2017 Graeme Gott <graeme@gottcode.org> - 1.6.7-1
- Update to 1.6.7
* Sun Jul 30 2017 Graeme Gott <graeme@gottcode.org> - 1.6.6-1
- Update to 1.6.6
* Tue May 30 2017 Graeme Gott <graeme@gottcode.org> - 1.6.5-1
- Update to 1.6.5
* Thu Mar 09 2017 Graeme Gott <graeme@gottcode.org> - 1.6.4-3
- Rename changelog to fix build failure.
* Thu Mar 09 2017 Graeme Gott <graeme@gottcode.org> - 1.6.4-2
- Update location of AppData file.
* Thu Mar 09 2017 Graeme Gott <graeme@gottcode.org> - 1.6.4-1
- Update to 1.6.4
* Sun Dec 11 2016 Graeme Gott <graeme@gottcode.org> - 1.6.3-1
- Update to 1.6.3
* Thu Oct 13 2016 Graeme Gott <graeme@gottcode.org> - 1.6.2-1
- Update to 1.6.2
* Mon Sep 19 2016 Graeme Gott <graeme@gottcode.org> - 1.6.1-1
- Update to 1.6.1
* Sat Aug 27 2016 Graeme Gott <graeme@gottcode.org> - 1.6.0-3
- Fix build failure.
* Sat Aug 27 2016 Graeme Gott <graeme@gottcode.org> - 1.6.0-2
- Adjust file ownership to fix build failure.
* Sat Aug 27 2016 Graeme Gott <graeme@gottcode.org> - 1.6.0-1
- Update to 1.6.0
* Sat Jul 16 2016 Graeme Gott <graeme@gottcode.org> - 1.5.7-1
- Update to 1.5.7
* Wed Jun 22 2016 Graeme Gott <graeme@gottcode.org> - 1.5.6-1
- Update to 1.5.6
* Fri Sep 04 2015 Graeme Gott <graeme@gottcode.org> - 1.5.5-1
- Update to 1.5.5
* Sat Jun 13 2015 Graeme Gott <graeme@gottcode.org> - 1.5.4-1
- Update to 1.5.4
* Tue May 05 2015 Graeme Gott <graeme@gottcode.org> - 1.5.3-3
- Package for Debian 8.
* Mon Jan 05 2015 Graeme Gott <graeme@gottcode.org> - 1.5.3-2
- Add zlib dependency.
* Sun Aug 17 2014 Graeme Gott <graeme@gottcode.org> - 1.5.3-1
- Update to 1.5.3
* Sun Jul 20 2014 Graeme Gott <graeme@gottcode.org> - 1.5.2-1
- Update to 1.5.2
* Tue Jun 24 2014 Graeme Gott <graeme@gottcode.org> - 1.5.1-2
- Add missing semicolon to .desktop file.
* Tue Jun 24 2014 Graeme Gott <graeme@gottcode.org> - 1.5.1-1
- Update to 1.5.1
* Tue Jun 17 2014 Graeme Gott <graeme@gottcode.org> - 1.5.0-3
- Fix version number.
* Tue Jun 17 2014 Graeme Gott <graeme@gottcode.org> - 1.5.0-2
- Add zlib dependency.
* Tue Jun 17 2014 Graeme Gott <graeme@gottcode.org> - 1.5.0-1
- Update to 1.5.0
* Mon May 12 2014 Graeme Gott <graeme@gottcode.org> - 1.4.6-3
- Keep Fedora 19 at Qt 4.
* Mon May 12 2014 Graeme Gott <graeme@gottcode.org> - 1.4.6-2
- Switch to Qt 5.
* Thu Apr 10 2014 Graeme Gott <graeme@gottcode.org> - 1.4.6-1
- Update to 1.4.6
* Tue Mar 25 2014 Graeme Gott <graeme@gottcode.org> - 1.4.5-2
- Add ownership of appdata folder to fix build failure.
* Tue Mar 25 2014 Graeme Gott <graeme@gottcode.org> - 1.4.5-1
- Update to 1.4.5
* Fri May 31 2013 Graeme Gott <graeme@gottcode.org> - 1.4.4-1
- Update to 1.4.4
* Sat Apr 06 2013 Graeme Gott <graeme@gottcode.org> - 1.4.3-1
- Update to 1.4.3
* Wed Mar 27 2013 Graeme Gott <graeme@gottcode.org> - 1.4.2-1
- Update to 1.4.2
* Thu Jan 24 2013 Graeme Gott <graeme@gottcode.org> - 1.4.1-7
- Improve spec file.
* Mon Jan 21 2013 Graeme Gott <graeme@gottcode.org> - 1.4.1-6
- Convert to Debian changefile.
* Mon Jan 21 2013 Graeme Gott <graeme@gottcode.org> - 1.4.1-5
- Fix version number in dsc file.
* Mon Jan 21 2013 Graeme Gott <graeme@gottcode.org> - 1.4.1-4
- Move changelog to changes file.
* Mon Jan 21 2013 Graeme Gott <graeme@gottcode.org> - 1.4.1-3
- Fix dsc format version.
* Mon Jan 21 2013 Graeme Gott <graeme@gottcode.org> - 1.4.1-2
- Add Debian packaging.
* Wed Nov 28 2012 Graeme Gott <graeme@gottcode.org> - 1.4.1-1
- Update to 1.4.1
* Sat Sep 22 2012 Graeme Gott <graeme@gottcode.org> - 1.4.0-1
- Update to 1.4.0
* Tue Jun 12 2012 Graeme Gott <graeme@gottcode.org> - 1.3.6-1
- Update to 1.3.6
* Mon Jan 16 2012 Graeme Gott <graeme@gottcode.org> - 1.3.5.2-1
- Update to 1.3.5.2
* Mon Dec 05 2011 Graeme Gott <graeme@gottcode.org> - 1.3.5.1-3
- Update MIME database and GNOME icon cache.
* Sun Dec 04 2011 Graeme Gott <graeme@gottcode.org> - 1.3.5.1-2
- Add scalable icon.
* Sun Dec 04 2011 Graeme Gott <graeme@gottcode.org> - 1.3.5.1-1
- Update to 1.3.5.1
* Fri Nov 11 2011 Graeme Gott <graeme@gottcode.org> - 1.3.5-4
- Add SLE support.
* Fri Nov 11 2011 Graeme Gott <graeme@gottcode.org> - 1.3.5-3
- Add CentOS support.
* Fri Nov 11 2011 Graeme Gott <graeme@gottcode.org> - 1.3.5-2
- Improve spec file.
* Wed Nov 09 2011 Graeme Gott <graeme@gottcode.org> - 1.3.5-1
- Update to 1.3.5
* Sun Oct 16 2011 Graeme Gott <graeme@gottcode.org> - 1.3.4-1
- Update to 1.3.4
* Mon Jun 27 2011 Graeme Gott <graeme@gottcode.org> - 1.3.3-1
- Update to 1.3.3
* Sat Apr 02 2011 Graeme Gott <graeme@gottcode.org> - 1.3.2.1-2
- Add dependency on hicolor-icon-theme.
* Wed Dec 29 2010 Graeme Gott <graeme@gottcode.org> - 1.3.2.1-1
- Update to 1.3.2.1
* Tue Dec 28 2010 Graeme Gott <graeme@gottcode.org> - 1.3.2-1
- Update to 1.3.2
* Thu Oct 28 2010 Graeme Gott <graeme@gottcode.org> - 1.3.1-1
- Update to 1.3.1
* Thu Sep 23 2010 Graeme Gott <graeme@gottcode.org> - 1.3.0-1
- Update to 1.3.0
* Tue Sep 22 2010 Graeme Gott <graeme@gottcode.org> - 1.2.2-1
- Initial package.