File boats.spec of Package boats

# This RPM packaging is Copyright (c) 2010, Thibaut GRIDEL <tgridel@free.fr>
# and is licensed under the GPLv3.

Name: boats
Version: 202008
Release: 1
Group: Amusements/Teaching/Other
License: GPLv3
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
BuildRequires: libqt5-qtbase-devel libqt5-linguist giflib-devel update-desktop-files
%define qmake qmake-qt5
%endif

%if 0%{?fedora}
BuildRequires: qt5-qtbase-devel qt5-linguist giflib-devel gcc-c++ libstdc++-devel
%define qmake qmake-qt5
%endif

%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires: qt5-devel lib64ungif4-devel
%else
BuildRequires: qt5-devel giflib-devel
%endif
%define qmake qmake
%endif

BuildRequires: shared-mime-info
Summary: A race scenario drawing tool
Source: %{name}_%{version}.tar.gz

%description
Boat Scenario is a drawing tool. It is your ideal companion for training
sessions, rule learning, strategy explanations and more. It lets you make
a presentation of a situation, describing the facts as you represent the
action.

%prep

%setup -q

%build
%{qmake} CONFIG+=gif_export CONFIG+=unix_deploy PREFIX=/usr boats.pro
make

%install
make INSTALL_ROOT=$RPM_BUILD_ROOT install
install -D -m644 doc/boats.1 \
%{buildroot}/usr/share/man/man1/boats.1
%if 0%{?suse_version}
%suse_update_desktop_file -r boats Education Teaching
%endif

%files
%defattr(-,root,root)
%doc %{_mandir}/man1/boats.1*
/usr/bin/boats
/usr/share/applications/boats.desktop
/usr/share/boats/*qm
/usr/share/boats/*json
/usr/share/icons/hicolor/*/*/*boats.png
/usr/share/mime/packages/boats.xml
%dir /usr/share/boats
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/128x128
%dir /usr/share/icons/hicolor/128x128/apps
%dir /usr/share/icons/hicolor/16x16
%dir /usr/share/icons/hicolor/16x16/apps
%dir /usr/share/icons/hicolor/16x16/mimetypes
%dir /usr/share/icons/hicolor/32x32
%dir /usr/share/icons/hicolor/32x32/apps
%dir /usr/share/icons/hicolor/32x32/mimetypes
%dir /usr/share/icons/hicolor/48x48
%dir /usr/share/icons/hicolor/48x48/apps
%dir /usr/share/icons/hicolor/48x48/mimetypes

%post
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Sat Aug 15 2020 Thibaut GRIDEL <tgridel@free.fr> - 202008
- Upstream version 202008

* Thu Apr 12 2012 Thibaut GRIDEL <tgridel@free.fr> - 201204
- Upstream version 201204

* Sun Apr 04 2010 Thibaut GRIDEL <tgridel@free.fr> - 201004
- Upstream version 201004

* Sat Mar 06 2010 Thibaut GRIDEL <tgridel@free.fr> - 200910
- Upstream version 200910
openSUSE Build Service is sponsored by