summaryrefslogtreecommitdiffstats
path: root/perl-install/drakxtools.spec
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-04-23 11:04:53 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-04-23 11:04:53 +0000
commit02cf4a47be539aae1a505a406acacef030d7bac1 (patch)
tree9b402b86b4367d2cfd7939c5bf16d141ed0403bc /perl-install/drakxtools.spec
parentdad25588ed26afe49277032b8b1b24b063e34efa (diff)
downloaddrakx-02cf4a47be539aae1a505a406acacef030d7bac1.tar
drakx-02cf4a47be539aae1a505a406acacef030d7bac1.tar.gz
drakx-02cf4a47be539aae1a505a406acacef030d7bac1.tar.bz2
drakx-02cf4a47be539aae1a505a406acacef030d7bac1.tar.xz
drakx-02cf4a47be539aae1a505a406acacef030d7bac1.zip
- localedrake is part of drakxtools-newt, so does its menu entry (and
sanitize its entry btw) - drakxtools-newt: add the needed post and postun macros - sort provides'n obsoletes, add missing drakfloppy
Diffstat (limited to 'perl-install/drakxtools.spec')
-rw-r--r--perl-install/drakxtools.spec21
1 files changed, 13 insertions, 8 deletions
diff --git a/perl-install/drakxtools.spec b/perl-install/drakxtools.spec
index 6cf453f72..4bed04205 100644
--- a/perl-install/drakxtools.spec
+++ b/perl-install/drakxtools.spec
@@ -19,9 +19,8 @@ Obsoletes: draksec
Summary: The drakxtools (XFdrake, diskdrake, keyboarddrake, mousedrake...)
Group: System/Configuration/Other
Requires: perl-base >= 1:5.8.0-10mdk, urpmi, modutils >= 2.3.11, ldetect-lst >= 0.1.7-3mdk, usermode-consoleonly >= 1.44-4mdk, msec >= 0.38
-Obsoletes: diskdrake setuptool
-Obsoletes: mouseconfig kbdconfig printtool drakfloppy
-Provides: diskdrake setuptool mouseconfig kbdconfig printtool
+Obsoletes: diskdrake drakfloppy kbdconfig mouseconfig printtool setuptool
+Provides: diskdrake drakfloppy kbdconfig mouseconfig printtool setuptool
%package http
Summary: The drakxtools via http
@@ -174,16 +173,16 @@ perl -ni -e '/http/ ? print STDERR $_ : print' %{name}.list 2> %{name}-http.list
#mdk menu entry
mkdir -p $RPM_BUILD_ROOT/%_menudir
-cat > $RPM_BUILD_ROOT%_menudir/localedrake <<EOF
-?package(harddrake-ui):\
+cat > $RPM_BUILD_ROOT%_menudir/drakxtools-newt <<EOF
+?package(drakxtools-newt):\
needs="X11"\
section="Configuration/Other"\
title="LocaleDrake"\
longtitle="Language configurator"\
command="/usr/bin/localedrake"\
- icon="harddrake.png"
-EOF
+EOF
+
cat > $RPM_BUILD_ROOT%_menudir/harddrake-ui <<EOF
?package(harddrake-ui):\
needs="X11"\
@@ -246,6 +245,12 @@ done
%preun http
%_preun_service drakxtools_http
+%post newt
+%update_menus
+
+%postun newt
+%clean_menus
+
%post -n harddrake-ui
%update_menus
@@ -264,12 +269,12 @@ file /etc/sysconfig/harddrake2/previous_hw | fgrep -q perl && %_datadir/harddrak
%files newt -f %name.list
%defattr(-,root,root)
%config(noreplace) /etc/security/fileshare.conf
+%_menudir/drakxtools-newt
%doc diskdrake/diskdrake.html
%attr(4755,root,root) %_sbindir/fileshareset
%files -f %{name}-gtk.list
%defattr(-,root,root)
-%_menudir/localedrake
%config(noreplace) %_sysconfdir/pam.d/net_monitor
%config(noreplace) %_sysconfdir/security/console.apps/net_monitor
/usr/X11R6/bin/*