From 237a16ff97d80837950e05feec535c4e4f99eecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Tue, 26 Sep 2017 20:32:31 +0200 Subject: [PATCH] Initial import (#1494981) --- .gitignore | 1 + README.md | 3 - sources | 1 + webkit2-sharp-a59fd76-fix_libdir.patch | 11 +++ webkit2-sharp.spec | 94 ++++++++++++++++++++++++++ 5 files changed, 107 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 sources create mode 100644 webkit2-sharp-a59fd76-fix_libdir.patch create mode 100644 webkit2-sharp.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..721ba50 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/webkit2-sharp-a59fd76.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ffdb57b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# webkit2-sharp - -The webkit2-sharp package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..7ca8087 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (webkit2-sharp-a59fd76.tar.gz) = aa78f44e89aff176ae142d3c1bb7d8828846f282b908c904afc7107428e3c7f0451f30bfccd3a689011edfc851a335d81c5df914e36becbaad7bda10face681b diff --git a/webkit2-sharp-a59fd76-fix_libdir.patch b/webkit2-sharp-a59fd76-fix_libdir.patch new file mode 100644 index 0000000..19297c0 --- /dev/null +++ b/webkit2-sharp-a59fd76-fix_libdir.patch @@ -0,0 +1,11 @@ +diff -up webkit2-sharp-a59fd76dd730432c76b12ee6347ea66567107ab9/webkit2-sharp-4.0.pc.in.fix_libdir webkit2-sharp-a59fd76dd730432c76b12ee6347ea66567107ab9/webkit2-sharp-4.0.pc.in +--- webkit2-sharp-a59fd76dd730432c76b12ee6347ea66567107ab9/webkit2-sharp-4.0.pc.in.fix_libdir 2017-02-19 13:11:26.000000000 +0100 ++++ webkit2-sharp-a59fd76dd730432c76b12ee6347ea66567107ab9/webkit2-sharp-4.0.pc.in 2017-09-24 14:56:56.764174429 +0200 +@@ -1,6 +1,6 @@ + prefix=@prefix@ + exec_prefix=${prefix} +-libdir=@libdir@ ++libdir=${prefix}/lib + + Name: @ASSEMBLY_TITLE@ + Description: @ASSEMBLY_DESCRIPTION@ diff --git a/webkit2-sharp.spec b/webkit2-sharp.spec new file mode 100644 index 0000000..83f7122 --- /dev/null +++ b/webkit2-sharp.spec @@ -0,0 +1,94 @@ +%global commit a59fd76dd730432c76b12ee6347ea66567107ab9 +%global commitdate 20170219 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: webkit2-sharp +Version: 0 +Release: 0.3%{?commitdate:.%{commitdate}git%{shortcommit}}%{?dist} +Summary: C# bindings for WebKit 2 with GTK+ 3 + +License: MIT +URL: https://github.com/hbons/%{name} +%{?shortcommit: +Source0: %url/archive/%{commit}/%{name}-%{shortcommit}.tar.gz} +%{!?shortcommit: +Source0: %url/archive/%{commit}/%{name}-%{version}.tar.gz} + +Patch0: %{name}-a59fd76-fix_libdir.patch + +Requires: webkitgtk4 +BuildRequires: pkgconfig(webkit2gtk-4.0) +BuildRequires: pkgconfig(mono) +BuildRequires: pkgconfig(gtk-sharp-3.0) +BuildRequires: pkgconfig(gapi-3.0) +BuildRequires: pkgconfig(monodoc) +BuildRequires: libxslt +BuildRequires: dos2unix +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: intltool +BuildRequires: libtool +BuildRequires: gettext + +ExclusiveArch: %mono_arches + +#https://fedoraproject.org/wiki/Packaging:Mono#Empty_debuginfo +%global debug_package %{nil} + + +%description +C# bindings for WebKit 2 with GTK+ 3 + + +%package devel +Summary: Development files for WebKit2-sharp +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + + +%description devel +Development files for WebKit2-sharp + + +%prep +%{?shortcommit: +%autosetup -n %{name}-%{commit}} +%{!?shortcommit: +%autosetup -n %{name}-%{version}} + +%build +./autogen.sh +%configure --disable-static +sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool +sed -i 's/\r$//' COPYING +%make_build + +%install +%make_install + +find %{buildroot} -name '*.la' -delete + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%license COPYING +%doc README.md +%{_prefix}/lib/mono/ +%{_datadir}/gapi-3.0/webkit2-sharp-api.xml +%{_libdir}/libwebkit2sharpglue-2.10.9.so + +%files devel +%{_libdir}/pkgconfig/webkit2-sharp-4.0.pc +%{_prefix}/lib/monodoc/sources/webkit2-sharp* + +%changelog +* Mon Sep 25 2017 Robert-André Mauchin - 0-0.3.20170219gita59fd76 +- Disable static libraries + +* Sun Sep 24 2017 Luya Tshimbalanga - 0-0.2.20170219gita59fd76 +- Improve spec file + +* Sun Sep 24 2017 Robert-André Mauchin - 0-0.1.20170219gita59fd76 +- Initial package