File kitscenarist.spec of Package kitscenarist
%define _name scenarist
Name: kitscenarist
Version: @SERVICE@
Release: 0
Summary: Screenwriting software
Summary(ru): Программа для написания сценариев
License: GPL-3.0-or-later
Group: Productivity/Publishing/Other
URL: https://github.com/dimkanovikov/KITScenarist
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.mime.xml
Patch0: desktop_file.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: qt5-qtbase-private-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core) >= 5.7.0
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5WebEngine)
BuildRequires: pkgconfig(Qt5WebEngineWidgets)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(hunspell)
BuildRequires: pkgconfig(mythes)
BuildRequires: pkgconfig(zlib)
BuildRequires: unzip
Requires: qt5-qtsvg
%description
KIT Scenarist combines convenient script editor and organizer of the
screenplay project. Script editor implements numerous opportunities to
facilitate the work of the screenwriter, including: the ability to
autosubstitution locations, names of characters; check the spelling on the
fly; support the grouping of scenes and groups self; painless exporting to
PDF and DOCX in all world languages; customizable timing counting and more.
Options for the characters and locations allow to collect all the material
on the project in one file, and provide a simple way to work with it.
Website: http://kitscenarist.ru
%description -l ru
КИТ Сценарист сочетает в себе удобный текстовый редактор сценария и
органайзер проекта. Текстовый редактор реализует многочисленные
возможности, способствующие работе сценариста, среди которых: возможность
автоподстановки локаций, имён персонажей; проверка правописания на ходу;
поддержка группирования сцен, групп сцен; безболезненный экспорт в форматы
PDF и RTF; настраиваемый подсчёт хронометража и многое другое. Функции для
работы с персонажами и локациями позволяют собрать весь материал по проекту
в одном месте, и предоставляют простой способ для работы с ним.
%prep
%autosetup -p1
chmod 644 README.md LICENSE
%build
pushd ./src
%qmake_qt5
%make_build
popd
%install
#pushd ./src
#%%qmake5_install
#popd
install -Dm 0755 build/Release/bin/%{_name}-desktop/Scenarist %{buildroot}%{_bindir}/%{_name}
install -Dm 0644 build/Rpm/translations/%{_name}-en.desktop %{buildroot}%{_datadir}/applications/%{_name}.desktop
install -Dm 0644 ui/logo.png %{buildroot}%{_datadir}/pixmaps/%{_name}.png
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/%{name}.xml
%files
%doc README.md
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.??g
%dir %{_datadir}/mime
%dir %{_datadir}/mime/packages
%{_datadir}/mime/packages/%{name}.xml
%license LICENSE
%changelog