[Wine]winetools rpm for Mandrake (test phase)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I just proposed a binary rpm for Mandrake (in a testing phase among
Mandrake Club). I put most of winetools stuff
into /usr/share/winetools/2.1.1jo/ like for Debian. Po files are still
in the binary installation to encourage translations but they will be
suppressed by Mandrake people if in contribs. I included my proposition
of fr.po (already sent to the list) in the binary. 
Xdialog binary can't be included in a binary rpm and has been removed.

But Xdialog is included in the Requires statement
Requires:  Xdialog, wine = 20041019-mdk

I am a little bit lost with Official Mandrake wine binary distribution
and I prefer to require the raw (Puoti) rpm from Mandrake which can be
downloaded from wine-hq. 

I am including the diff of the spec which is my 2 cents work.

Cheers,
Nicolas

-- 
Brouard Nicolas <nicolas.brouard@xxxxxxxxxxxxxx>
diff -burN winetools-211.spec winetools.spec
--- winetools-211.spec  2005-02-23 12:42:05.000000000 +0100
+++ winetools.spec      2005-02-24 13:28:45.767344368 +0100
@@ -1,16 +1,16 @@
 %define wtver 211
 Summary:   WineTools is a menu driven installer for installing Windows programs under Linux.
 Name:      winetools
-Version:   2.1.1
-Release:   jo
+Version:   2.1.1jo
+Release:   0mdk
 Copyright: GPL
 Url:       http://www.von-thadden.de/Joachim/WineTools/

-Packager:  Joachim von Thadden <thadden@xxxxxx>
 Group:     Applications/Emulator
-Source:    %{name}-%{wtver}jo.tar.gz
-BuildRoot: /tmp/%{name}-%{version}-rpmbuild/
-Requires:  Xdialog, wine
+Source:    %{name}-%{wtver}jo.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
+Requires:  Xdialog, wine = 20041019-mdk
+#Requires:  Xdialog, wine = 20041201-mdk

 %description
 WineTools is a menu driven installer for installing about 90 Windows programs under the x86 (Athlon or Intel PC)
@@ -35,17 +35,27 @@
 %setup -q -n %{name}
 %build
 %install
-mkdir -p $RPM_BUILD_ROOT/usr/local/{winetools,bin}
-cp -a $RPM_BUILD_DIR/%{name}/* $RPM_BUILD_ROOT/usr/local/winetools
-mv $RPM_BUILD_ROOT/usr/local/winetools/Xdialog $RPM_BUILD_ROOT/usr/local/winetools/Xdialog.builtin
-ln -sf /usr/local/winetools/wt%{wtver}jo $RPM_BUILD_ROOT/usr/local/bin/wt2
-ln -sf /usr/local/winetools/wt%{wtver}jo $RPM_BUILD_ROOT/usr/local/bin/winetools
-ln -sf /usr/local/winetools/findwine $RPM_BUILD_ROOT/usr/local/bin/findwine
-cd $RPM_BUILD_ROOT/usr/local/winetools/po
+mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/%{version}
+mkdir -p $RPM_BUILD_ROOT/usr/bin
+cp -a $RPM_BUILD_DIR/%{name}/* $RPM_BUILD_ROOT/usr/share/%{name}/%{version}
+rm  $RPM_BUILD_ROOT/usr/share/%{name}/%{version}/Xdialog
+sed -e 's/BASEDIR=\"\/usr\/local\/winetools/BASEDIR=\"\/usr\/share\/%{name}\/%{version}/' \+ -e 's/DIALOG=\"\$BASEDIR\/Xdialog/DIALOG=\"\/usr\/bin\/Xdialog/' \
+ -e 's/TEXTDOMAINDIR=\/usr\/local\/share\/locale/TEXTDOMAINDIR=\/usr\/share\/locale/' \
+ -e 's/dillo firefox mozilla konqueror/dillo mozilla-firefox mozilla konqueror/' \
+   $RPM_BUILD_DIR/%{name}/wt%{wtver}jo  1>$RPM_BUILD_ROOT/usr/share/%{name}/%{version}/wt%{wtver}jo
+sed -e 's/BASEDIR=\"\/usr\/local\/winetools/BASEDIR=\"\/usr\/share\/%{name}\/%{version}/' \+ -e 's/DIALOG=\"\/usr\/local\/winetools\/Xdialog/DIALOG=\"\/usr\/bin\/Xdialog/' \
+ -e 's/TEXTDOMAINDIR=\/usr\/local\/share\/locale/TEXTDOMAINDIR=\/usr\/share\/locale/' \
+   $RPM_BUILD_DIR/%{name}/findwine  1>$RPM_BUILD_ROOT/usr/share/%{name}/%{version}/findwine+ln -sf /usr/share/%{name}/%{version}/wt%{wtver}jo $RPM_BUILD_ROOT/usr/bin/wt2
+ln -sf /usr/share/%{name}/%{version}/wt%{wtver}jo $RPM_BUILD_ROOT/usr/bin/%{name}
+ln -sf /usr/share/%{name}/%{version}/findwine $RPM_BUILD_ROOT/usr/bin/findwine
+cd $RPM_BUILD_ROOT/usr/share/%{name}/%{version}/po
 for i in $( ls  *.po|cut -f1 -d.); do
-       mkdir -p $RPM_BUILD_ROOT/usr/local/share/locale/$i/LC_MESSAGES
-       msgfmt $i.po -o $RPM_BUILD_ROOT/usr/local/share/locale/$i/LC_MESSAGES/wt2.mo
-        echo "Installed translations for $i to $RPM_BUILD_ROOT/usr/local/share/locale/$i/LC_MESSAGES/wt2.mo"
+       mkdir -p $RPM_BUILD_ROOT/usr/share/locale/$i/LC_MESSAGES
+       msgfmt $i.po -o $RPM_BUILD_ROOT/usr/share/locale/$i/LC_MESSAGES/wt2.mo
+        echo "Installed translations for $i to $RPM_BUILD_ROOT/usr/share/locale/$i/LC_MESSAGES/wt2.mo"
 done

 %clean
@@ -53,19 +63,20 @@
 rm -rf $RPM_BUILD_DIR/%{name}

 %post
-DIALOG="`which Xdialog`"
-if [ "$?" = "0" ]; then
-  ln -s $DIALOG /usr/local/winetools/Xdialog || echo "Could not link Xdialog to the WineTools directory. You have to do that manually for WineTools to work."
-else
-  ln -s /usr/local/winetools/Xdialog.builtin /usr/local/winetools/Xdialog || echo "Could not link Xdialog to the WineTools directory. You have to do that manually for WineTools to work."
-fi

 %preun
-rm /usr/local/winetools/Xdialog

 %files
 %doc CHANGELOG.txt  README.* TODO.*
-/usr/local/winetools
-/usr/local/share/locale
-/usr/local/bin
-/usr/local/bin
+/usr/share/%{name}/%{version}
+/usr/share/locale
+/usr/bin
+
+%changelog
+* Wed Feb 24 2005 Nicolas Brouard <brouard@xxxxxxx> 2.1.1-0mdk
+- First packaging for MandrakeClub
+- Integration of fr.po
+- firefox is mozilla-firefox on mandrake
+- Xdialog binary removed
+- winetools seems to require native wine20041019-mdk from wine hq. Don't know
+  how to adapt from Mandrake rpm.

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux