74 lines
1.9 KiB
RPMSpec
74 lines
1.9 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: openscad
|
|
Version: 2013.06
|
|
Release: 1
|
|
License: GPLv2+
|
|
Summary: Programmers Solid 3D CAD Modeller
|
|
Url: http://openscad.org/
|
|
Group: Productivity/Graphics/CAD
|
|
Source: https://openscad.googlecode.com/files/openscad-%{version}.src.tar.gz
|
|
Patch0: %{name}-syntax-highlighting.patch
|
|
BuildRequires: flex
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: glew-devel
|
|
BuildRequires: libcgal-devel
|
|
BuildRequires: opencsg-devel
|
|
%if 0%{?suse_version}
|
|
BuildRequires: bison
|
|
BuildRequires: libeigen2-devel
|
|
BuildRequires: libqt4-devel
|
|
BuildRequires: Mesa-devel
|
|
%endif
|
|
%if 0%{?fedora_version}
|
|
BuildRequires: byacc
|
|
BuildRequires: eigen2-devel
|
|
BuildRequires: qt-devel
|
|
BuildRequires: mesa-libGL-devel
|
|
BuildRequires: mesa-libGLU-devel
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
OpenSCAD is a software for creating solid 3D CAD objects.
|
|
Unlike most free software for creating 3D models it does
|
|
not focus on the artistic aspects of 3D modelling but
|
|
instead on the CAD aspects. Thus it might be the application
|
|
you are looking for when you are planning to create 3D models
|
|
of machine parts but pretty sure is not what you are looking
|
|
for when you are more interested in creating computer-animated
|
|
movies.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%if 0%{?suse_version}
|
|
qmake PREFIX=%{_prefix}
|
|
%endif
|
|
%if 0%{?fedora_version}
|
|
qmake-qt4 PREFIX=%{_prefix}
|
|
%endif
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make INSTALL_ROOT=%{buildroot} install
|
|
install -D -m 0644 doc/openscad.1 %{buildroot}%{_mandir}/man1/openscad.1
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING README.md RELEASE_NOTES doc/*.pdf
|
|
%{_bindir}/openscad
|
|
%{_datadir}/openscad/
|
|
%{_datadir}/applications/openscad.desktop
|
|
%{_datadir}/pixmaps/openscad.png
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|