commit 978b0cfb22e51e31ecb0593058c86d32d5d7e17b
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Apr 24 20:46:35 2014 +0300

    binary packaging, sources no longer available

 iron-browser.spec | 259 ++++++++++--------------------------------------------
 1 file changed, 45 insertions(+), 214 deletions(-)
---
diff --git a/iron-browser.spec b/iron-browser.spec
index 25c9ec6..4bd1055 100644
--- a/iron-browser.spec
+++ b/iron-browser.spec
@@ -1,100 +1,24 @@
-#
-# Conditional build:
-%bcond_with    verbose         # verbose build (V=1)
-%bcond_with    selinux         # with SELinux (need policy first)
-%bcond_with    shared_libs     # with shared libs
-%bcond_with    sse2            # use SSE2 instructions
-%bcond_with    system_sqlite   # with system sqlite
-%bcond_with    system_v8       # with system v8
-%bcond_without ffmpegsumo      # build with ffmpegsumo
-%bcond_without sandboxing      # with sandboxing
-%bcond_without system_zlib     # with system zlib
-%bcond_without debuginfo       # disable debuginfo creation (it is huge)
-
 Summary:       SRWare Iron: The Browser of the future
 Name:          iron-browser
-Version:       6.0.475.1
-Release:       0.%{svnver}.%{rel}
+Version:       31.0.700.0
+Release:       0.1
 License:       BSD, LGPL v2+ (ffmpeg)
 Group:         X11/Applications/Networking
-# download these with rsget.pl
-Source0:       http://rapidshare.com/files/422685582/src.7z.001
-# Source0-md5: 220e4f210e012a334a3ae351103f0a78
-Source1:       http://rapidshare.com/files/422697601/src.7z.002
-# Source1-md5: d7c151f509660dc3bc31821b3f0e894e
-Source2:       http://rapidshare.com/files/422709880/src.7z.003
-# Source2-md5: 4a0d1426cbd8ab32b54e9528f2f570a1
-#Source2:      %{name}.sh
-#Source3:      %{name}.desktop
-#Source4:      find-lang.sh
-#Source5:      update-source.sh
-#Patch0:               system-libs.patch
-#Patch1:               plugin-searchdirs.patch
-#Patch2:               gyp-system-minizip.patch
-#Patch3:               disable_dlog_and_dcheck_in_release_builds.patch.diff
-# 
http://aur.archlinux.org/packages/chromium-browser-svn/chromium-browser-svn/search-workaround.patch
-#Patch4:               search-workaround.patch
-#Patch5:               options-support.patch
-#Patch6:               get-webkit_revision.patch
-#Patch7:               chromium-system-vpx.patch
+Source0:       http://www.srware.net/downloads/iron-linux.tar.gz
+# Source0-md5: 4592966535ffbedb7404c935f9abd9a6
+Source1:       http://www.srware.net/downloads/iron-linux-64.tar.gz
+# Source1-md5: 655d52dfd5612a7aecaa6f0c24174546
+Source2:       find-lang.sh
 URL:           http://www.srware.net/en/software_srware_iron.php
-BuildRequires: GConf2-devel
-BuildRequires: OpenGL-GLU-devel
-BuildRequires: alsa-lib-devel
-BuildRequires: atk-devel
-BuildRequires: bison
-BuildRequires: bzip2-devel
-BuildRequires: cups-devel
-BuildRequires: dbus-glib-devel
-BuildRequires: flex
-BuildRequires: fontconfig-devel
-BuildRequires: glib2-devel
-BuildRequires: gperf
-BuildRequires: gtk+2-devel
-BuildRequires: libevent-devel
-BuildRequires: libgnome-keyring-devel
-BuildRequires: libjpeg-devel
-BuildRequires: libpng-devel
-%{?with_selinux:BuildRequires: libselinux-devel}
-BuildRequires: libstdc++-devel
-BuildRequires: libvpx-devel >= 0.9.5-2
-BuildRequires: libxml2-devel
-BuildRequires: libxslt-devel
-BuildRequires: lzma
-BuildRequires: minizip-devel
-BuildRequires: nspr-devel
-BuildRequires: nss-devel >= 1:3.12.3
-BuildRequires: pango-devel
-BuildRequires: perl-modules
-BuildRequires: pkgconfig
-BuildRequires: python
-# grep gyp.googlecode.com src/DEPS | cut -d'"' -f2 | cut -d@ -f2
-BuildRequires: python-gyp >= 1-840
-BuildRequires: python-modules
-BuildRequires: rpmbuild(macros) >= 1.453
-BuildRequires: sqlite3-devel >= 3.6.1
-BuildRequires: util-linux
-%{?with_system_v8:BuildRequires:       v8-devel}
-BuildRequires: which
-BuildRequires: xorg-lib-libXScrnSaver-devel
-BuildRequires: xorg-lib-libXt-devel
-BuildRequires: xorg-lib-libXtst-devel
-BuildRequires: yasm
-%{?with_system_zlib:BuildRequires:     zlib-devel}
 Requires:      browser-plugins >= 2.0
 Requires:      libvpx >= 0.9.5-2
 Requires:      xdg-utils >= 1.0.2-4
 Provides:      wwwbrowser
