3 %bcond_with tests # build with tests
5 %define upversion 2015.03-1
6 Summary: The Programmers Solid 3D CAD Modeller
10 # COPYING contains a linking exception for CGAL
13 License: GPLv2 with exceptions and CC0
14 Group: Applications/Engineering
15 Source0: http://files.openscad.org/%{name}-%{upversion}.src.tar.gz
16 # Source0-md5: c5994220078f5f5c13984da304e4a2fe
17 Patch0: %{name}-polyclipping.patch
18 URL: http://www.openscad.org/
19 BuildRequires: CGAL-devel >= 3.6
20 BuildRequires: ImageMagick
21 BuildRequires: Mesa-dri-driver-swrast
22 BuildRequires: bison >= 2.4
23 BuildRequires: boost-devel >= 1.35
24 BuildRequires: desktop-file-utils
26 BuildRequires: flex >= 2.5.35
27 BuildRequires: fontconfig-devel >= 2.10
28 BuildRequires: freetype-devel >= 2.4
29 BuildRequires: gettext
30 BuildRequires: glew-devel >= 1.6
31 BuildRequires: glib2-devel
32 BuildRequires: gmp-devel >= 5.0.0
33 BuildRequires: harfbuzz-devel >= 0.9.19
34 BuildRequires: mpfr-devel >= 3.0.0
35 BuildRequires: opencsg-devel >= 1.3.2
36 BuildRequires: polyclipping-devel >= 6.1.3
39 BuildRequires: qscintilla2-devel
40 BuildRequires: qt4-build >= 4.4
41 BuildRequires: xorg-xserver-Xvfb
42 Requires: font(liberationmono)
43 Requires: font(liberationsans)
44 Requires: font(liberationserif)
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 # transformations.scad
66 # unregular_shapes.scad
67 # bitmap/letter_necklace.scad
78 # metric_fastners.scad
81 ## CC-BY-SA or LGPLv2+:
87 ## CC-BY-SA or LGPLv2:
92 # bitmap/alphabet_block.scad
94 # bitmap/height_map.scad
95 # bitmap/name_tag.scad
106 # lego_compatibility.scad
109 ###############################################
112 OpenSCAD is a software for creating solid 3D CAD objects. Unlike most
113 free software for creating 3D models (such as the famous application
114 Blender) it does not focus on the artistic aspects of 3D modeling but
115 instead on the CAD aspects. Thus it might be the application you are
116 looking for when you are planning to create 3D models of machine parts
117 but pretty sure is not what you are looking for when you are more
118 interested in creating computer-animated movies.
121 Summary: OpenSCAD Parametric CAD Library
122 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
123 URL: https://www.github.com/openscad/MCAD
124 Requires: %{name} = %{version}-%{release}
128 This library contains components commonly used in designing and
129 moching up mechanical designs. It is currently unfinished and you can
130 expect some API changes, however many things are already working.
133 %setup -qn %{name}-%{upversion}
136 rm -rf src/polyclipping
152 rm -rf $RPM_BUILD_ROOT
154 %{__make} -j1 install \
155 INSTALL_ROOT=$RPM_BUILD_ROOT
157 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts
160 # TODO: fix this to find the files
163 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/lgpl-2.1.txt
164 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/README.markdown
165 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/MCAD/TODO
173 %files -f %{name}.lang
174 %defattr(644,root,root,755)
175 %doc README.md RELEASE_NOTES
176 %attr(755,root,root) %{_bindir}/%{name}
177 %{_datadir}/appdata/*.xml
178 %{_desktopdir}/%{name}.desktop
179 %{_pixmapsdir}/%{name}.png
180 %{_datadir}/mime/packages/%{name}.xml
181 %dir %{_datadir}/%{name}
182 %{_datadir}/%{name}/examples
183 %{_datadir}/%{name}/color-schemes
184 %dir %{_datadir}/%{name}/locale
185 # drop when find_lang is fixed
186 %{_datadir}/%{name}/locale/*
187 %dir %{_datadir}/%{name}/libraries
191 %defattr(644,root,root,755)
192 %doc libraries/MCAD/README.markdown libraries/MCAD/TODO
193 %{_datadir}/%{name}/libraries/MCAD
198 rm -rf $RPM_BUILD_ROOT