146 lines
4.2 KiB
RPMSpec
146 lines
4.2 KiB
RPMSpec
![]() |
#
|
|||
|
# spec file for package libchromiumcontent
|
|||
|
#
|
|||
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|||
|
#
|
|||
|
# All modifications and additions to the file contributed by third parties
|
|||
|
# remain the property of their copyright owners, unless otherwise agreed
|
|||
|
# upon. The license for this file, and modifications and additions to the
|
|||
|
# file, is the same license as for the pristine package itself (unless the
|
|||
|
# license for the pristine package is not an Open Source License, in which
|
|||
|
# case the license is the MIT License). An "Open Source License" is a
|
|||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|||
|
# published by the Open Source Initiative.
|
|||
|
|
|||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|||
|
#
|
|||
|
|
|||
|
Name: libchromiumcontent
|
|||
|
Version: 47.0.2526.110
|
|||
|
Release: 0
|
|||
|
License: MIT
|
|||
|
Summary: Shared library build of Chromium’s Content module
|
|||
|
Url: https://github.com/atom/libchromiumcontent
|
|||
|
Group: Development/Languages/NodeJS
|
|||
|
Source: %{name}-%{version}.tar.xz
|
|||
|
Source1: chromium-%{version}.tar.xz
|
|||
|
Patch0: no-download.patch
|
|||
|
Patch1: no-sysroot.patch
|
|||
|
Patch2: dist-no-zip.patch
|
|||
|
#PATCH-FIX-UPSTREAM better detect gcc5+
|
|||
|
Patch3: 0001-chromium-build-gcc5.patch
|
|||
|
#PATCH-FIX-UPSTREAM disable -Wno-bitfield-width
|
|||
|
Patch4: 0002-chromium-no-bitfield-width.patch
|
|||
|
#PATCH-FIX-UPSTREAM replace deprecated read_dir
|
|||
|
Patch5: 0011-Replace-readdir_r-with-readdir.patch
|
|||
|
BuildRequires: gcc-c++
|
|||
|
BuildRequires: gperf
|
|||
|
BuildRequires: bison
|
|||
|
BuildRequires: alsa-devel
|
|||
|
BuildRequires: binutils-gold
|
|||
|
BuildRequires: python
|
|||
|
BuildRequires: pkg-config
|
|||
|
BuildRequires: cups-devel
|
|||
|
BuildRequires: atk-devel
|
|||
|
BuildRequires: libpulse-devel
|
|||
|
BuildRequires: gtk2-devel
|
|||
|
BuildRequires: libX11-devel
|
|||
|
BuildRequires: libXi-devel
|
|||
|
BuildRequires: libXcursor-devel
|
|||
|
BuildRequires: libXcomposite-devel
|
|||
|
BuildRequires: libXrandr-devel
|
|||
|
BuildRequires: libXtst-devel
|
|||
|
BuildRequires: libXScrnSaver-devel
|
|||
|
BuildRequires: libexif-devel
|
|||
|
BuildRequires: pciutils-devel
|
|||
|
BuildRequires: krb5-devel
|
|||
|
BuildRequires: dbus-1-devel
|
|||
|
BuildRequires: gconf2-devel
|
|||
|
BuildRequires: libgnome-keyring-devel
|
|||
|
BuildRequires: mozilla-nss-devel
|
|||
|
BuildRequires: xz
|
|||
|
BuildRequires: llvm-clang
|
|||
|
Conflicts: chromium
|
|||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||
|
|
|||
|
%description
|
|||
|
A single, shared library that includes the Chromium Content module
|
|||
|
and all its dependencies.
|
|||
|
|
|||
|
%package devel
|
|||
|
Summary: Development files for libchromiumcontent
|
|||
|
Group: Development/Libraries/C and C++
|
|||
|
Requires: libchromiumcontent = %{version}
|
|||
|
|
|||
|
%description devel
|
|||
|
Development files for libchromiumcontent
|
|||
|
|
|||
|
%package devel-static
|
|||
|
Summary: Static files for libchromiumcontent
|
|||
|
Group: Development/Libraries/C and C++
|
|||
|
Requires: libchromiumcontent = %{version}
|
|||
|
|
|||
|
%description devel-static
|
|||
|
Static files for libchromiumcontent
|
|||
|
|
|||
|
%prep
|
|||
|
%setup -q
|
|||
|
# unpack chromium source
|
|||
|
tar -xf %{SOURCE1} -C .
|
|||
|
mkdir -p vendor/chromium
|
|||
|
cp -ar chromium-%{version} vendor/chromium/src
|
|||
|
# use system clang
|
|||
|
mkdir -p vendor/chromium/src/third_party/llvm-build/Release+Asserts/{bin,lib}
|
|||
|
ln -s /usr/bin/clang vendor/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang
|
|||
|
ln -s /usr/bin/clang++ vendor/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++
|
|||
|
|
|||
|
%patch0 -p1
|
|||
|
%patch1 -p1
|
|||
|
%patch2 -p1
|
|||
|
|
|||
|
pushd vendor/chromium/src
|
|||
|
%patch3 -p1
|
|||
|
%patch4 -p1
|
|||
|
%patch5 -p1
|
|||
|
popd
|
|||
|
|
|||
|
%build
|
|||
|
%ifarch x86_64
|
|||
|
script/update -t x64
|
|||
|
script/build -t x64
|
|||
|
script/create-dist -t x64
|
|||
|
%endif
|
|||
|
%ifarch %ix86
|
|||
|
script/update -t ia32
|
|||
|
script/build -t ia32
|
|||
|
script/create-dist -t ia32
|
|||
|
%endif
|
|||
|
|
|||
|
%install
|
|||
|
mkdir -p %{buildroot}%{_libdir}/libchromiumcontent/{shared_library,static_library,src}
|
|||
|
cp -r dist/main/shared_library/* %{buildroot}%{_libdir}/libchromiumcontent/shared_library/
|
|||
|
cp -r dist/main/static_library/* %{buildroot}%{_libdir}/libchromiumcontent/static_library/
|
|||
|
cp -r dist/main/src/* %{buildroot}%{_libdir}/libchromiumcontent/src/
|
|||
|
|
|||
|
%post -p /sbin/ldconfig
|
|||
|
|
|||
|
%postun -p /sbin/ldconfig
|
|||
|
|
|||
|
%files
|
|||
|
%defattr(-,root,root)
|
|||
|
%doc README.md LICENSE.txt
|
|||
|
%dir %{_libdir}/libchromiumcontent
|
|||
|
%{_libdir}/libchromiumcontent/shared_library
|
|||
|
%exclude %{_libdir}/libchromiumcontent/shared_library/gen
|
|||
|
%exclude %{_libdir}/libchromiumcontent/shared_library/*.a
|
|||
|
|
|||
|
%files devel
|
|||
|
%defattr(-,root,root)
|
|||
|
%{_libdir}/libchromiumcontent/src
|
|||
|
%{_libdir}/libchromiumcontent/shared_library/gen
|
|||
|
|
|||
|
%files devel-static
|
|||
|
%defattr(-,root,root)
|
|||
|
%{_libdir}/libchromiumcontent/shared_library/*.a
|
|||
|
%{_libdir}/libchromiumcontent/static_library
|