3 %bcond_without tests # build with tests
5 Summary: The Programmers Solid 3D CAD Modeller
9 # COPYING contains a linking exception for CGAL
12 License: GPLv2 with exceptions and CC0
13 Group: Applications/Engineering
14 Source0: http://files.openscad.org/%{name}-%{version}.src.tar.gz
15 # Source0-md5: 2b63e249d56e2eba62ed5b042e1d82bc
16 Patch0: %{name}-polyclipping.patch
17 Patch1: localedir.patch
18 URL: http://www.openscad.org/
19 BuildRequires: Qt5Network-devel
20 BuildRequires: Qt5Concurrent-devel
21 BuildRequires: Qt5Multimedia-devel
22 BuildRequires: Qt5DBus-devel
23 BuildRequires: Qt5PrintSupport-devel
24 BuildRequires: CGAL-devel >= 3.6
25 BuildRequires: ImageMagick
26 BuildRequires: Mesa-dri-driver-swrast
27 BuildRequires: bison >= 2.4
28 BuildRequires: boost-devel >= 1.35
29 BuildRequires: desktop-file-utils
31 BuildRequires: flex >= 2.5.35
32 BuildRequires: fontconfig-devel >= 2.10
33 BuildRequires: freetype-devel >= 2.4
34 BuildRequires: gettext
35 BuildRequires: glew-devel >= 1.6
36 BuildRequires: glib2-devel
37 BuildRequires: gmp-devel >= 5.0.0
38 BuildRequires: harfbuzz-devel >= 0.9.19
39 BuildRequires: lib3mf-devel >= 1.8.1
40 BuildRequires: libzip-devel
41 BuildRequires: libxml2-devel
42 BuildRequires: mpfr-devel >= 3.0.0
43 BuildRequires: opencsg-devel >= 1.3.2
44 BuildRequires: pkgconfig
45 BuildRequires: polyclipping-devel >= 6.1.3
48 BuildRequires: qscintilla2-qt5-devel
49 BuildRequires: qt5-build
50 BuildRequires: xorg-xserver-Xvfb
51 Requires: font(liberationmono)
52 Requires: font(liberationsans)
53 Requires: font(liberationserif)
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 # transformations.scad
75 # unregular_shapes.scad
76 # bitmap/letter_necklace.scad
87 # metric_fastners.scad
90 ## CC-BY-SA or LGPLv2+:
96 ## CC-BY-SA or LGPLv2:
101 # bitmap/alphabet_block.scad
103 # bitmap/height_map.scad
104 # bitmap/name_tag.scad
115 # lego_compatibility.scad
118 ###############################################
121 OpenSCAD is a software for creating solid 3D CAD objects. Unlike most
122 free software for creating 3D models (such as the famous application
123 Blender) it does not focus on the artistic aspects of 3D modeling but
124 instead on the CAD aspects. Thus it might be the application you are
125 looking for when you are planning to create 3D models of machine parts
126 but pretty sure is not what you are looking for when you are more
127 interested in creating computer-animated movies.
130 Summary: OpenSCAD Parametric CAD Library
131 License: LGPLv2+ and LGPLv2 and LGPLv3+ and (GPLv3 or LGPLv2) and (GPLv3+ or LGPLv2) and (CC-BY-SA or LGPLv2+) and (CC-BY-SA or LGPLv2) and CC-BY and BSD and MIT and Public Domain
132 URL: https://www.github.com/openscad/MCAD
133 Requires: %{name} = %{version}-%{release}
134 %if "%{_rpmversion}" >= "5"
139 This library contains components commonly used in designing and
140 moching up mechanical designs. It is currently unfinished and you can
141 expect some API changes, however many things are already working.
149 %{__rm} -r src/ext/polyclipping
165 rm -rf $RPM_BUILD_ROOT
167 INSTALL_ROOT=$RPM_BUILD_ROOT
169 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/lgpl-2.1.txt
170 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/README.markdown
171 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/TODO
172 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts
174 %{__mv} $RPM_BUILD_ROOT%{_datadir}/{%{name},}/locale
179 rm -rf $RPM_BUILD_ROOT
181 %files -f %{name}.lang
182 %defattr(644,root,root,755)
183 %doc README.md RELEASE_NOTES.md
184 %attr(755,root,root) %{_bindir}/%{name}
185 %{_datadir}/metainfo/*.xml
186 %{_desktopdir}/%{name}.desktop
187 %{_pixmapsdir}/%{name}.png
188 %{_datadir}/mime/packages/%{name}.xml
189 %dir %{_datadir}/%{name}
190 %{_datadir}/%{name}/examples
191 %{_datadir}/%{name}/color-schemes
192 %dir %{_datadir}/%{name}/libraries
196 %defattr(644,root,root,755)
197 %doc libraries/MCAD/README.markdown libraries/MCAD/TODO
198 %{_datadir}/%{name}/libraries/MCAD