/[packages]/cauldron/wine/current/SPECS/wine.spec
ViewVC logotype

Diff of /cauldron/wine/current/SPECS/wine.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 272245 by dams, Wed Jul 18 09:11:24 2012 UTC revision 277515 by dams, Wed Aug 1 16:23:39 2012 UTC
# Line 19  Line 19 
19    
20  # When altering this, make sure the new wine-gecko is submitted or at least  # When altering this, make sure the new wine-gecko is submitted or at least
21  # notify its maintainer of the needed update.  # notify its maintainer of the needed update.
22  %define gecko_version   1.6  %define gecko_version   1.7
23    
24  Name:           wine  Name:           wine
25  Version:        1.5.9  Version:        1.5.10
26  %define pre     0  %define pre     0
27  %define rel     1  %define rel     1
28  %if %pre  %if %pre
# Line 41  Source0:       http://prdownloads.sourceforge. Line 41  Source0:       http://prdownloads.sourceforge.
41  Source1:        http://prdownloads.sourceforge.net/wine/%{name}-%{o_ver}.tar.bz2.sign  Source1:        http://prdownloads.sourceforge.net/wine/%{name}-%{o_ver}.tar.bz2.sign
42    
43  # RH stuff  # RH stuff
44  Source2:        wine.init  Source2:        %{name}.init
45  Patch0:         wine-1.0-rc3-fix-conflicts-with-openssl.patch  Patch0:         %{name}-1.0-rc3-fix-conflicts-with-openssl.patch
46  Patch1:         wine-1.1.7-chinese-font-substitutes.patch  Patch1:         %{name}-1.1.7-chinese-font-substitutes.patch
47  # (Anssi 05/2008) Adds:  # (Anssi 05/2008) Adds:
48  # a: => /media/floppy (/mnt/floppy on 2007.1 and older)  # a: => /media/floppy (/mnt/floppy on 2007.1 and older)
49  # d: => $HOME (at config_dir creation time, not refreshed if $HOME changes;  # d: => $HOME (at config_dir creation time, not refreshed if $HOME changes;
50  #              note that Wine also provides $HOME in My Documents)  #              note that Wine also provides $HOME in My Documents)
51  # com4 => /dev/ttyUSB0 (replaces /dev/ttyS3)  # com4 => /dev/ttyUSB0 (replaces /dev/ttyS3)
52  Patch108:       wine-mgaconf.patch  Patch108:       %{name}-mgaconf.patch
53    
54  # (anssi) Wine needs GCC 4.4+ on x86_64 for MS ABI support. Note also that  # (anssi) Wine needs GCC 4.4+ on x86_64 for MS ABI support. Note also that
55  # 64-bit wine cannot run 32-bit programs without wine32.  # 64-bit wine cannot run 32-bit programs without wine32.
# Line 64  BuildRequires: cups-devel Line 64  BuildRequires: cups-devel
64  BuildRequires:  sane-devel  BuildRequires:  sane-devel
65  BuildRequires:  lcms-devel  BuildRequires:  lcms-devel
66  BuildRequires:  autoconf  BuildRequires:  autoconf
 BuildRequires:  docbook-utils docbook-dtd-sgml  
