File leocad.spec of Package leocad

# spec file for package leocad
# Copyright (c) 2023 SUSE LLC
# 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.

# Please submit bugfixes or comments via

Name:           leocad
Version:        23.03
Release:        0
Summary:        CAD program for creating virtual LEGO models
License:        GPL-2.0-only
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt5-linguist
BuildRequires:  libqt5-qtbase-devel >= 5.4.0
BuildRequires:  make
BuildRequires:  update-desktop-files
BuildRequires:  zlib-devel
Requires:       povray

CAD program for creating virtual LEGO models.
It has an intuitive interface, designed to allow
new users to start creating new models without
having to spend too much time learning the

%setup -q


%suse_update_desktop_file -r -G 'CAD Application' %{name} Graphics 3DGraphics
make install INSTALL_ROOT=%{buildroot} DISABLE_UPDATE_CHECK=1 LDRAW_LIBRARY_PATH=%{_datadir}/ldraw
# We install it later correctly
rm -rf %{buildroot}%{_datadir}/doc
# Remove duplicates
%fdupes %{buildroot}%{_datadir}

%license docs/COPYING.txt
%doc docs/{README.txt,CREDITS.txt}

openSUSE Build Service is sponsored by