From ab4872c051ce03f71b692a78a949e880a5c8cc7081c6f568ce21534026d79337 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 21 Jul 2022 09:30:45 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + fstl-mimeinfo.xml | 102 ++++++++++++++++++++++++++++++++++++++++++++++ fstl.changes | 26 ++++++++++++ fstl.desktop | 11 +++++ fstl.spec | 78 +++++++++++++++++++++++++++++++++++ v0.10.0.tar.gz | 3 ++ 7 files changed, 244 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fstl-mimeinfo.xml create mode 100644 fstl.changes create mode 100644 fstl.desktop create mode 100644 fstl.spec create mode 100644 v0.10.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fstl-mimeinfo.xml b/fstl-mimeinfo.xml new file mode 100644 index 0000000..fb91108 --- /dev/null +++ b/fstl-mimeinfo.xml @@ -0,0 +1,102 @@ + + + + STL 3D model (binary) + model 3D STL (binari) + model STL 3D (binární) + STL 3D-Modell (binär) + modelo 3D STL (binario) + STL 3D modeloa (binarioa) + modèle (binaire) STL 3D + samhail 3T STL (dénártha) + STL 3D model (binarna datoteka) + STL 3D modell (bináris) + model STL 3D (biner) + Modello 3D STL (binario) + STL 3D моделі (екілік) + STL 3D 모델(바이너리) + Model 3D STL (binarny) + Modelo 3D STL (binário) + 3D модель STL (бинарная) + STL 3D model (binárny) + СТЛ 3Д модел (извршна) + STL 3D-modell (binär) + STL 3D modeli (ikili) + просторова модель STL (бінарна) + STL 3D 模型(二进制) + STL 3D 模型 (二進位) + + + + + + + + + + + + STL 3D model (ASCII) + model 3D STL (ASCII) + model STL 3D (ASCII) + STL 3D-Modell (ASCII) + modelo 3D STL (ASCII) + STL 3D modeloa (ASCII) + modèle (ASCII) STL 3D + samhail 3T STL (ASCII) + STL 3D model (ASCII) + STL 3D modell (ASCII) + model STL 3D (ASCII) + Modello 3D STL (ASCII) + STL 3D моделі (ASCII) + STL 3D 모델(아스키) + Model 3D STL (ASCII) + Modelo 3D STL (ASCII) + 3D модель STL (ASCII) + STL 3D model (ASCII) + СТЛ 3Д модел (АСКРИ) + STL 3D-modell (ASCII) + STL 3D modeli (ASCII) + просторова модель STL (ASCII) + STL 3D 模型 (ASCII) + STL 3D 模型 (ASCII) + + + + + + + + + + + G-code file + fitxer G-code + soubor G-code + G-Code-Datei + archivo G-code + G-code fitxategia + G-code-tiedosto + fichier G-code + comhad G-code + G-kôd datoteka + G-code fájl + berkas G-code + File G-code + G-code файлы + 지-코드 파일 + Plik G-code + Arquivo G-code + Файл G-code + Súbor G-code + датотека Г-ко̂да + G-code-fil + G-code dosyası + файл G-code + G-code 文件 + G-code 檔案 + + + + + diff --git a/fstl.changes b/fstl.changes new file mode 100644 index 0000000..024e3c3 --- /dev/null +++ b/fstl.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Thu Jul 21 08:47:28 UTC 2022 - Michael Vetter + +- 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 + +- 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 diff --git a/fstl.desktop b/fstl.desktop new file mode 100644 index 0000000..69186a6 --- /dev/null +++ b/fstl.desktop @@ -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 diff --git a/fstl.spec b/fstl.spec new file mode 100644 index 0000000..c09e167 --- /dev/null +++ b/fstl.spec @@ -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 diff --git a/v0.10.0.tar.gz b/v0.10.0.tar.gz new file mode 100644 index 0000000..c7c5126 --- /dev/null +++ b/v0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e00c9f5f90e5efc3804cd2d7a64efb9f592921b7ff78d7190aa4182145119d9a +size 120349