File ldglite.spec of Package ldglite

# spec file for package ldglite
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           ldglite
Version:	1.2.10
Release:	0
License:	GPL-2.0
Summary:	LDraw LEGO CAD renderer
Group:		Productivity/Graphics/CAD
Source:		ldglite_1.2.10.orig.tar.gz
BuildRequires:  ldraw-library >= 2014.02.1
BuildRequires:	freeglut-devel libpng-devel Mesa-devel gcc-c++
Requires:       ldraw-library >= 2014.02.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:	ldraw-renderer
Patch1: 0000-upstream-master.patch

ldglite is a renderer of LDraw LEGO models.

LDraw is an open standard for LEGO CAD programs that allow the user to create
virtual LEGO models and scenes.

%setup -q -n ldglite

%patch1 -p1

make -f makefile.linux ldglite

install -d %{buildroot}/%{_bindir}
install -m 755 ldglite %{buildroot}/%{_bindir}/ldglite.bin
ln -s ldglite.bin %{buildroot}/%{_bindir}/l3glite
ln -s ldglite.bin %{buildroot}/%{_bindir}/l3gledit
ln -s %{_libexecdir}/ldraw-wrapper %{buildroot}/%{_bindir}/ldglite
ln -s %{_libexecdir}/ldraw-wrapper %{buildroot}/%{_bindir}/l3glite
ln -s %{_libexecdir}/ldraw-wrapper %{buildroot}/%{_bindir}/l3gledit


openSUSE Build Service is sponsored by