-%define name firestarter
-%define version 0.2.2
-%define release 1
-%define prefix /usr
-
-Summary: A firewall tool GNOME
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Copyright: GPL
-Group: Applications/Internet
-URL: http://firestarter.sourceforge.net
-
-Source: http://download.sourceforge.com/firestarter/firestarter-%{version}.tar.gz
-BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
-
-Docdir: %{prefix}/doc
-
-Requires: gtk+ >= 1.2.5
-Requires: gnome-libs >= 1.0.55
-Requires: ipchains >= 1.3.9
+Summary: A GNOME firewall tool
+Name: firestarter
+Version: 0.2.2
+Release: 1
+License: GPL
+Group: Applications/Internet
+Source0: http://download.sourceforge.com/firestarter/firestarter-%{version}.tar.gz
+URL: http://firestarter.sourceforge.net/
+BuildRequires: gettext-devel
+BuildRequires: gtk+-devel >= 1.2.5
+BuildRequires: gnome-core-devel
+BuildRequires: gnome-libs-devel >= 1.0.55
+Requires: ipchains >= 1.3.9
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-FireStarter is an easy-to-use, yet powerful, Linux firewall tool for GNOME.
-Use it to quickly set up a secure environment using the firewall creation
-wizard, or use it's monitoring and administrating features with your old
-firewall scripts.
+FireStarter is an easy-to-use, yet powerful, Linux firewall tool for
+GNOME. Use it to quickly set up a secure environment using the
+firewall creation wizard, or use it's monitoring and administrating
+features with your old firewall scripts.
%prep
-
-%setup
+%setup -q
%build
-CFLAGS="-O2"
-%ifarch i586
-CFLAGS="-O2 -mpentium -march=pentium"
-%endif
-%ifarch i686
-CFLAGS="-O2 -mpentiumpro -march=pentiumpro"
-%endif
-./configure --prefix=%{prefix}
-make
+gettextize --copy --force
+LDFLAGS="-s"; export LDFLAGS
+%configure
%install
rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT%{prefix} install
-%files
-%defattr(-,root,root)
-%doc README ChangeLog AUTHORS TODO COPYING CREDITS
-%attr(755,root,root) %{prefix}/bin/firestarter
-%{prefix}/share/gnome/apps/Internet/firestarter.desktop
-%{prefix}/share/pixmaps/*
+make install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ Productivitydir=%{_applnkdir}/System
+
+gzip -9nf README ChangeLog AUTHORS TODO CREDITS
+
+#%find_lang %{name}
%clean
rm -r $RPM_BUILD_ROOT
-%changelog
-* Mon May 29 2000 Tomas Junnonen
-- First spec file
+%files
+# -f %{name}.lang
+%defattr(644,root,root,755)
+%doc *gz
+%attr(755,root,root) %{_bindir}/firestarter
+%{_applnkdir}/System/firestarter.desktop
+%{_datadir}/pixmaps/*