Witam. Update do wersji 1.0.1. Uwagi: 1) wyrzucone -desktop.patch i -kdesu.patch (to samo "zrobione" sedem) 2) aktualizacja URL 3) -BR libgnome-devel, ponieważ libgnomeui-devel i tak ma tę zależność 4) "podbicie" BR gtk+2-devel do wymaganej wersji 2.4 (co prawda libgnomeui-devel załatwia nam tę zależność, ale pozostawiłem (nie wiem, czy dobrze) zgodnie z: Revision 1.32 2004/11/27 18:52:06 saq - massive attack: add missing gtk+2-devel epoch in BR 5) dodane %post, %preun, %postun na podstawie źródłowego speca 6) zmiany w skrypcie init, dostosowujące go do PLD 7) ze względu na nieco większe zmiany - ułamkowy Rel.
BTW Czy to, że aplikacja wymaga np. libgnomeui wystarczy do stwierdzenia: "A GNOME firewall tool" -- Pozdrawiam Karol "Charles" Krenski
# $Revision: 1.32 $, $Date: 2004/11/27 18:52:06 $ Summary: A GNOME firewall tool Summary(pl): Narzędzie do konfiguracji firewalla działające w środowisku GNOME Name: firestarter Version: 1.0.1 Release: 0.1 License: GPL Group: X11/Applications/Networking Source0: http://dl.sourceforge.net/firestarter/%{name}-%{version}.tar.gz # Source0-md5: ef5afad42201639f282dec4eda20720d Patch0: %{name}-acfix.patch Patch1: %{name}-locale_names.patch URL: http://www.fs-security.com/ BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: gettext-devel BuildRequires: gtk+2-devel >= 1:2.4 BuildRequires: libgnomeui-devel >= 2.0.0 BuildRequires: libtool BuildRequires: sed >= 4.0 Requires: iptables Requires(post,preun): /sbin/chkconfig Requires(post,preun): GConf2 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. %description -l pl FireStarter jest łatwym w użyciu, lecz potężnym narzędziem do konfiguracji firewalla działającym w środowisku GNOME. Możesz go użyć, by szybko stworzyć bezpieczne środowisko korzystając z kreatora tworzenia firewalla, lub skorzystać z jego możliwości monitorowania i administrowania wraz z istniejącymi regułami firewalla. %prep %setup -q %patch0 -p0 %patch1 -p1 mv -f po/{no,nb}.po %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} %configure %{__sed} -i 's/xml::\/etc\//xml::\$PREFIX\/etc\//' Makefile %{__sed} -i 's,Exec=firestarter,Exec=kdesu firestarter,' firestarter.desktop %{__sed} -i 's,System;Application;,GTK;GNOME;System;X-Administration;,' firestarter.desktop %{__sed} -i -e 's,success,ok,g' -e 's,failure,fail,g' -e 's,echo$,,g' -e 's,echo \-n,show,g' fedora.init %{__sed} -i -e 's,\(show.*$\),\1; busy,g' fedora.init %{__make} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/firestarter mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/firestarter/inbound mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/firestarter/outbound export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ Applicationsdir=%{_desktopdir} %find_lang %{name} --with-gnome install -p -D fedora.init $RPM_BUILD_ROOT%{_initrddir}/firestarter %clean rm -rf $RPM_BUILD_ROOT %post export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null if [ "$1" = "1" ]; then /sbin/chkconfig --add firestarter /sbin/chkconfig firestarter on fi %preun if [ "$1" = "0" ]; then export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null /sbin/service firestarter stop >/dev/null 2>&1 /sbin/chkconfig --del firestarter fi %postun if [ "$1" = "0" ]; then if [ -e /etc/dhclient-exit-hooks ]; then grep -v 'sh %{_sysconfdir}/firestarter/firewall.sh start' < /etc/dhclient-exit-hooks > /etc/dhclient-exit-hooks.tmp mv /etc/dhclient-exit-hooks.tmp /etc/dhclient-exit-hooks fi fi %files -f %{name}.lang %defattr(644,root,root,755) %doc README ChangeLog AUTHORS TODO CREDITS %attr(755,root,root) %{_bindir}/firestarter %attr(754,root,root) %{_initrddir}/firestarter %dir %attr(700,root,root) %{_sysconfdir}/firestarter %{_datadir}/firestarter/* %{_desktopdir}/firestarter.desktop %{_pixmapsdir}/* %config(noreplace) %{_sysconfdir}/firestarter/* %{_sysconfdir}/gconf/schemas/* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <[EMAIL PROTECTED]> All persons listed below can be reached at <cvs_login>@pld-linux.org $Log: firestarter.spec,v $ Revision 1.32 2004/11/27 18:52:06 saq - massive attack: add missing gtk+2-devel epoch in BR Revision 1.31 2004/09/18 11:24:39 gozda - removed useless comment. Revision 1.30 2004/08/27 16:15:36 gozda - oops, changed md5 Revision 1.29 2004/08/27 16:09:00 gozda - Updated to 0.9.3 Revision 1.28 2004/07/23 18:36:32 ankry - no -> nb (locale_names patch), rel. 4 Revision 1.27 2004/07/14 01:56:06 ankry - added -desktop patch, rel. 3 Revision 1.26 2004/03/28 18:40:24 qboosh - added acfix patch, switched to desktopdir; release 2 for Ac Revision 1.25 2003/07/04 08:36:33 qboosh - updated deps Revision 1.24 2003/07/03 18:54:01 luzik - updated to 0.9.2 Revision 1.23 2003/05/26 16:24:58 malekith - massive attack: adding Source-md5 Revision 1.22 2003/05/25 05:47:25 misi3k - massive attack s/pld.org.pl/pld-linux.org/ Revision 1.21 2003/05/06 11:30:20 qboosh - use http for sources from sourceforge Revision 1.20 2003/01/18 22:46:45 juandon - removed two lines with define Revision 1.19 2002/11/27 18:27:38 juandon - new %%doc Revision 1.18 2002/10/09 13:14:22 kloczek - use more macros, some cosmetics, added missing "rm -f missing" and use new %doc Revision 1.17 2002/06/23 20:32:22 kloczek - perl -pi -e "s/^libtoolize --copy --force/\%\{__libtoolize\}/" Revision 1.16 2002/05/21 23:13:02 kloczek perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \ s/^automake -a -c -f/\%\{__automake\}/; \ s/^autoconf/\%\{__autoconf\}/" Revision 1.15 2002/04/25 16:18:20 arturs fixed a small typo Revision 1.14 2002/03/04 19:54:34 kloczek - move desktop file to System/Administration, - added regenerate ac/am/lt files. Revision 1.13 2002/03/03 19:12:01 marcus - new version 0.8.2 Revision 1.12 2002/02/22 23:28:52 kloczek - removed all Group fields translations (our rpm now can handle translating Group field using gettext). Revision 1.11 2002/01/18 02:12:57 kloczek perl -pi -e "s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/" Revision 1.10 2001/08/03 17:33:07 waszi - updated to 0.7.1 - ac/am and others magic stuff need check Revision 1.9 2001/07/28 15:08:08 migo - added pl summary and description Revision 1.8 2001/02/02 17:50:33 kloczek - perl -pi -e "s/^\%\{_datadir\}\/pixmaps/\%\{_pixmapsdir\}/" Revision 1.7 2000/11/03 00:27:51 kloczek - updated to 0.5.0. Revision 1.6 2000/10/29 17:44:18 kloczek - updated to 0.4.1, - Source url changed to ftp://, - uncomment using %%find_lang. Revision 1.5 2000/10/29 17:36:36 kloczek - release 2: use new rpm automation and rebuild against gnome-libs linked with db3. Revision 1.4 2000/06/09 07:22:50 kloczek - added using %%{__make} macro. Revision 1.3 2000/06/01 00:32:58 kloczek - changed prefix to /usr/X11R6. Revision 1.2 2000/06/01 00:32:02 kloczek - completly rewrited in PLD style. * Mon May 29 2000 Tomas Junnonen - First spec file
_______________________________________________ pld-devel-pl mailing list [EMAIL PROTECTED] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
