Accepting request 990520 from home:jubalh:stl

fstl

OBS-URL: https://build.opensuse.org/request/show/990520
OBS-URL: https://build.opensuse.org/package/show/graphics/fstl?expand=0&rev=1
This commit is contained in:
Michael Vetter 2022-07-21 09:30:45 +00:00 committed by Git OBS Bridge
commit ab4872c051
7 changed files with 244 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

102
fstl-mimeinfo.xml Normal file
View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="model/x.stl-binary">
<comment>STL 3D model (binary)</comment>
<comment xml:lang="ca">model 3D STL (binari)</comment>
<comment xml:lang="cs">model STL 3D (binární)</comment>
<comment xml:lang="de">STL 3D-Modell (binär)</comment>
<comment xml:lang="es">modelo 3D STL (binario)</comment>
<comment xml:lang="eu">STL 3D modeloa (binarioa)</comment>
<comment xml:lang="fr">modèle (binaire) STL 3D</comment>
<comment xml:lang="ga">samhail 3T STL (dénártha)</comment>
<comment xml:lang="hr">STL 3D model (binarna datoteka)</comment>
<comment xml:lang="hu">STL 3D modell (bináris)</comment>
<comment xml:lang="id">model STL 3D (biner)</comment>
<comment xml:lang="it">Modello 3D STL (binario)</comment>
<comment xml:lang="kk">STL 3D моделі (екілік)</comment>
<comment xml:lang="ko">STL 3D 모델(바이너리)</comment>
<comment xml:lang="pl">Model 3D STL (binarny)</comment>
<comment xml:lang="pt_BR">Modelo 3D STL (binário)</comment>
<comment xml:lang="ru">3D модель STL (бинарная)</comment>
<comment xml:lang="sk">STL 3D model (binárny)</comment>
<comment xml:lang="sr">СТЛ 3Д модел (извршна)</comment>
<comment xml:lang="sv">STL 3D-modell (binär)</comment>
<comment xml:lang="tr">STL 3D modeli (ikili)</comment>
<comment xml:lang="uk">просторова модель STL (бінарна)</comment>
<comment xml:lang="zh_CN">STL 3D 模型(二进制)</comment>
<comment xml:lang="zh_TW">STL 3D 模型 (二進位)</comment>
<magic priority="10">
<match value="0x0" type="byte" offset="134" mask="0xFFFF">
<match value="0x0" type="byte" offset="184" mask="0xFFFF">
<match value="0x0" type="byte" offset="234" mask="0xFFFF"/>
</match>
</match>
</magic>
<glob pattern="*.stl"/>
</mime-type>
<mime-type type="model/x.stl-ascii">
<comment>STL 3D model (ASCII)</comment>
<comment xml:lang="ca">model 3D STL (ASCII)</comment>
<comment xml:lang="cs">model STL 3D (ASCII)</comment>
<comment xml:lang="de">STL 3D-Modell (ASCII)</comment>
<comment xml:lang="es">modelo 3D STL (ASCII)</comment>
<comment xml:lang="eu">STL 3D modeloa (ASCII)</comment>
<comment xml:lang="fr">modèle (ASCII) STL 3D</comment>
<comment xml:lang="ga">samhail 3T STL (ASCII)</comment>
<comment xml:lang="hr">STL 3D model (ASCII)</comment>
<comment xml:lang="hu">STL 3D modell (ASCII)</comment>
<comment xml:lang="id">model STL 3D (ASCII)</comment>
<comment xml:lang="it">Modello 3D STL (ASCII)</comment>
<comment xml:lang="kk">STL 3D моделі (ASCII)</comment>
<comment xml:lang="ko">STL 3D 모델(아스키)</comment>
<comment xml:lang="pl">Model 3D STL (ASCII)</comment>
<comment xml:lang="pt_BR">Modelo 3D STL (ASCII)</comment>
<comment xml:lang="ru">3D модель STL (ASCII)</comment>
<comment xml:lang="sk">STL 3D model (ASCII)</comment>
<comment xml:lang="sr">СТЛ 3Д модел (АСКРИ)</comment>
<comment xml:lang="sv">STL 3D-modell (ASCII)</comment>
<comment xml:lang="tr">STL 3D modeli (ASCII)</comment>
<comment xml:lang="uk">просторова модель STL (ASCII)</comment>
<comment xml:lang="zh_CN">STL 3D 模型 (ASCII)</comment>
<comment xml:lang="zh_TW">STL 3D 模型 (ASCII)</comment>
<sub-class-of type="text/plain"/>
<generic-icon name="text-x-generic"/>
<magic priority="50">
<match value="solid" type="string" offset="0"/>
<match value="SOLID" type="string" offset="0"/>
</magic>
<glob pattern="*.stl"/>
</mime-type>
<mime-type type="text/x.gcode">
<comment>G-code file</comment>
<comment xml:lang="ca">fitxer G-code</comment>
<comment xml:lang="cs">soubor G-code</comment>
<comment xml:lang="de">G-Code-Datei</comment>
<comment xml:lang="es">archivo G-code</comment>
<comment xml:lang="eu">G-code fitxategia</comment>
<comment xml:lang="fi">G-code-tiedosto</comment>
<comment xml:lang="fr">fichier G-code</comment>
<comment xml:lang="ga">comhad G-code</comment>
<comment xml:lang="hr">G-kôd datoteka</comment>
<comment xml:lang="hu">G-code fájl</comment>
<comment xml:lang="id">berkas G-code</comment>
<comment xml:lang="it">File G-code</comment>
<comment xml:lang="kk">G-code файлы</comment>
<comment xml:lang="ko">지-코드 파일</comment>
<comment xml:lang="pl">Plik G-code</comment>
<comment xml:lang="pt_BR">Arquivo G-code</comment>
<comment xml:lang="ru">Файл G-code</comment>
<comment xml:lang="sk">Súbor G-code</comment>
<comment xml:lang="sr">датотека Г-ко̂да</comment>
<comment xml:lang="sv">G-code-fil</comment>
<comment xml:lang="tr">G-code dosyası</comment>
<comment xml:lang="uk">файл G-code</comment>
<comment xml:lang="zh_CN">G-code 文件</comment>
<comment xml:lang="zh_TW">G-code 檔案</comment>
<sub-class-of type="text/plain"/>
<generic-icon name="text-x-generic"/>
<glob pattern="*.gcode"/>
</mime-type>
</mime-info>

