File wsndpref.spec of Package wsndpref

#
# spec file for package wsndpref (Version 1.1.1)
#
# Copyright (c) 2009 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           wsndpref
BuildRequires:  WindowMaker-devel esound-devel freetype2-devel wsndsrv
License:        BSD3c
Group:          System/GUI/Other
Url:            ftp://shadowmere.student.utwente.nl/pub/WindowMaker/
Provides:       WSoundPrefs 
AutoReqProv:    on
Summary:        A Setup Program for the WSoundServer
Version:        1.1.1
Release:        1175
Source:         WSoundPrefs-%{version}.tar.gz
Patch1:         WSoundPrefs-1.1.1-wstrappend.patch
Patch2:         WSoundPrefs-1.1.1-imake.patch
Patch3:         WSoundPrefs-1.1.1-IconImage.patch
Patch4:         WSoundPrefs-1.1.1-noPropList.patch
Patch5:         WSoundPrefs-1.1.1-compile.patch
Patch6:         WSoundPrefs-1.1.1-warnings.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A setup program for the WSoundServer.



Authors:
--------
    Pascal Hofstee <daeron@shadowmere.student.utwente.nl>

%prep
%setup -q -n WSoundPrefs-%{version}
%patch1
%patch2
%patch3
%patch4 -p 1
%patch5
%patch6
# ---------------------------------------------------------------------------

%build
xmkmf -a
make
# ---------------------------------------------------------------------------

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT/usr/lib/GNUstep install
mv $RPM_BUILD_ROOT/usr/lib/GNUstep/usr/lib/GNUstep/Apps/WSoundPrefs.app/* $RPM_BUILD_ROOT/usr/lib/GNUstep/Apps/WSoundPrefs.app
mv $RPM_BUILD_ROOT/usr/lib/GNUstep/WSoundPrefs.{tiff,xpm} $RPM_BUILD_ROOT/usr/lib/GNUstep/Apps/WSoundPrefs.app

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir /usr/lib/GNUstep/Apps
/usr/lib/GNUstep/Apps/WSoundPrefs.app
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc INSTALL

%changelog
openSUSE Build Service is sponsored by