c4ae78
%global wingsdir $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{name}-%{version}
c4ae78
985473
Name:           wings
c4ae78
Version:        1.2
31a4e7
Release:        4%{?dist}
985473
Summary:        3D Subdivision Modeler
985473
985473
Group:          Applications/Multimedia
2adb32
License:        MIT
985473
URL:            http://www.wings3d.com
c4ae78
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
985473
Source1:	http://prdownloads.sourceforge.net/wings/wings3d_manual1.6.1.pdf
c4ae78
Source2:	wings.sh
985473
Source3:	wings.png
c4ae78
Source4:	wings.desktop
985473
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c4ae78
c4ae78
BuildRequires:	erlang
c4ae78
BuildRequires:	erlang-esdl
985473
BuildRequires:	libGL-devel
985473
BuildRequires:	libGLU-devel
985473
BuildRequires:  desktop-file-utils
c4ae78
79d1d8
Provides:       wings-povray = %{version}-%{release}
79d1d8
Obsoletes:      wings-povray
985473
c4ae78
Requires:	erlang-dialyzer
c4ae78
Requires:	erlang-erts
c4ae78
Requires:	erlang-esdl
c4ae78
Requires:	erlang-kernel
c4ae78
Requires:	erlang-stdlib
c4ae78
Requires:	erlang-tools
c4ae78
c4ae78
985473
%description
985473
Wings 3D is a subdivision modeler with an user interface that is easy
985473
to use for both beginners and advanced users (inspired by Nendo and
b23b55
Mirai from Izware).
985473
985473
985473
%package docs
985473
Group:		Applications/Multimedia
985473
Summary:	Documentation for Wings 3D
c4ae78
985473
985473
%description docs
985473
Documentation for Wings 3D.
985473
985473
985473
%prep
985473
%setup -q
28aee0
sed -i 's|-include("sdl_keyboard.hrl").|-include_lib("esdl/include/sdl_keyboard.hrl").|' src/wings_body.erl src/wings_edge_cmd.erl plugins_src/commands/wpc_constraints.erl 
985473
cp %{SOURCE1} .
c4ae78
cp %{SOURCE2} .
c4ae78
cp %{SOURCE4} .
c28de5
sed -i -e "s,%LIBDIR%,%{_libdir},g" wings.sh
985473
985473
985473
%build
985473
# %%{?_smp_mflags} breaks the build
c4ae78
make
985473
985473
985473
%install
985473
rm -rf $RPM_BUILD_ROOT
5b4cf8
c4ae78
# Install the wings binaries
c4ae78
mkdir -p %{wingsdir}/plugins/default
c4ae78
cp -rf ebin %{wingsdir}
c4ae78
cp -rf fonts %{wingsdir}
c4ae78
cp -rf textures %{wingsdir}
c4ae78
cp -rf shaders %{wingsdir}
c4ae78
cp -rf plugins/* %{wingsdir}/plugins/default
c4ae78
cp -rf fonts %{wingsdir}
5b4cf8
985473
find $RPM_BUILD_ROOT -name 'README' | xargs rm -f
23bb85
find $RPM_BUILD_ROOT -name '*.txt' | xargs chmod 0644
23bb85
find $RPM_BUILD_ROOT -name '*.auv' | xargs chmod 0644
23bb85
find $RPM_BUILD_ROOT -name '*.fs' | xargs chmod 0644
23bb85
find $RPM_BUILD_ROOT -name '*.vs' | xargs chmod 0644
985473
c4ae78
# Install main startup script
c4ae78
install -D -p -m 0755 wings.sh $RPM_BUILD_ROOT%{_bindir}/wings
985473
c4ae78
# Install icon
c4ae78
install -D -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps/wings.png
c4ae78
c4ae78
# Install desktop entry
985473
desktop-file-install --vendor fedora \
985473
    --add-category Graphics \
985473
    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
985473
    wings.desktop
985473
985473
985473
%clean
985473
rm -rf $RPM_BUILD_ROOT
985473
985473
985473
%files
985473
%defattr(-,root,root,-)
985473
%{_bindir}/wings
c4ae78
%{_libdir}/erlang/lib/%{name}-%{version}
985473
%{_datadir}/applications/*
985473
%{_datadir}/pixmaps/*
c4ae78
%doc AUTHORS NOTES-1.0 NOTES-1.1 NOTES-1.2 OLD-NOTES README license.terms
985473
985473
985473
%files docs
985473
%defattr(-,root,root,-)
985473
%doc wings3d_manual1.6.1.pdf
985473
985473
985473
%changelog
31a4e7
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
31a4e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
31a4e7
be4117
* Thu Dec  9 2010 Peter Lemenkov <lemenkov@gmail.com> - 1.2.0-3
be4117
- Explicitly use erl installed into /usr/bin
be4117
c28de5
* Tue Nov 16 2010 Peter Lemenkov <lemenkov@gmail.com> - 1.2.0-2
c28de5
- Drop erlang-wx dependency
c28de5
- Fixed startup failure (rhbz #653720)
c28de5
c4ae78
* Mon Jul 12 2010 Peter Lemenkov <lemenkov@gmail.com> - 1.2.0-1
c4ae78
- Ver. 1.2.0
c4ae78
- Docs subpackage no longer requires main package
c4ae78
23bb85
* Tue Aug 11 2009 Gerard Milmeister <gemi@bluewin.ch> - 1.0.1-1
23bb85
- new release 1.0.1
23bb85
79f7b5
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.05-4
79f7b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
79f7b5
4add74
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.05-3
4add74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4add74
28aee0
* Thu Oct 30 2008 Gerard Milmeister <gemi@bluewin.ch> - 0.99.05-2
28aee0
- new release 0.99.05
28aee0
2adb32
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.99.02-2
2adb32
- fix license tag
2adb32
79d1d8
* Thu Mar 27 2008 Gerard Milmeister <gemi@bluewin.ch> - 0.99.02-1
79d1d8
- new releae 0.99.02
c64109
b23b55
* Sun Apr  8 2007 Gerard Milmeister <gemi@bluewin.ch> - 0.98.36-1
b23b55
- new version 0.98.36
b23b55
870d60
* Thu Feb 15 2007 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-11
870d60
- add optflags (bugzilla 228925)
870d60
9aab90
* Sun Dec 10 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-10
9aab90
- split off povray plug-in
9aab90
b4f6ff
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-9
b4f6ff
- Rebuild for FE6
b4f6ff
5b4cf8
* Wed Jun  7 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-8
5b4cf8
- revert to use erlang R10B
5b4cf8
a3f808
* Thu May 18 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-7
a3f808
- rebuilt for erlang R11B
a3f808
985473
* Thu Apr 27 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-5
985473
- split off docs package
985473
985473
* Tue Apr 25 2006 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-3
985473
- build against erlang-esdl-devel
985473
985473
* Sun Dec 18 2005 Gerard Milmeister <gemi@bluewin.ch> - 0.98.32b-1
985473
- New Version 0.98.32b
985473
985473
* Sun Mar  6 2005 Gerard Milmeister <gemi@bluewin.ch> - 0.98.27b-1
985473
- New Version 0.98.27b
985473
985473
* Sun Feb 13 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:0.98.27a-1
985473
- New Version 0.98.27a
985473
985473
* Mon Dec 27 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.98.26-0.fdr.1.b
985473
- New Version 0.98.26b
985473
985473
* Sat Jul 17 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.98.24-0.fdr.1
985473
- New Version 0.98.24
985473
985473
* Fri Jun  4 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.98.23a-0.fdr.1
985473
- New Version 0.98.23a
985473
985473
* Thu May  6 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.98.22c-0.fdr.1
985473
- New Version 0.98.22c
985473
985473
* Sun Apr 11 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:0.98.20c-0.fdr.1
985473
- First Fedora release