-Obsoletes:     chromium-browser-bookmark_manager
-ExclusiveArch: %{ix86} %{x8664} arm
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                find_lang       sh find-lang.sh %{buildroot}
 
-%if %{without debuginfo}
-%define                _enable_debug_packages  0
-%endif
-
 %description
 SRWare Iron: The browser of the future - based on the free Sourcecode
 "Chromium" - without any problems at privacy and security.
@@ -103,6 +27,9 @@ SRWare Iron: The browser of the future - based on the free 
Sourcecode
 Summary:       SRWare Iron: language packages
 Group:         I18n
 Requires:      %{name} = %{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description l10n
 This package contains language packages for 50 languages:
@@ -113,131 +40,35 @@ pl, pt-BR, pt-PT, ro, ru, sk, sl, sr, sv, ta, te, th, tr, 
uk, vi,
 zh-CN, zh-TW
 
 %prep
-%setup -qcT
-7z x %{SOURCE0} >/dev/null
-
-# Google's versioning is interesting. They never reset "BUILD", which is how 
we jumped
-# from 3.0.201.0 to 4.0.202.0 as they moved to a new major branch
-. ./src/chrome/VERSION
-ver=$MAJOR.$MINOR.$BUILD.$PATCH
-if [ "$ver" != %{version} ]; then
-       exit 1
-fi
-
-cat src/build/LASTCHANGE.in
-exit 1
-
-# Populate the LASTCHANGE file template as we no longer have the VCS files at 
this point
-echo "%{svnver}" > src/build/LASTCHANGE.in
-
-#%{__sed} -e 's,@localedir@,%{_libdir}/%{name},' %{SOURCE4} > find-lang.sh
-#
-#%patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
-#%patch3 -p0
-#%patch4 -p1
-#%patch5 -p1
-#%patch6 -p1
-#cd src
-#%patch7 -p0
-#cd ..
-
-# drop bundled libs, from gentoo
-remove_bundled_lib() {
-       echo "Removing bundled library $1 ..."
-       local out
-       out=$(find $1 -mindepth 1 ! -iname '*.gyp' -print -delete)
-       if [ -z "$out" ]; then
-               echo >&2 "No files matched when removing bundled library $1"
-               exit 1
-       fi
-}
-
-cd src
-remove_bundled_lib "third_party/bzip2"
-remove_bundled_lib "third_party/libevent"
-remove_bundled_lib "third_party/libjpeg"
-remove_bundled_lib "third_party/libpng"
-remove_bundled_lib "third_party/libvpx"
-remove_bundled_lib "third_party/libxml"
-remove_bundled_lib "third_party/libxslt"
-remove_bundled_lib "third_party/zlib"
-
-%build
-cd src
-%{__python} build/gyp_chromium --format=make build/all.gyp \
 %ifarch %{ix86}
-       -Dtarget_arch=ia32 \
+%setup -qT -b 0 -n iron-linux
 %endif
 %ifarch %{x8664}
-       -Dtarget_arch=x64 \
-%endif
-%if "%{cc_version}" >= "4.4.0" && "%{cc_version}" < "4.5.0"
-       -Dno_strict_aliasing=1 -Dgcc_version=44 \
-%endif
-%if %{with sandboxing}
-       -Dlinux_sandbox_path=%{_libdir}/%{name}/chromium-sandbox \
-       -Dlinux_sandbox_chrome_path=%{_libdir}/%{name}/%{name} \
-%endif
-       %{!?debug:-Dwerror=} \
-       %{!?debuginfo:-Dfastbuild=1} \
-       %{?with_shared_libs:-Dlibrary=shared_library} \
-       -Djavascript_engine=%{?with_system_v8:system-v8}%{!?with_system_v8:v8} \
-       -Dbuild_ffmpegsumo=%{?with_ffmpegsumo:1}%{!?with_ffmpegsumo:0} \
-       -Duse_system_bzip2=1 \
-       -Duse_system_libevent=1 \
-       -Duse_system_libjpeg=1 \
-       -Duse_system_libpng=1 \
-       -Duse_system_libxml=1 \
-       -Duse_system_libxslt=1 \
-       -Duse_system_sqlite=%{?with_system_sqlite:1}%{!?with_system_sqlite:0} \
-       -Duse_system_zlib=%{?with_system_zlib:1}%{!?with_system_zlib:0} \
-       -Duse_system_vpx=1 \
-       -Duse_system_yasm=1 \
-       -Dffmpeg_branding=Chrome \
-       -Dproprietary_codecs=1 \
-       %{!?with_sse2:-Ddisable_sse2=1} \
-%if %{with selinux}
-       -Dselinux=1 \
+%setup -qT -b 1 -n iron64
 %endif
 
-%{__make} chrome %{?with_sandboxing:chrome_sandbox} \
-       BUILDTYPE=%{!?debug:Release}%{?debug:Debug} \
-       %{?with_verbose:V=1} \
-       CC="%{__cc}" \
-       CXX="%{__cxx}" \
-       CC.host="%{__cc}" \
-       CXX.host="%{__cxx}" \
-       CFLAGS="%{rpmcflags} %{rpmcppflags}" \
-       CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}"
+set -- *
+install -d chrome
+mv "$@" chrome
+
+%{__sed} -e 's,@localedir@,%{_datadir}/%{name},' %{SOURCE2} > find-lang.sh
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d 
$RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{themes,locales,plugins,extensions,resources},%{_mandir}/man1,%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}} \
+       $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \
+       $RPM_BUILD_ROOT%{_datadir}/%{name}/{locales,resources}
 
