89 lines
3.1 KiB
RPMSpec
89 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package SweetHome3D-3DModels
|
|
#
|
|
# 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-models/
|
|
Name: SweetHome3D-3DModels
|
|
Version: 1.9.1
|
|
Release: 0
|
|
Summary: Some extra 3DModels for SweetHome3D
|
|
License: LAL-1.3 AND CC-BY-4.0 AND CC0-1.0
|
|
# LAL-1.3 (Free Art License) for Contributions, LucaPresidente, Trees
|
|
# CC-BY-4.0 for Scopia, KatorLegaz, BlendSwap-CC-BY, Reallusion
|
|
# CC0-1.0 for BlendSwap-CC-0
|
|
URL: http://www.sweethome3d.com/fr/freeModels.jsp
|
|
Source0: %{base_url}/3DModels-%{version}/3DModels-Contributions-%{version}.zip
|
|
Source1: %{base_url}/3DModels-%{version}/3DModels-KatorLegaz-%{version}.zip
|
|
Source2: %{base_url}/3DModels-%{version}/3DModels-Scopia-%{version}.zip
|
|
Source3: %{base_url}/3DModels-%{version}/3DModels-Trees-%{version}.zip
|
|
Source4: %{base_url}/3DModels-%{version}/3DModels-Reallusion-%{version}.zip
|
|
Source5: %{base_url}/3DModels-%{version}/3DModels-LucaPresidente-%{version}.zip
|
|
Source6: %{base_url}/3DModels-%{version}/3DModels-BlendSwap-CC-0-%{version}.zip
|
|
Source7: %{base_url}/3DModels-%{version}/3DModels-BlendSwap-CC-BY-%{version}.zip
|
|
BuildRequires: dos2unix
|
|
BuildRequires: unzip
|
|
Requires: SweetHome3D
|
|
Enhances: SweetHome3D
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Some extra 3DModels for SweetHome3D.
|
|
|
|
This package contains:
|
|
* 3DModels-Contributions
|
|
* 3DModels-KatorLegaz
|
|
* 3DModels-Scopia
|
|
* 3DModels-Trees
|
|
* 3DModels-Reallusion
|
|
* 3DModels-LucaPresidente
|
|
* 3DModels-BlendSwap-CC-0
|
|
* 3DModels-BlendSwap-CC-BY
|
|
|
|
%prep
|
|
# Don't perform default source expansion, just create build directory
|
|
%setup -q -T -c
|
|
|
|
# All sources are flat, need to expand in dedicated directories to
|
|
# avoid filename conflicts for text files.
|
|
for source in %sources; do
|
|
model_dir=`basename $source -%{version}.zip`
|
|
unzip -q -d $model_dir $source
|
|
done
|
|
|
|
# Move a version of each license to build dir (some sources share
|
|
# same license)
|
|
mv 3DModels-Contributions/LICENSE.TXT LAL-1.3.txt
|
|
mv 3DModels-Scopia/LICENSE.TXT CC-BY-4.0.txt
|
|
mv 3DModels-BlendSwap-CC-0/LICENSE.TXT CC0-1.0.txt
|
|
|
|
# READMEs are all identical, move one of them to build dir
|
|
mv 3DModels-Contributions/README.TXT README.txt
|
|
|
|
dos2unix *.txt
|
|
|
|
%build
|
|
# Nothing to do.
|
|
|
|
%install
|
|
install -D -m 0644 */*.sh3f -t %{buildroot}%{_datadir}/SweetHome3D
|
|
|
|
%files
|
|
%license CC0-1.0.txt CC-BY-4.0.txt LAL-1.3.txt
|
|
%doc README.txt
|
|
%{_datadir}/SweetHome3D
|
|
|
|
%changelog
|