From 76ef832ce5348d12a871223d4c034c7daeaddb82 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Mon, 17 Oct 2011 18:47:27 +0100 Subject: Adding the remaining Mandriva patches and spec files --- .../servicemenu-mountiso/fix_weird_iso_names.patch | 57 ++++++++++++++ .../other/servicemenu-mountiso/mountiso-0.9.5.spec | 86 ++++++++++++++++++++++ 2 files changed, 143 insertions(+) create mode 100644 mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch create mode 100644 mandriva/2010.2/other/servicemenu-mountiso/mountiso-0.9.5.spec (limited to 'mandriva/2010.2/other/servicemenu-mountiso') diff --git a/mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch b/mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch new file mode 100644 index 000000000..814393217 --- /dev/null +++ b/mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch @@ -0,0 +1,57 @@ +diff -Naur usr/bin/mountiso.sh usr.yedek/bin/mountiso.sh +--- usr/bin/mountiso.sh 2008-03-22 18:39:29.000000000 +0200 ++++ usr.yedek/bin/mountiso.sh 2009-11-21 16:29:27.000000000 +0200 +@@ -1,11 +1,23 @@ + #!/bin/sh + # Mount-ISO v0.9.5 ++# Define NEWLINE as the delimiter... ++IFS=' ++ ++'; ++ ++ ++ + BSNAME="`basename "$1"`" ++if [ -f /opt/kde3/bin/kdesu ]; then ++ kdesu="/opt/kde3/bin/kdesu" ++else ++ kdesu="/usr/bin/kdesu" ++fi + + if ( `echo "$BSNAME" | grep "Mount-ISO" > /dev/null` ) then + MOUNTDIR="$1" + else +- MOUNTDIR="$HOME/Desktop/Mount-ISO ($BSNAME)" ++ MOUNTDIR="$HOME/Mount-ISO ($BSNAME)" + fi + + function dialog { +@@ -129,8 +141,8 @@ + } + + function check_mount { +- DEV="`mount | grep "$1" | cut -f 1 -d " "`" +- if ( test ! -z "$DEV" ) then ++ DEV="`mount | grep "$1" | cut -f 1 -d ' '`" ++ if ( test ! -z \"$DEV\" ) then + return 0 + else + return 1 +@@ -208,7 +220,7 @@ + err 7 "$1" + ;; + esac +- kdesu -c "mount -t udf,iso9660 -o loop,ro,nodev,noexec,nosuid${MODE} \"${1}\" \"$MOUNTDIR\"" ++ $kdesu -c "mount -t udf,iso9660 -o loop,ro,nodev,noexec,nosuid${MODE} \"${1}\" \"$MOUNTDIR\"" + fi + if ( check_mount "$MOUNTDIR" ) then + kfmclient openURL "$MOUNTDIR" && note 1 +@@ -221,7 +233,7 @@ + if (test ! -d "$MOUNTDIR") then + err 4 "$1" + elif (check_mount "$MOUNTDIR") then +- kdesu -c "umount \"$MOUNTDIR\"" && ++ $kdesu -c "umount \"$MOUNTDIR\"" && + rmdir "$MOUNTDIR" && note 2 || + err 13 "$1" + if ( test "${DEV##/dev/cdemu/}" -ge 0 2>/dev/null ) then diff --git a/mandriva/2010.2/other/servicemenu-mountiso/mountiso-0.9.5.spec b/mandriva/2010.2/other/servicemenu-mountiso/mountiso-0.9.5.spec new file mode 100644 index 000000000..e351f2d7f --- /dev/null +++ b/mandriva/2010.2/other/servicemenu-mountiso/mountiso-0.9.5.spec @@ -0,0 +1,86 @@ +%define name kde3-servicemenu-mountiso +%define origname mountiso +%define version 0.9.5 +%define release %mkrel 3 +%define group Graphical desktop/KDE +%define arch noarch +%define distro %(rpm -qf --qf='%{VERSION}' /etc/mandrake-release) + + +Name: %{name} +Version: %{version} +Release: %{release} +License: GPL +Group: %{group} +Summary: MountISO - ISO Imager Mounter +Source0: %{origname}-%{version}.tar.bz2 +Patch0: fix_weird_iso_names.patch +Url: http://www.kde-apps.org/content/show.php/MountISO?content=11577 +BuildRoot: %{_tmppath}/%{origname}-%{version}-buildroot +BuildArch: %{arch} +#Conflicts: +Obsoletes: %{origname} +#BuildRequires: +Requires: kdebase +Suggests: ccd2iso cdemu extract-xiso bchunk mdf2iso + + +%description +Mount ISO Image is an advanced script which allows to perform multiple operations with ISO, NRG (Nero Burning ROM), UDF (DVD), CUE/BIN, CCD/IMG/SUB (CloneCD), XDVDFS (XBOX) and MDF images. + +Optionally can be installed the packages “ccd2iso, cdemu and extract-xiso”. + +Translations +------------ +- German (by Markus Bloch) +- Italian (by marcosegato) +- Russian (by Jinjiru) +- Serbian (by Mladen Pejaković) +- Spanish (by Javier Ariza Rodríguez & Alberto Garcia) +- Turkish (by Atilla Öntaş) + + +%prep +%setup -q -n usr +%patch0 -p1 +%build + +%install +rm -rf %buildroot +mkdir -p %{buildroot}%_kde3_datadir +mkdir -p %{buildroot}%_kde3_bindir +cp -R bin/* %{buildroot}%_kde3_bindir/ +cp -R share/* %{buildroot}%_kde3_datadir/ +#remove x-cue.desktop. Conflicts with kdelibs3-common-30000000:3.5.10-12mvt2010.0.x86_64 +pushd %buildroot/%_kde3_datadir/ + rm -rf mimelnk/application/x-cue.desktop +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%_kde3_bindir/* +%_kde3_appsdir/konqueror/servicemenus/*.desktop +%_kde3_appsdir/d3lphin/servicemenus/*.desktop +%_kde3_datadir/mimelnk/application/*.desktop + +%changelog +* Fri Jul 22 2011 Tim Williams 0.9.5-3mvt2010.2 +- Built for Trinity KDE + +* Mon Jul 19 2010 Tim Williams 0.9.5-2mvt2010.0 +- Built for MDV 2010.1 + +* Sat Nov 21 2009 Atilla ÖNTAŞ 0.9.5-1mvt2010.0 +-Packaged for 2010.0 + +* Sat Mar 22 2008 maik3531 0.9.5-1pclos2007 +- rebuild to PCLinuxOS +- provide a new Source0 +- add description -l de & summary de + +* Fri Mar 21 2008 Erkan Kaplan +- First build + -- cgit v1.2.1