diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..229dc71 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libwpe-1.0.0.tar.xz diff --git a/libwpe.spec b/libwpe.spec new file mode 100644 index 0000000..792ddfe --- /dev/null +++ b/libwpe.spec @@ -0,0 +1,58 @@ +Name: libwpe +Version: 1.0.0 +Release: 1%{?dist} +Summary: General-purpose library for the WPE-flavored port of WebKit + +License: BSD +URL: https://github.com/WebPlatformForEmbedded/%{name} +Source0: https://github.com/WebPlatformForEmbedded/libwpe/releases/download/%{version}/%{name}-%{version}.tar.xz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: mesa-libEGL-devel +BuildRequires: libxkbcommon-devel + +Provides: wpebackend = %{version}-%{release} +Obsoletes: wpebackend < 0.2.0-2 + +%description +General-purpose library developed for the WPE-flavored port of WebKit + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries, build data, and header +files for developing applications that use %{name}. + +%prep +%autosetup -p1 -n libwpe-%{version} + +%build +mkdir -p %{_target_platform} +pushd %{_target_platform} +%cmake \ + -DCMAKE_BUILD_TYPE=Release \ + .. +popd + +%make_build -C %{_target_platform} + +%install +%make_install -C %{_target_platform} + +%files +%license COPYING +%doc NEWS +%{_libdir}/libwpe-0.2.so.1.* +%{_libdir}/libwpe-0.2.so.1 + +%files devel +%{_includedir}/wpe-0.2/ +%{_libdir}/libwpe-0.2.so +%{_libdir}/pkgconfig/wpe-0.2.pc + +%changelog +* Mon Aug 27 2018 Chris King - 1.0.0-1 +- Initial RPM package diff --git a/sources b/sources new file mode 100644 index 0000000..0bd2650 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libwpe-1.0.0.tar.xz) = 9c4648c64b58f5056ecd0a70a0e78176edb476500f74925ed2cbaa9f704d117f4427341d2cf5a5f2549a64b904ab7c796370343847452c5e1e5e45747b0ff5f9