-cd src/out/%{!?debug:Release}%{?debug:Debug}
-
-install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}
-%{__sed} -i -e 's,@libdir@,%{_libdir}/%{name},' 
$RPM_BUILD_ROOT%{_bindir}/%{name}
-cp -a *.pak locales resources $RPM_BUILD_ROOT%{_libdir}/%{name}
-cp -a chrome.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
-cp -a product_logo_48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
-install -p chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/%{name}
-install -p chrome_sandbox $RPM_BUILD_ROOT%{_libdir}/%{name}/chromium-sandbox
-%if %{with ffmpegsumo}
-install -p libffmpegsumo.so $RPM_BUILD_ROOT%{_libdir}/%{name}
-%endif
-cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
-cd -
-
-%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins -b <<'EOF'
-# http://code.google.com/p/chromium/issues/detail?id=24507
-gecko-mediaplayer*.so
-EOF
+cp -a chrome/* $RPM_BUILD_ROOT%{_libdir}/%{name}
+mv 
$RPM_BUILD_ROOT{%{_libdir}/%{name}/product_logo_48.png,%{_pixmapsdir}/%{name}.png}
+mv $RPM_BUILD_ROOT{%{_libdir}/%{name}/locales,%{_datadir}/%{name}}
+mv $RPM_BUILD_ROOT{%{_libdir}/%{name}/resources,%{_datadir}/%{name}}
+ln -s %{_datadir}/%{name}/locales $RPM_BUILD_ROOT%{_libdir}/%{name}
+ln -s %{_datadir}/%{name}/resources $RPM_BUILD_ROOT%{_libdir}/%{name}
 
 # find locales
 %find_lang %{name}.lang
+# always package en-US (in main package)
 %{__sed} -i -e '/en-US.pak/d' %{name}.lang
 
 %clean
@@ -251,31 +82,31 @@ if [ "$1" = 0 ]; then
        %update_browser_plugins
 fi
 
-%files -f %{name}.lang
+%files
 %defattr(644,root,root,755)
-%{_browserpluginsconfdir}/browsers.d/%{name}.*
-%config(noreplace) %verify(not md5 mtime size) 
%{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
-%attr(755,root,root) %{_bindir}/%{name}
-%{_mandir}/man1/%{name}.1*
+#%attr(755,root,root) %{_bindir}/%{name}
 %{_pixmapsdir}/%{name}.png
-%{_desktopdir}/*.desktop
+#%{_desktopdir}/*.desktop
 %dir %{_libdir}/%{name}
-%{_libdir}/%{name}/chrome.pak
-%{_libdir}/%{name}/resources.pak
-%dir %{_libdir}/%{name}/locales
-%{_libdir}/%{name}/locales/en-US.pak
-%dir %{_libdir}/%{name}/resources
-%dir %{_libdir}/%{name}/themes
+%{_libdir}/%{name}/*.pak
+%{_libdir}/%{name}/resources
+%{_libdir}/%{name}/locales
 %dir %{_libdir}/%{name}/extensions
 %dir %{_libdir}/%{name}/plugins
-%attr(755,root,root) %{_libdir}/%{name}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/iron
+%attr(755,root,root) %{_libdir}/%{name}/chrome-wrapper
 # These unique permissions are intentional and necessary for the sandboxing
-%attr(4555,root,root) %{_libdir}/%{name}/chromium-sandbox
+%attr(4555,root,root) %{_libdir}/%{name}/chrome_sandbox
 
-# ffmpeg libs
-%if %{with ffmpegsumo}
+%attr(755,root,root) %{_libdir}/%{name}/libavcodec.so.52
+%attr(755,root,root) %{_libdir}/%{name}/libavformat.so.52
+%attr(755,root,root) %{_libdir}/%{name}/libavutil.so.50
 %attr(755,root,root) %{_libdir}/%{name}/libffmpegsumo.so
-%endif
+
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/resources
+%dir %{_datadir}/%{name}/locales
+%{_datadir}/%{name}/locales/en-US.pak
 
 %files l10n -f %{name}.lang
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iron-browser.git/commitdiff/978b0cfb22e51e31ecb0593058c86d32d5d7e17b

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to