3 %bcond_with tests # build with tests
6 %define qtver %{?with_qt5:5}%{!?with_qt5:4}
8 %define upversion 2015.03-3
9 Summary: The Programmers Solid 3D CAD Modeller
13 # COPYING contains a linking exception for CGAL
16 License: GPLv2 with exceptions and CC0
17 Group: Applications/Engineering
18 Source0: http://files.openscad.org/%{name}-%{upversion}.src.tar.gz
19 # Source0-md5: a498a218a247468eee140ccc44c73afa
20 Patch0: %{name}-polyclipping.patch
21 URL: http://www.openscad.org/
22 BuildRequires: CGAL-devel >= 3.6
23 BuildRequires: ImageMagick
24 BuildRequires: Mesa-dri-driver-swrast
25 BuildRequires: bison >= 2.4
26 BuildRequires: boost-devel >= 1.35
27 BuildRequires: desktop-file-utils
29 BuildRequires: flex >= 2.5.35
30 BuildRequires: fontconfig-devel >= 2.10
31 BuildRequires: freetype-devel >= 2.4
32 BuildRequires: gettext
33 BuildRequires: glew-devel >= 1.6
34 BuildRequires: glib2-devel
35 BuildRequires: gmp-devel >= 5.0.0
36 BuildRequires: harfbuzz-devel >= 0.9.19
37 BuildRequires: mpfr-devel >= 3.0.0
38 BuildRequires: opencsg-devel >= 1.3.2
39 BuildRequires: polyclipping-devel >= 6.1.3
42 BuildRequires: qscintilla2-qt%{qtver}-devel
43 BuildRequires: qt%{qtver}-build >= 4.4
44 BuildRequires: xorg-xserver-Xvfb
45 Requires: font(liberationmono)
46 Requires: font(liberationsans)
47 Requires: font(liberationserif)
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 # transformations.scad
69 # unregular_shapes.scad
70 # bitmap/letter_necklace.scad
81 # metric_fastners.scad
84 ## CC-BY-SA or LGPLv2+:
90 ## CC-BY-SA or LGPLv2:
95 # bitmap/alphabet_block.scad
97 # bitmap/height_map.scad
98 # bitmap/name_tag.scad
109 # lego_compatibility.scad
112 ###############################################
115 OpenSCAD is a software for creating solid 3D CAD objects. Unlike most
116 free software for creating 3D models (such as the famous application
117 Blender) it does not focus on the artistic aspects of 3D modeling but
118 instead on the CAD aspects. Thus it might be the application you are
119 looking for when you are planning to create 3D models of machine parts
120 but pretty sure is not what you are looking for when you are more
121 interested in creating computer-animated movies.
124 Summary: OpenSCAD Parametric CAD Library
125 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
126 URL: https://www.github.com/openscad/MCAD
127 Requires: %{name} = %{version}-%{release}
128 %if "%{_rpmversion}" >= "5"
133 This library contains components commonly used in designing and
134 moching up mechanical designs. It is currently unfinished and you can
135 expect some API changes, however many things are already working.
138 %setup -qn %{name}-%{upversion}
142 rm -r src/polyclipping
157 rm -rf $RPM_BUILD_ROOT
158 %{__make} -j1 install \
159 INSTALL_ROOT=$RPM_BUILD_ROOT
161 rm -r $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts
164 # TODO: fix this to find the files
167 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/lgpl-2.1.txt
168 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/README.markdown
169 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/TODO
178 rm -rf $RPM_BUILD_ROOT
180 %files -f %{name}.lang
181 %defattr(644,root,root,755)
182 %doc README.md RELEASE_NOTES
183 %attr(755,root,root) %{_bindir}/%{name}
184 %{_datadir}/appdata/*.xml
185 %{_desktopdir}/%{name}.desktop
186 %{_pixmapsdir}/%{name}.png
187 %{_datadir}/mime/packages/%{name}.xml
188 %dir %{_datadir}/%{name}
189 %{_datadir}/%{name}/examples
190 %{_datadir}/%{name}/color-schemes
191 %dir %{_datadir}/%{name}/locale
192 # drop when find_lang is fixed
193 %{_datadir}/%{name}/locale/*
194 %dir %{_datadir}/%{name}/libraries
198 %defattr(644,root,root,755)
199 %doc libraries/MCAD/README.markdown libraries/MCAD/TODO
200 %{_datadir}/%{name}/libraries/MCAD