|
@@ -1,12 +1,12 @@
|
|
|
-%define pkg_major_version 1.8
|
|
|
+%define pkg_major_version 1.8.1
|
|
|
%define pkg_name wine
|
|
|
%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
# NEW Release: numbering rule. -- Release: 1%{?_dist_release}
|
|
|
# spec file for package wine.. # base (SUSE10 and fedora core 9)
|
|
|
|
|
|
-Summary: Allows running Windows 16/32/64 bit programs on Unix.
|
|
|
-Summary(ja): Unix で 16/32/64ビットWindoowsプログラムを実行させます
|
|
|
+Summary: Allows running Windows 16/32 bit programs on Unix.
|
|
|
+Summary(ja): Unix で 16/32ビットWindoowsプログラムを実行させます
|
|
|
Name: %{pkg_name}
|
|
|
Version: %{pkg_major_version}
|
|
|
Release: %{pkg_release}
|
|
@@ -21,6 +21,7 @@ Source0: http://prdownloads.sourceforge.net/wine/%{name}-%{version}.tar.bz2
|
|
|
Source1: wine.init
|
|
|
Source3: wine-README-Fedora
|
|
|
Source4: wine-32.conf
|
|
|
+Source5: wine-64.conf
|
|
|
# desktop stuff
|
|
|
Source100: wine-notepad.desktop
|
|
|
Source101: wine-regedit.desktop
|
|
@@ -41,6 +42,7 @@ Source300: wine-mime-msi.desktop
|
|
|
Patch0: wine-prefixfonts.patch
|
|
|
Patch1: wine-1.1.28-rpath.patch
|
|
|
Patch2: wine-1.7.40-x86_64_gstreamer.patch
|
|
|
+Patch3: wine-cjk.patch
|
|
|
|
|
|
# ADD ja
|
|
|
Source801: wine_README.ja
|
|
@@ -150,6 +152,7 @@ BuildRequires: compat32-openldap-devel
|
|
|
|
|
|
Requires: compat32-freetype2
|
|
|
Requires: compat32-ncurses
|
|
|
+Requires: compat32-eudev-libudev
|
|
|
%endif
|
|
|
|
|
|
Requires(post): /sbin/ldconfig, /sbin/chkconfig, /sbin/service
|
|
@@ -184,12 +187,29 @@ Windows 3.x/9x/NT バイナリを x86 や x86_64 のUnix システムで動作
|
|
|
Windows システムの .dll ファイルが存在するのならば、それを使用する
|
|
|
事もできます
|
|
|
|
|
|
+#--------------------------------------------------------------------
|
|
|
+%package 64bit
|
|
|
+Summary: Allows running Windows 64 bit programs on Unix.
|
|
|
+Summary(ja): Unix で 64ビットWindoowsプログラムを実行させます
|
|
|
+Group: Applications/System
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description 64bit
|
|
|
+(WINE Is Not an Emulator)
|
|
|
+ While Wine is usually thought of as a Windows(TM) emulator,
|
|
|
+the Wine developers would prefer that users thought of
|
|
|
+Wine as a Windows compatibility layer for UNIX.
|
|
|
+ This package includes a program loader, which allows
|
|
|
+unmodified Windows 64bit binaries to run on x86_64 Unixes.
|
|
|
+Wine does not require MS Windows, but it can use native
|
|
|
+system .dll files if they are available.
|
|
|
+
|
|
|
#--------------------------------------------------------------------
|
|
|
%package devel
|
|
|
Summary: Wine development environment
|
|
|
Summary(ja): WINE の開発ファイルです
|
|
|
Group: System Environment/Libraries
|
|
|
-Requires: wine = %{version}-%{release}
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
|
This RPM contains the header files and development tools
|
|
@@ -205,7 +225,7 @@ WINEの開発用ライブラリやヘッダーファイル、そして開発用
|
|
|
Summary: WINE binfmt_misc kernel function used for init file.
|
|
|
Summary(ja): WINE で binfmt_misc機能 を使うための起動ファイルです
|
|
|
Group: System Environment/Libraries
|
|
|
-Requires: wine = %{version}-%{release}
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description init
|
|
|
WINE binfmt_misc kernel function used for init file.
|
|
@@ -237,7 +257,11 @@ Of course, please be mindful of security.
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
%ifarch x86_64
|
|
|
%patch2 -p1
|
|
|
+rm -rf ../64bit
|
|
|
+mkdir ../64bit
|
|
|
+cp -r * ../64bit/
|
|
|
%endif
|
|
|
+%patch3 -p1 -b .cjk
|
|
|
|
|
|
# fix typo
|
|
|
sed -i "s|Thamoa|Tahoma|" po/ja.po
|
|
@@ -248,14 +272,27 @@ autoreconf -if
|
|
|
export CFLAGS="-O2 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -fno-schedule-insns2"
|
|
|
./configure \
|
|
|
--prefix=%{_prefix} \
|
|
|
- --libdir=%{_libdir} \
|
|
|
+ --libdir=%{_prefix}/lib \
|
|
|
--with-x \
|
|
|
- --without-jack \
|
|
|
--without-capi \
|
|
|
--without-gphoto \
|
|
|
--without-hal \
|
|
|
--without-mpg123 \
|
|
|
- --without-sane
|
|
|
+ --without-sane
|
|
|
+
|
|
|
+pushd ../64bit
|
|
|
+autoreconf -if
|
|
|
+export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
+%{configure} \
|
|
|
+ --prefix=%{_prefix} \
|
|
|
+ --with-x \
|
|
|
+ --without-capi \
|
|
|
+ --without-gphoto \
|
|
|
+ --without-hal \
|
|
|
+ --without-mpg123 \
|
|
|
+ --without-sane \
|
|
|
+ --enable-win64
|
|
|
+popd
|
|
|
%else
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
%{configure} \
|
|
@@ -271,12 +308,28 @@ export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
grep "have_x=yes" config.log || exit 1
|
|
|
|
|
|
+%ifarch x86_64
|
|
|
+export CFLAGS="-O2 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -fno-schedule-insns2"
|
|
|
+%{__make} depend
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
+export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
+pushd ../64bit
|
|
|
+%{__make} depend
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
+popd
|
|
|
+%else
|
|
|
%{__make} depend
|
|
|
-
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
+%endif
|
|
|
|
|
|
%install
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
+%ifarch x86_64
|
|
|
+pushd ../64bit
|
|
|
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
+mv ${RPM_BUILD_ROOT}%{_bindir}/wineserver ${RPM_BUILD_ROOT}%{_bindir}/wineserver64
|
|
|
+popd
|
|
|
+%endif
|
|
|
%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
|
#-----------------------------------------------------------FC9
|
|
@@ -359,8 +412,11 @@ cp %{SOURCE801} documentation/README.ja
|
|
|
cp %{SOURCE804} documentation/README_add.ja
|
|
|
cp %{SOURCE805} %{SOURCE806} %{SOURCE807} %{SOURCE808} %{SOURCE809} documentation/
|
|
|
|
|
|
-mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/ld.so.conf.d/
|
|
|
+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/ld.so.conf.d/
|
|
|
install -p -m644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/ld.so.conf.d/
|
|
|
+%ifarch x86_64
|
|
|
+install -p -m644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_sysconfdir}/ld.so.conf.d/
|
|
|
+%endif
|
|
|
|
|
|
# check desktop files
|
|
|
%check
|
|
@@ -403,6 +459,10 @@ fi
|
|
|
/sbin/ldconfig
|
|
|
update-desktop-database &>/dev/null || :
|
|
|
|
|
|
+%post 64bit -p /sbin/ldconfig
|
|
|
+
|
|
|
+%postun 64bit -p /sbin/ldconfig
|
|
|
+
|
|
|
%post init
|
|
|
if [ $1 = 1 ]; then
|
|
|
/sbin/chkconfig --add wine
|
|
@@ -448,20 +508,19 @@ fi
|
|
|
%doc README VERSION
|
|
|
%doc README-Fedora
|
|
|
%doc README-Fedora.ja
|
|
|
-%doc documentation/README* documentation/ChangeLog*
|
|
|
+%doc documentation/README*
|
|
|
%doc documentation/ja_fonts_replace*
|
|
|
%doc documentation/fonts-replace-list.txt
|
|
|
-### %{_bindir}/*
|
|
|
+%{_sysconfdir}/xdg/menus/applications-merged/wine.menu
|
|
|
+%{_sysconfdir}/ld.so.conf.d/wine-32.conf
|
|
|
%{_bindir}/msiexec
|
|
|
%{_bindir}/regedit
|
|
|
%{_bindir}/regsvr32
|
|
|
%{_bindir}/wine
|
|
|
%{_bindir}/wineboot
|
|
|
%{_bindir}/wineconsole
|
|
|
-## %{_bindir}/wineprefixcreate
|
|
|
%{_bindir}/winecfg
|
|
|
%{_bindir}/wine-preloader
|
|
|
-# winelauncher --> Remove
|
|
|
%{_bindir}/wineserver
|
|
|
%{_bindir}/notepad
|
|
|
%{_bindir}/winedbg
|
|
@@ -470,28 +529,45 @@ fi
|
|
|
%{_bindir}/winemaker
|
|
|
%{_bindir}/winemine
|
|
|
%{_bindir}/winepath
|
|
|
-## winhelp -> renamed winhlp32.exe
|
|
|
-%{_sysconfdir}/xdg/menus/applications-merged/wine.menu
|
|
|
-%{_sysconfdir}/ld.so.conf.d/wine-32.conf
|
|
|
+%ifarch x86_64
|
|
|
+%{_prefix}/lib/libwine.so.1*
|
|
|
+%dir %{_prefix}/lib/wine
|
|
|
+%{_prefix}/lib/wine/*.cpl.so
|
|
|
+%{_prefix}/lib/wine/*.exe.so
|
|
|
+%{_prefix}/lib/wine/*.exe16.so
|
|
|
+%{_prefix}/lib/wine/*.dll.so
|
|
|
+%{_prefix}/lib/wine/*.dll16.so
|
|
|
+%{_prefix}/lib/wine/*.drv.so
|
|
|
+%{_prefix}/lib/wine/*.drv16.so
|
|
|
+%{_prefix}/lib/wine/*.mod16.so
|
|
|
+%{_prefix}/lib/wine/*.ds.so
|
|
|
+%{_prefix}/lib/wine/*.ocx.so
|
|
|
+%{_prefix}/lib/wine/*.vxd.so
|
|
|
+%{_prefix}/lib/wine/*.acm.so
|
|
|
+%{_prefix}/lib/wine/*.sys.so
|
|
|
+%{_prefix}/lib/wine/*.tlb.so
|
|
|
+%dir %{_prefix}/lib/wine/fakedlls
|
|
|
+%{_prefix}/lib/wine/fakedlls/*
|
|
|
+%else
|
|
|
%{_libdir}/libwine.so.1*
|
|
|
%dir %{_libdir}/wine
|
|
|
%{_libdir}/wine/*.cpl.so
|
|
|
%{_libdir}/wine/*.exe.so
|
|
|
-%{_libdir}/wine/*.exe16.so
|
|
|
%{_libdir}/wine/*.dll.so
|
|
|
-%{_libdir}/wine/*.dll16.so
|
|
|
%{_libdir}/wine/*.drv.so
|
|
|
-%{_libdir}/wine/*.drv16.so
|
|
|
-%{_libdir}/wine/*.mod16.so
|
|
|
-## %{_libdir}/wine/*.*16
|
|
|
%{_libdir}/wine/*.ds.so
|
|
|
%{_libdir}/wine/*.ocx.so
|
|
|
-%{_libdir}/wine/*.vxd.so
|
|
|
%{_libdir}/wine/*.acm.so
|
|
|
%{_libdir}/wine/*.sys.so
|
|
|
%{_libdir}/wine/*.tlb.so
|
|
|
+%{_libdir}/wine/*.exe16.so
|
|
|
+%{_libdir}/wine/*.dll16.so
|
|
|
+%{_libdir}/wine/*.drv16.so
|
|
|
+%{_libdir}/wine/*.mod16.so
|
|
|
+%{_libdir}/wine/*.vxd.so
|
|
|
%dir %{_libdir}/wine/fakedlls
|
|
|
%{_libdir}/wine/fakedlls/*
|
|
|
+%endif
|
|
|
%dir %{_datadir}/wine
|
|
|
%{_datadir}/wine/*
|
|
|
%{_datadir}/applications/vine-wine-mime-msi.desktop
|
|
@@ -517,11 +593,32 @@ fi
|
|
|
%{_mandir}/man1/winefile.1*
|
|
|
%{_mandir}/man1/winemine.1*
|
|
|
%{_mandir}/man1/winepath.1*
|
|
|
-## %{_mandir}/man1/wineprefixcreate.1*
|
|
|
%lang(de) %{_mandir}/de.UTF-8/man1/*.1*
|
|
|
%lang(fr) %{_mandir}/fr.UTF-8/man1/*
|
|
|
%lang(pl) %{_mandir}/pl.UTF-8/man1/wine.1*
|
|
|
|
|
|
+#--------------------------------------------------------------------
|
|
|
+%ifarch x86_64
|
|
|
+%files 64bit
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_sysconfdir}/ld.so.conf.d/wine-64.conf
|
|
|
+%{_bindir}/wine64
|
|
|
+%{_bindir}/wine64-preloader
|
|
|
+%{_bindir}/wineserver64
|
|
|
+%{_libdir}/libwine.so.1*
|
|
|
+%dir %{_libdir}/wine
|
|
|
+%{_libdir}/wine/*.cpl.so
|
|
|
+%{_libdir}/wine/*.exe.so
|
|
|
+%{_libdir}/wine/*.dll.so
|
|
|
+%{_libdir}/wine/*.drv.so
|
|
|
+%{_libdir}/wine/*.ds.so
|
|
|
+%{_libdir}/wine/*.ocx.so
|
|
|
+%{_libdir}/wine/*.acm.so
|
|
|
+%{_libdir}/wine/*.sys.so
|
|
|
+%{_libdir}/wine/*.tlb.so
|
|
|
+%dir %{_libdir}/wine/fakedlls
|
|
|
+%{_libdir}/wine/fakedlls/*
|
|
|
+%endif
|
|
|
#--------------------------------------------------------------------
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
@@ -541,6 +638,12 @@ fi
|
|
|
%{_libdir}/wine/*.a
|
|
|
%{_libdir}/wine/*.def
|
|
|
|
|
|
+%ifarch x86_64
|
|
|
+%{_prefix}/lib/*.so
|
|
|
+%{_prefix}/lib/wine/*.a
|
|
|
+%{_prefix}/lib/wine/*.def
|
|
|
+%endif
|
|
|
+
|
|
|
%{_mandir}/man1/widl.1*
|
|
|
%{_mandir}/man1/winebuild.1*
|
|
|
%{_mandir}/man1/winecpp.1*
|
|
@@ -552,7 +655,6 @@ fi
|
|
|
%{_mandir}/man1/winedbg.1*
|
|
|
%{_mandir}/man1/wineg++.1*
|
|
|
|
|
|
-
|
|
|
#--------------------------------------------------------------------
|
|
|
%files init
|
|
|
%defattr(-,root,root,-)
|
|
@@ -561,6 +663,14 @@ fi
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
%changelog
|
|
|
+* Thu Feb 11 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
|
|
|
+- new upstream release
|
|
|
+- add Source5 (wine-64.conf)
|
|
|
+- add Patch3 (wine-cjk.patch) based on fedora
|
|
|
+- add Requires: compat32-eudev-libudev
|
|
|
+- add configure option (--enable-win64)
|
|
|
+- create wine-64bit subpackage
|
|
|
+
|
|
|
* Sun Dec 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8-1
|
|
|
- new upstream release
|
|
|
- remove Patch400,401,402
|