3 %bcond_without tests # build with tests
6 %define qtver %{?with_qt5:5}%{!?with_qt5:4}
9 %define upversion %{version}-%{_rc}
10 Summary: The Programmers Solid 3D CAD Modeller
14 # COPYING contains a linking exception for CGAL
17 License: GPLv2 with exceptions and CC0
18 Group: Applications/Engineering
19 Source0: http://files.openscad.org/%{name}-%{upversion}.src.tar.gz
20 # Source0-md5: a850bd071b8dd47cfcb833a6bd3044c4
21 Patch0: %{name}-polyclipping.patch
22 Patch1: localedir.patch
23 URL: http://www.openscad.org/
25 BuildRequires: Qt5Network-devel
26 BuildRequires: Qt5Concurrent-devel
27 BuildRequires: Qt5Multimedia-devel
28 BuildRequires: Qt5DBus-devel
29 BuildRequires: Qt5PrintSupport-devel
31 BuildRequires: QtNetwork-devel
32 BuildRequires: QtMultimedia-devel
33 BuildRequires: QtDBus-devel
35 BuildRequires: CGAL-devel >= 3.6
36 BuildRequires: ImageMagick
37 BuildRequires: Mesa-dri-driver-swrast
38 BuildRequires: bison >= 2.4
39 BuildRequires: boost-devel >= 1.35
40 BuildRequires: desktop-file-utils
42 BuildRequires: flex >= 2.5.35
43 BuildRequires: fontconfig-devel >= 2.10
44 BuildRequires: freetype-devel >= 2.4
45 BuildRequires: gettext
46 BuildRequires: glew-devel >= 1.6
47 BuildRequires: glib2-devel
48 BuildRequires: gmp-devel >= 5.0.0
49 BuildRequires: harfbuzz-devel >= 0.9.19
50 BuildRequires: mpfr-devel >= 3.0.0
51 BuildRequires: opencsg-devel >= 1.3.2
52 BuildRequires: polyclipping-devel >= 6.1.3
55 BuildRequires: qscintilla2-qt%{qtver}-devel
56 BuildRequires: qt%{qtver}-build >= 4.4
57 BuildRequires: xorg-xserver-Xvfb
58 Requires: font(liberationmono)
59 Requires: font(liberationsans)
60 Requires: font(liberationserif)
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80 # transformations.scad
82 # unregular_shapes.scad
83 # bitmap/letter_necklace.scad
94 # metric_fastners.scad
97 ## CC-BY-SA or LGPLv2+:
103 ## CC-BY-SA or LGPLv2:
108 # bitmap/alphabet_block.scad
110 # bitmap/height_map.scad
111 # bitmap/name_tag.scad
122 # lego_compatibility.scad
125 ###############################################
128 OpenSCAD is a software for creating solid 3D CAD objects. Unlike most
129 free software for creating 3D models (such as the famous application
130 Blender) it does not focus on the artistic aspects of 3D modeling but
131 instead on the CAD aspects. Thus it might be the application you are
132 looking for when you are planning to create 3D models of machine parts
133 but pretty sure is not what you are looking for when you are more
134 interested in creating computer-animated movies.
137 Summary: OpenSCAD Parametric CAD Library
138 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
139 URL: https://www.github.com/openscad/MCAD
140 Requires: %{name} = %{version}-%{release}
141 %if "%{_rpmversion}" >= "5"
146 This library contains components commonly used in designing and
147 moching up mechanical designs. It is currently unfinished and you can
148 expect some API changes, however many things are already working.
151 %setup -qn %{name}-%{upversion}
156 rm -r src/ext/polyclipping
174 rm -rf $RPM_BUILD_ROOT
175 %{__make} -j1 install \
176 INSTALL_ROOT=$RPM_BUILD_ROOT
178 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/lgpl-2.1.txt
179 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/README.markdown
180 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/TODO
181 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts
183 %{__mv} $RPM_BUILD_ROOT%{_datadir}/{%{name},}/locale
188 rm -rf $RPM_BUILD_ROOT
190 %files -f %{name}.lang
191 %defattr(644,root,root,755)
192 %doc README.md RELEASE_NOTES.md
193 %attr(755,root,root) %{_bindir}/%{name}
194 %{_datadir}/metainfo/*.xml
195 %{_desktopdir}/%{name}.desktop
196 %{_pixmapsdir}/%{name}.png
197 %{_datadir}/mime/packages/%{name}.xml
198 %dir %{_datadir}/%{name}
199 %{_datadir}/%{name}/examples
200 %{_datadir}/%{name}/color-schemes
201 %dir %{_datadir}/%{name}/libraries
205 %defattr(644,root,root,755)
206 %doc libraries/MCAD/README.markdown libraries/MCAD/TODO
207 %{_datadir}/%{name}/libraries/MCAD