-%define name emma
-%define version 0.8
-%define release 1
-%define prefix /usr
-%define builddir $RPM_BUILD_DIR/%{name}-%{version}
-
-Requires: python >= 1.5 , gtk+ >= 1.2.0 , gnome-libs
-Summary: Money management program for Gnome/Gtk+
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Copyright: GPL
-Distribution: N/A
-Group: Applications/Databases
-Source: %{name}-%{version}-%{release}.tar.gz
-Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
-URL: http://rainbow.mimuw.edu.pl/~la181249/
-Packager: Lukasz Anforowicz <lanfor@atr.bydgoszcz.pl>
+Summary: Money management program for Gnome/Gtk+
+Summary(pl): Program do zarz±dzania pieniêdzmi
+Name: emma
+Version: 0.8
+Release: 0
+License: GPL
+Group: Applications/Databases
+Source0: http://rainbow.mimuw.edu.pl/~la181249/emma/download-count.php3?get=packages/%{name}-%{version}-1.tar.gz
+URL: http://rainbow.mimuw.edu.pl/~la181249/
+BuildRequires: python-devel >= 1.5
+BuildRequires: gtk+-devel >= 1.2.0
+BuildRequires: gnome-libs-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+
%description
-This program allows to easy manage your incomes and expenses.
-It is simple in design, but extensible through embeded python
-interface. Install it if you want to keep track of your money.
+This program allows to easy manage your incomes and expenses. It is
+simple in design, but extensible through embeded python interface.
+Install it if you want to keep track of your money.
+
+%description -l pl
+Ten program pozwoli Ci ³atwo zarz±dzaæ Twoimi przychodami oraz wydatkami.
+Prosty w konstrukcji, ale ³atwy w rozbudowie dziêki wbudowanemu interfejsowi
+jêzyka Python. Zainstaluj Emma je¶li chcesz wiedzieæ, gdzie znikaj± Twoje
+pieni±dze.
%prep
-%setup
+%setup -q
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --prefix=%{prefix}
-make
+%configure2_13
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
+%defattr(644,root,root,755)
%doc ChangeLog README COPYING
-%{prefix}/bin/emma
-%{prefix}/share/locale/*/*/*
-%{prefix}/share/emma/*
-%{prefix}/share/gnome/apps/Applications/emma.desktop
-%{prefix}/share/gnome/help/emma/*
+%attr(755,root,root) %{_bindir}/emma
+%{_datadir}/locale/*/*/*
+%{_datadir}/emma/*
+%{_applnkdir}/Applications/emma.desktop
+%{_datadir}/gnome/help/emma/*