Group: Applications
Source0: http://www.scl.ameslab.gov/~brett/MacMolPlt/download/%{name}-%{version}.tar.gz
# Source0-md5: 26e1a2f5e5860334f29edc3b5f5c30e9
+Patch0: %{name}-desktop.patch
URL: http://www.scl.ameslab.gov/~brett/MacMolPlt/
BuildRequires: OpenGL-GLU-devel
BuildRequires: OpenGL-devel
%prep
%setup -q
+%patch0 -p1
%build
%{__aclocal}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install resources/wxmacmolplt.desktop $RPM_BUILD_ROOT%{_desktopdir}
+install resources/wxmacmolplt.png $RPM_BUILD_ROOT%{_pixmapsdir}
+
%clean
rm -rf $RPM_BUILD_ROOT
%doc AUTHORS README
%attr(755,root,root) %{_bindir}/wxmacmolplt
%{_datadir}/wxmacmolplt
+%{_desktopdir}/wxmacmolplt.desktop
+%{_pixmapsdir}/wxmacmolplt.png
%{_mandir}/man1/wxmacmolplt.1*