Summary: A GNOME firewall tool
Summary(pl): Narzêdzie do konfiguracji firewalla dzia³aj±ce w ¶rodowisku GNOME
Name: firestarter
-Version: 0.8.2
-Release: 1
+Version: 1.0.3
+Release: 1
License: GPL
Group: X11/Applications/Networking
Source0: http://dl.sourceforge.net/firestarter/%{name}-%{version}.tar.gz
+# Source0-md5: f46860a9e16dac4b693bd05f16370b03
+Patch0: %{name}-acfix.patch
+Patch1: %{name}-desktop.patch
+Patch2: %{name}-locale_names.patch
+Patch3: %{name}-kdesu.patch
URL: http://firestarter.sourceforge.net/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: gettext-devel
-BuildRequires: gtk+-devel >= 1.2.5
-BuildRequires: gnome-core-devel
-BuildRequires: gnome-libs-devel >= 1.0.55
+BuildRequires: gtk+2-devel >= 1:2.0.0
+BuildRequires: libgnome-devel >= 2.0.0
+BuildRequires: libgnomeui-devel >= 2.0.0
BuildRequires: libtool
-Requires: ipchains >= 1.3.9
+BuildRequires: sed >= 4.0
+Requires: iptables
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+#%patch0 -p0 # really required?
+#%patch1 -p1
+%patch2 -p1
+#%patch3 -p0
+
+mv -f po/{no,nb}.po
%build
-rm -f missing
%{__libtoolize}
-%{__aclocal} -I macros
+%{__aclocal}
%{__autoconf}
%{__automake}
%configure
+%{__sed} -i 's/xml::\/etc\//xml::\$PREFIX\/etc\//' Makefile
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- Applicationsdir=%{_applnkdir}/System/Administration
-
+ Applicationsdir=%{_desktopdir}
%find_lang %{name} --with-gnome
+%post
+%gconf_schema_install /etc/gconf/schemas/firestarter.schemas
+
+%preun
+if [ $1 = 0 ]; then
+ %gconf_schema_uninstall /etc/gconf/schemas/firestarter.schemas
+fi
+
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README ChangeLog AUTHORS TODO CREDITS
%attr(755,root,root) %{_bindir}/firestarter
-%{_applnkdir}/System/Administration/firestarter.desktop
+%{_desktopdir}/firestarter.desktop
%{_pixmapsdir}/*
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}/*
+%{_sysconfdir}/gconf/schemas/*