67  BuildRequires:  docbook-utils docbook-dtd-sgml sgml-tools  BuildRequires:  docbook-utils docbook-dtd-sgml sgml-tools
68  BuildRequires:  pulseaudio-devel  BuildRequires:  pulseaudio-devel
69  BuildRequires:  libmpg123-devel  BuildRequires:  libmpg123-devel
# Line 108  be used for porting Win32 code into nati Line 107  be used for porting Win32 code into nati
107  %package -n     %{wine}  %package -n     %{wine}
108  Summary:        WINE Is Not An Emulator - runs MS Windows programs  Summary:        WINE Is Not An Emulator - runs MS Windows programs
109  Group:          Emulators  Group:          Emulators
110  Suggests:       wine32 = %{epoch}:%{version}-%{release}  Suggests:       %{name}32 = %{epoch}:%{version}-%{release}
111  Suggests:       wine64-gecko = %gecko_version  Suggests:       %{name}64-gecko = %gecko_version
112  %else  %else
113  # on 32-bit we always want wine32 package  # on 32-bit we always want wine32 package
114  Requires:       wine32 = %{epoch}:%{version}-%{release}  Requires:       %{name}32 = %{epoch}:%{version}-%{release}
115  %endif  %endif
116    
117  Provides:       %{wine}-utils = %{epoch}:%{version}-%{release} %{wine}-full = %{epoch}:%{version}-%{release}  Provides:       %{wine}-utils = %{epoch}:%{version}-%{release} %{wine}-full = %{epoch}:%{version}-%{release}
# Line 136  Requires(postun): desktop-common-data Line 135  Requires(postun): desktop-common-data
135  Requires(preun): rpm-helper  Requires(preun): rpm-helper
136  Requires(post): rpm-helper  Requires(post): rpm-helper
137  %ifarch %{ix86}  %ifarch %{ix86}
138  Conflicts:      wine64  Conflicts:      %{name}64
139  %else  %else
140  Conflicts:      wine  Conflicts:      %{name}
141  %endif  %endif
142    
143  %description  %description
# Line 159  Group:         Emulators Line 158  Group:         Emulators
158  # This is not an EVR-specific requirement, as otherwise on x86_64 urpmi could  # This is not an EVR-specific requirement, as otherwise on x86_64 urpmi could
159  # resolve the dependency to wine64 even on upgrades, and therefore replace  # resolve the dependency to wine64 even on upgrades, and therefore replace
160  # wine+wine32 installation with a wine32+wine64 installation. - Anssi  # wine+wine32 installation with a wine32+wine64 installation. - Anssi
161  Requires:       wine-bin  Requires:       %{name}-bin
162  Conflicts:      wine < 1:1.2-0.rc7.1  Conflicts:      %{name} < 1:1.2-0.rc7.1
163  Conflicts:      wine64 < 1:1.2-0.rc7.1  Conflicts:      %{name}64 < 1:1.2-0.rc7.1
164  # (Anssi) If wine-gecko is not installed, wine pops up a dialog on first  # (Anssi) If wine-gecko is not installed, wine pops up a dialog on first
165  # start proposing to download wine-gecko from sourceforge, while recommending  # start proposing to download wine-gecko from sourceforge, while recommending
166  # to use distribution packages instead. Therefore suggest wine-gecko here:  # to use distribution packages instead. Therefore suggest wine-gecko here:
167  Suggests:       wine-gecko = %gecko_version  Suggests:       %{name}-gecko = %gecko_version
168    
169  %description -n wine32  %description -n wine32
170  Wine is a program which allows running Microsoft Windows programs  Wine is a program which allows running Microsoft Windows programs
# Line 184  Provides:      %{lib_name_orig}-devel = %{epo Line 183  Provides:      %{lib_name_orig}-devel = %{epo
183  Obsoletes:      %{lib_name_devel} <= %{epoch}:%{version}-%{release}  Obsoletes:      %{lib_name_devel} <= %{epoch}:%{version}-%{release}
184  Obsoletes:      %{mklibname -d wine 1} < %{epoch}:%{version}  Obsoletes:      %{mklibname -d wine 1} < %{epoch}:%{version}
185  %ifarch %{ix86}  %ifarch %{ix86}
186  Conflicts:      wine64-devel  Conflicts:      %{name}64-devel
187  %else  %else
188  Conflicts:      wine-devel  Conflicts:      %{name}-devel
189  %endif  %endif
190    
191  %description -n %{wine}-devel  %description -n %{wine}-devel
# Line 196  Wine is a program which allows running M Line 195  Wine is a program which allows running M
195  %{wine}-devel contains the libraries and header files needed to  %{wine}-devel contains the libraries and header files needed to
196  develop programs which make use of wine.  develop programs which make use of wine.
197    
 Wine is often updated.  
   
198  %prep  %prep
199  %setup -q -n %name-%o_ver  %setup -q -n %name-%o_ver
200  %patch1 -p0 -b .chinese  %patch1 -p0 -b .chinese
201  %patch108 -p1 -b .conf  %patch108 -p1 -b .conf
202    
203  GECKO_VERSION=$(sed -rn 's,^#define\s+GECKO_VERSION\s+"([^"]*)".*$,\1,p' dlls/appwiz.cpl/addons.c)  GECKO_VERSION=$(sed -rn 's,^#define\s+GECKO_VERSION\s+"([^"]*)".*$,\1,p' dlls/appwiz.cpl/addons.c)
204  [ "$GECKO_VERSION" = "%gecko_version" ] || { echo wine-gecko version mismatch; exit 1; }  [ "$GECKO_VERSION" = "%gecko_version" ] || { echo %{name}-gecko version mismatch; exit 1; }
205    
206  %build  %build
207  %ifarch %ix86  %ifarch %ix86
# Line 295  desktop-file-install   --vendor="" \ Line 292  desktop-file-install   --vendor="" \
292                          --add-mime-type=application/x-zip-compressed \                          --add-mime-type=application/x-zip-compressed \
293                          --remove-mime-type=application/x-zip-compressed \                          --remove-mime-type=application/x-zip-compressed \
294                          --add-category=Emulator \                          --add-category=Emulator \
295                          --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/wine.desktop                          --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop
296    
297  %ifarch x86_64  %ifarch x86_64
298  # fix the binary name  # fix the binary name
299  sed -i 's,Exec=wine ,Exec=wine64 ,' %{buildroot}%{_datadir}/applications/wine.desktop  sed -i 's,Exec=wine ,Exec=wine64 ,' %{buildroot}%{_datadir}/applications/%{name}.desktop
300  %endif  %endif
301    
302  install -d %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}  install -d %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
# Line 362  EOF Line 359  EOF
359  %doc ANNOUNCE AUTHORS README  %doc ANNOUNCE AUTHORS README
360  %ifarch x86_64  %ifarch x86_64
361  %doc README.install.urpmi  %doc README.install.urpmi
362  %{_bindir}/wine64  %{_bindir}/%{name}64
363  %{_bindir}/wine64-preloader  %{_bindir}/%{name}64-preloader
364  %endif  %endif
365  %{_initrddir}/%{name}  %{_initrddir}/%{name}
366  %{_bindir}/winecfg  %{_bindir}/winecfg

Legend:
Removed from v.272245  
changed lines
  Added in v.277515

  ViewVC Help
Powered by ViewVC 1.1.30