]> git.pld-linux.org Git - packages/libwpe.git/blame - libwpe.spec
- build apidocs
[packages/libwpe.git] / libwpe.spec
CommitLineData
d766083e
JB
1#
2# Conditional build:
3%bcond_without apidocs # API documentation
4
f63b2a76 5Summary: General-purpose library for the WPE-flavored port of WebKit
22e22410 6Summary(pl.UTF-8): Ogólna biblioteka do portu WPE biblioteki WebKit
f63b2a76 7Name: libwpe
4e89e631 8Version: 1.10.1
a16ec57e 9Release: 1
f63b2a76
AG
10License: BSD
11Group: Libraries
22e22410 12#Source0Download: https://github.com/WebPlatformForEmbedded/libwpe/releases
f63b2a76 13Source0: https://github.com/WebPlatformForEmbedded/libwpe/releases/download/%{version}/%{name}-%{version}.tar.xz
4e89e631 14# Source0-md5: f60fc13b519a66d262afb76c77441870
22e22410 15Patch0: %{name}-libdir.patch
e84cdfec 16URL: https://wpewebkit.org/
22e22410
JB
17BuildRequires: EGL-devel
18BuildRequires: cmake >= 3.0
d766083e 19%{?with_apidocs:BuildRequires: hotdoc}
22e22410
JB
20BuildRequires: libstdc++-devel >= 6:4.7
21BuildRequires: rpmbuild(macros) >= 1.605
f63b2a76 22BuildRequires: xorg-lib-libxkbcommon-devel
f63b2a76
AG
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
22e22410
JB
26General-purpose library developed for the WPE-flavored port of WebKit.
27
28%description -l pl.UTF-8
29Ogólna biblioteka do portu WPE biblioteki WebKit.
f63b2a76
AG
30
31%package devel
22e22410
JB
32Summary: Header files for WPE library
33Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WPE
f63b2a76
AG
34Group: Development/Libraries
35Requires: %{name} = %{version}-%{release}
22e22410
JB
36Requires: EGL-devel
37Requires: xorg-lib-libxkbcommon-devel
f63b2a76
AG
38
39%description devel
22e22410 40Header files for WPE library.
f63b2a76
AG
41
42%description devel -l pl.UTF-8
22e22410 43Pliki nagłówkowe biblioteki WPE.
f63b2a76 44
d766083e
JB
45%package apidocs
46Summary: API documentation for WPE library
47Summary(pl.UTF-8): Dokumentacja API biblioteki WPE
48Group: Documentation
49
50%description apidocs
51API documentation for WPE library.
52
53%description apidocs -l pl.UTF-8
54Dokumentacja API biblioteki WPE.
55
f63b2a76
AG
56%prep
57%setup -q
22e22410 58%patch0 -p1
f63b2a76
AG
59
60%build
22e22410
JB
61install -d build
62cd build
d766083e
JB
63%cmake .. \
64 %{?with_apidocs:-DBUILD_DOCS=ON}
f63b2a76
AG
65
66%{__make}
67
68%install
69rm -rf $RPM_BUILD_ROOT
22e22410
JB
70
71%{__make} -C build install \
f63b2a76
AG
72 DESTDIR=$RPM_BUILD_ROOT
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%post -p /sbin/ldconfig
78%postun -p /sbin/ldconfig
79
80%files
81%defattr(644,root,root,755)
82%doc COPYING NEWS
22e22410
JB
83%attr(755,root,root) %{_libdir}/libwpe-1.0.so.*.*.*
84%attr(755,root,root) %ghost %{_libdir}/libwpe-1.0.so.1
f63b2a76
AG
85
86%files devel
87%defattr(644,root,root,755)
22e22410
JB
88%attr(755,root,root) %{_libdir}/libwpe-1.0.so
89%{_includedir}/wpe-1.0
f63b2a76 90%{_pkgconfigdir}/wpe-1.0.pc
d766083e
JB
91
92%if %{with apidocs}
93%files apidocs
94%defattr(644,root,root,755)
95%doc build/Documentation/html/*
96%endif
This page took 0.04768 seconds and 4 git commands to generate.