SHA256
1
0
forked from pool/wine

- Added Ubuntu supplied desktop , menu and icons for

Wine stuff. bnc#613850

OBS-URL: https://build.opensuse.org/package/show/Emulators/wine?expand=0&rev=46
This commit is contained in:
Marcus Meissner 2010-06-14 14:33:34 +00:00 committed by Git OBS Bridge
parent 276a227086
commit 89855d1222
3 changed files with 42 additions and 1 deletions

3
ubuntuwine.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d1ddc082a1d70c43637dc831a5138788f2d9b9d5386201de15ea68d9368e3e1a
size 26182

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 14 16:23:47 CEST 2010 - meissner@suse.de
- Added Ubuntu supplied desktop , menu and icons for
Wine stuff. bnc#613850
-------------------------------------------------------------------
Fri Jun 11 23:04:47 CEST 2010 - meissner@suse.de

View File

@ -31,6 +31,7 @@ Source1: http://kegel.com/wine/winetricks
Source2: http://kegel.com/wine/wisotool
Source3: README.SuSE
Source4: wine.desktop
Source5: ubuntuwine.tar.bz2
Recommends: wine-gecko wine-mp3
Requires: wine-32bit = %version
# for winetricks:
@ -107,12 +108,33 @@ make %{?jobs:-j%jobs} all
make install DESTDIR=$RPM_BUILD_ROOT
# install desktop file
install -d $RPM_BUILD_ROOT/usr/share/applications/
%suse_update_desktop_file %{SOURCE4} Emulator
install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/usr/share/applications/
install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/usr/bin/
install -m 0755 %SOURCE2 $RPM_BUILD_ROOT/usr/bin/
mv $RPM_BUILD_ROOT/%{_mandir}/de.UTF-8 $RPM_BUILD_ROOT/%{_mandir}/de
mv $RPM_BUILD_ROOT/%{_mandir}/fr.UTF-8 $RPM_BUILD_ROOT/%{_mandir}/fr
%suse_update_desktop_file %{SOURCE4} Emulator
tar xjf %{SOURCE5}
# Copied from Ubuntu Wine out of debian.diff
# https://launchpad.net/~ubuntu-wine/+archive/ppa/+packages
# taken on 1.2rc2 time.
cd ubuntuwine
install -d $RPM_BUILD_ROOT/etc/xdg/menus/applications-merged
install -c -m 644 wine.menu $RPM_BUILD_ROOT/etc/xdg/menus/applications-merged
# Install application-specific desktop files
install -d $RPM_BUILD_ROOT/usr/share/applications
install -c -m 644 *.desktop $RPM_BUILD_ROOT/usr/share/applications/
install -d $RPM_BUILD_ROOT/usr/share/desktop-directories/
install -c -m 644 *.directory $RPM_BUILD_ROOT/usr/share/desktop-directories/
# Install icons
install -d $RPM_BUILD_ROOT/usr/share/pixmaps
install -c -m 644 *.svg $RPM_BUILD_ROOT/usr/share/pixmaps
cd ..
%fdupes -s $RPM_BUILD_ROOT
%clean
@ -160,6 +182,16 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/wine
/usr/share/applications/wine.desktop
%doc %{_mandir}/*/*
%dir /etc/xdg/
%dir /etc/xdg/menus/
%dir /etc/xdg/menus/applications-merged
/etc/xdg/menus/applications-merged/*.menu
%dir /usr/share/applications
/usr/share/applications/*.desktop
%dir /usr/share/desktop-directories/
/usr/share/desktop-directories/*.directory
%dir /usr/share/pixmaps
/usr/share/pixmaps/*.svg
%ifarch %ix86