Name: dachshund
Version: 0.1.0
Release: 1
-Copyright: GPL
-Group: Gnome/Development
-Source: %{name}-%{version}.tar.gz
+License: GPL
+Group: X11/Applications/Graphics
+Source0: http://prdownloads.sourceforge.net/dachshund/%{name}-%{version}.tar.gz
URL: http://dachshund.sourceforge.net/
-BuildRoot: /var/tmp/%{name}-%{version}-root
-Prefix: /usr
+BuildRequires: gtk+2-decel
+BuildRequires: libgnome-devel >= 1.96.0
+BuildRequires: libgnomeui-devel >= 1.96.0
+BuildRequires: libxml2-devel >= 2.4.12
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Requires: gtk2 >= 1.3.11
-Requires: libgnome >= 1.96.0
-Requires: libgnomeui >= 1.96.0
-Requires: libxml2 >= 2.4.12
+%define _prefix /usr/X11R6
+%define _mandir %{_prefix}/man
%description
Dachshund is UML visual modeling tool for GNOME.
%setup -q
%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=/etc
-
-if [ "$SMP" != "" ]; then
- make -j$SMP "MAKE=make -j$SMP"
-else
- make
-fi
+%configure
+%{__make}
%install
-make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT/etc install
-
-%clean
rm -rf $RPM_BUILD_ROOT
-%post
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-%postun
+%clean
+rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-, root, root)
-%doc AUTHORS COPYING ChangeLog NEWS README
-%{prefix}/bin/*
-%{prefix}/share/dachshund/%{version}/pixmaps/*/*
-%{prefix}/share/dachshund/%{version}/python/*/*
-
-%changelog
-* Fri Mar 29 2002 David Bryant <daveb@acres.com.au>
-- files only includes the dachshund binary now
-- added checks for the required libraries
-
-* Thu Oct 4 2001 David Bryant <daveb@acres.com.au>
-- wrote this file
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/dachshund/%{version}/pixmaps/*/*
+%{_datadir}/dachshund/%{version}/python/*/*