File SweetHome3D-Textures.spec of Package SweetHome3D-Textures
#
# spec file for package SweetHome3D-Textures
#
# Copyright (c) 2021 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 https://bugs.opensuse.org/
#
%define base_url https://downloads.sourceforge.net/project/sweethome3d/SweetHome3D-textures
Name: SweetHome3D-Textures
Version: 1.3
Release: 0
Summary: Some extra Textures for SweetHome3D
Group: Productivity/Graphics/3D Editors
License: CC-BY-4.0
URL: http://www.sweethome3d.com/importTextures.jsp
Source0: %{base_url}/Textures-%{version}/Textures-Contributions-%{version}.zip
Source1: %{base_url}/Textures-%{version}/Textures-eTeksScopia-%{version}.zip
BuildRequires: dos2unix
BuildRequires: unzip
Requires: SweetHome3D
Enhances: SweetHome3D
BuildArch: noarch
%description
Some extra Textures for SweetHome3D
This package contains:
* Textures-Contributions
* Textures-eTeksScopia
%prep
%setup -q -T -c
for source in %sources; do
# All sources are flat and contain identical LICENSE.TXT and
# README.TXT. Use -o to ignore overwrite warning.
unzip -q -o ${source}
done
dos2unix *.TXT
%build
# Nothing to do.
%install
install -D -m 0644 *.sh3t -t %{buildroot}%{_datadir}/SweetHome3D
%files
%doc README.TXT
%license LICENSE.TXT
%{_datadir}/SweetHome3D
%changelog