Adrian Schröter
e10afae535
A slicer software based on the open-source project Slic3r. PrusaSlicer is a feature-rich, frequently updated tool that contains everything you need to export the perfect print files for your Original Prusa 3D printer. Resubmitted after the comment from 71895 have been worked in OBS-URL: https://build.opensuse.org/request/show/719629 OBS-URL: https://build.opensuse.org/package/show/science/PrusaSlicer?expand=0&rev=1
86 lines
2.8 KiB
RPMSpec
86 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package PrusaSlicer
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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: PrusaSlicer
|
|
Version: 2.0.0
|
|
Release: 0
|
|
Summary: A slicer software for Prusa 3D printers
|
|
License: AGPL-3.0-only
|
|
Group: Hardware/Printing
|
|
URL: https://www.prusa3d.com/prusaslicer/
|
|
Source0: https://github.com/prusa3d/PrusaSlicer/archive/version_%{version}.tar.gz
|
|
Patch0: prusaslicer-fixternary-wxstring.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: eigen3-devel >= 3
|
|
BuildRequires: expat
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: glew-devel
|
|
BuildRequires: gtest >= 1.7
|
|
BuildRequires: libboost_filesystem-devel
|
|
BuildRequires: libboost_locale-devel
|
|
BuildRequires: libboost_log-devel
|
|
BuildRequires: libboost_regex-devel
|
|
BuildRequires: libboost_system-devel
|
|
BuildRequires: libboost_thread-devel
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libexpat-devel
|
|
BuildRequires: nlopt-devel
|
|
BuildRequires: tbb-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: wxWidgets-devel >= 3.1
|
|
|
|
%description
|
|
A slicer software based on the open-source project Slic3r.
|
|
PrusaSlicer is a feature-rich, frequently updated tool that
|
|
contains everything you need to export the perfect print files
|
|
for your Original Prusa 3D printer.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-version_%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%cmake -DSLIC3R_FHS=1
|
|
%cmake_build -j1
|
|
|
|
%install
|
|
%cmake_install
|
|
for res in 32 128 192; do
|
|
install -D %{buildroot}%{_datadir}/%{name}/icons/%{name}_${res}px.png\
|
|
%{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/%{name}.png
|
|
done
|
|
# The category can be changed to Science;Engineering or Science; Construction as soon as boo#1074711 is resolved
|
|
%suse_update_desktop_file -c %{name} %{name} "Slicer Software for 3D Printers" prusa-slicer %{name} "Education;Construction"
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%files
|
|
%{_bindir}/prusa-slicer
|
|
%{_datadir}/%{name}/
|
|
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/192x192/apps/%{name}.png
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%license LICENSE
|
|
%doc README.md doc/
|
|
|
|
%changelog
|