26
fstl.changes Normal file
View File

@ -0,0 +1,26 @@
-------------------------------------------------------------------
Thu Jul 21 08:47:28 UTC 2022 - Michael Vetter <mvetter@suse.com>
- Update to 0.10.0:
* Added README section for setting fstl as default viewer #52
* Fix initial settings #54
* Show 3D axes in viewer #55
* Allow uppercase file suffixes as well #60
* Implement an Invert Zoom option #61
* Remove Legacy Qt Build Option scholl in #62
* Added "Surface Angle" draw mode based on github stl viewer #66
* Versioning in app, other small changes #64
* Fix several Qt deprecation warnings #67
* Remember application settings #78
* Implement compact and fullscreen view #81
-------------------------------------------------------------------
Thu Jul 21 08:46:11 UTC 2022 - Michael Vetter <mvetter@suse.com>
- Copy version 0.9.4 from home:mrbadguy/fstl
- Run spec-cleaner
- Remove camera-pos.patch
- Remove _service and use regular tarball
- Remove calls to %mime_database_post, %desktop_database_post,
%icon_theme_cache_post since since they are run via rpm file
triggers now

11
fstl.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=fstl
Categories=Qt;Graphics;3DGraphics;Viewer
Comment=
Exec=fstl %F
GenericName=Fast STL viewer
Icon=fstl
MimeType=model/x.stl-binary;model/x.stl-ascii
StartupNotify=true
Terminal=false
Type=Application

78
fstl.spec Normal file
View File

@ -0,0 +1,78 @@
#
# spec file for package fstl
#
# Copyright (c) 2022 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/
#
Name: fstl
Version: 0.10.0
Release: 0
Summary: Fast stl file viewer
License: AGPL-3.0-only
Group: Productivity/Graphics/3D Editors
URL: https://github.com/mkeeter/fstl.git
Source0: https://github.com/fstl-app/fstl/archive/refs/tags/v%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}-mimeinfo.xml
BuildRequires: cmake >= 2.8.12
BuildRequires: hicolor-icon-theme
BuildRequires: icoutils
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5OpenGL)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: update-desktop-files
%description
Fast stl file viewer.
It is designed to quickly load and render very high-polygon models; showing 2 million triangles at 60+ FPS on a mid-range laptop.
%prep
%setup -q
%build
CFLAGS="%{optflags}"
export CFLAGS
%cmake
%make_build
%install
%cmake_install
cd exe
icotool -x fstl.ico
install -Dm 0755 fstl_1_16x16x32.png \
%{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
install -Dm 0755 fstl_2_32x32x32.png \
%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -Dm 0755 fstl_3_48x48x32.png \
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -Dm 0755 fstl_4_64x64x32.png \
%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -Dm 0755 fstl_5_128x128x32.png \
%{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
install -Dm 0755 fstl_6_256x256x32.png \
%{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/fslt-mimeinfo.xml
%suse_update_desktop_file -i %{name}
%files
%{_bindir}/fstl
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/fslt-mimeinfo.xml
%changelog

3
v0.10.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e00c9f5f90e5efc3804cd2d7a64efb9f592921b7ff78d7190aa4182145119d9a
size 120349