]> git.pld-linux.org Git - packages/wayland.git/blame - wayland.spec
- updated to 1.12.0
[packages/wayland.git] / wayland.spec
CommitLineData
cea843df
JB
1#
2# Conditional build:
ceb71059 3%bcond_without apidocs # don't build API documentation
cea843df 4%bcond_without static_libs # don't build static libraries
74a7acfb 5
cea843df
JB
6Summary: Wayland - protocol for a compositor to talk to its clients
7Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami
8Name: wayland
5f1528e5 9Version: 1.12.0
46455885 10Release: 1
cea843df
JB
11License: MIT
12Group: Libraries
1cdf5666 13Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
5f1528e5 14# Source0-md5: ee615e2d1e205eec48b02f069327eb96
a0e72c2c 15Patch1: %{name}-man.patch
1cdf5666 16URL: https://wayland.freedesktop.org/
ceb71059
JB
17BuildRequires: autoconf >= 2.64
18BuildRequires: automake >= 1:1.11
4dab03e1 19BuildRequires: expat-devel >= 1.95
73f3d2c8 20BuildRequires: libffi-devel >= 3
ceb71059 21BuildRequires: libtool >= 2:2.2
6a832efc
JB
22# for DTD valudation
23BuildRequires: libxml2-devel >= 2.0
cea843df 24BuildRequires: pkgconfig
73f3d2c8
JB
25%if %{with apidocs}
26BuildRequires: docbook-style-xsl
27BuildRequires: doxygen >= 1.6.0
28BuildRequires: graphviz >= 2.26.0
29BuildRequires: libxslt-progs
30BuildRequires: xmlto
31%endif
cea843df
JB
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Wayland is a project to define a protocol for a compositor to talk to
36its clients as well as a library implementation of the protocol. The
37compositor can be a standalone display server running on Linux kernel
38modesetting and evdev input devices, an X application, or a Wayland
39client itself. The clients can be traditional applications, X servers
40(rootless or fullscreen) or other display servers.
41
42%description -l pl.UTF-8
43Wayland to projekt definiujący protokół między serwerem składającym a
44klientami, a także biblioteki implementujące ten protokół. Serwer
45składający może być samodzielnym serwerem wyświetlającym działającym
46na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
47aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
48aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
49wyświetlające.
50
51%package devel
52Summary: Header files for Wayland libraries
53Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
54Group: Development/Libraries
55Requires: %{name} = %{version}-%{release}
56Requires: libffi-devel
57
58%description devel
59Header files for Wayland libraries.
60
61%description devel -l pl.UTF-8
62Pliki nagłówkowe bibliotek Wayland.
63
64%package static
65Summary: Static Wayland libraries
66Summary(pl.UTF-8): Statyczne biblioteki Wayland
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static Wayland libraries.
72
73%description static -l pl.UTF-8
74Statyczne biblioteki Wayland.
75
ceb71059
JB
76%package apidocs
77Summary: Wayland API and protocol documentation
78Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
79Group: Documentation
74a7acfb
ER
80%if "%{_rpmversion}" >= "5"
81BuildArch: noarch
82%endif
ceb71059
JB
83
84%description apidocs
85Wayland API and protocol documentation.
86
87%description apidocs -l pl.UTF-8
88Dokumentacja API biblioteki oraz protokołu Wayland.
89
cea843df
JB
90%prep
91%setup -q
a0e72c2c
JB
92%patch1 -p1
93
94# force regeneration (.so link is broken, double man3/)
95%{__rm} doc/man/*.3
ceb71059 96
cea843df 97%build
ceb71059
JB
98%{__libtoolize}
99%{__aclocal} -I m4
100%{__autoconf}
101%{__autoheader}
102%{__automake}
cea843df 103%configure \
73f3d2c8 104 %{!?with_apidocs:--disable-documentation} \
cea843df
JB
105 --disable-silent-rules \
106 %{!?with_static_libs:--disable-static}
a0e72c2c 107
cea843df
JB
108%{__make}
109
110%install
111rm -rf $RPM_BUILD_ROOT
112
113%{__make} install \
114 DESTDIR=$RPM_BUILD_ROOT
115
7f5862ae 116# referenced by some installed wl_*.3 man pages
6a832efc
JB
117cp -p doc/doxygen/man/man3/wayland-{client-core,server,server-core,util}.h.3 \
118 doc/doxygen/man/man3/wayland-{client,server,shm,util}.c.3 $RPM_BUILD_ROOT%{_mandir}/man3
7f5862ae 119
cea843df
JB
120# obsoleted by pkg-config
121%{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
00c5e567
JB
122%if %{with apidocs}
123# packaged as %doc in -devel
124%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
125%endif
cea843df
JB
126
127%clean
128rm -rf $RPM_BUILD_ROOT
129
130%post -p /sbin/ldconfig
131%postun -p /sbin/ldconfig
132
133%files
134%defattr(644,root,root,755)
cc8accbe 135%doc COPYING README TODO
cea843df
JB
136%attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
137%attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
cc8accbe
JB
138%attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
139%attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
cea843df
JB
140%attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
141%attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
142
143%files devel
144%defattr(644,root,root,755)
145%attr(755,root,root) %{_bindir}/wayland-scanner
146%attr(755,root,root) %{_libdir}/libwayland-client.so
cc8accbe 147%attr(755,root,root) %{_libdir}/libwayland-cursor.so
cea843df
JB
148%attr(755,root,root) %{_libdir}/libwayland-server.so
149%{_includedir}/wayland-*.h
3fea3585 150%dir %{_datadir}/wayland
d5e44717 151%{_datadir}/wayland/wayland.dtd
7f5862ae 152%{_datadir}/wayland/wayland.xml
3fea3585 153%{_datadir}/wayland/wayland-scanner.mk
cea843df 154%{_pkgconfigdir}/wayland-client.pc
cc8accbe 155%{_pkgconfigdir}/wayland-cursor.pc
dbb3e8d2 156%{_pkgconfigdir}/wayland-scanner.pc
cea843df
JB
157%{_pkgconfigdir}/wayland-server.pc
158%{_aclocaldir}/wayland-scanner.m4
73f3d2c8 159%if %{with apidocs}
6a832efc
JB
160%{_mandir}/man3/wayland-*.c.3*
161%{_mandir}/man3/wayland-*.h.3*
3fea3585 162%{_mandir}/man3/wl_*.3*
73f3d2c8 163%endif
cea843df
JB
164
165%if %{with static_libs}
166%files static
167%defattr(644,root,root,755)
168%{_libdir}/libwayland-client.a
cc8accbe 169%{_libdir}/libwayland-cursor.a
cea843df
JB
170%{_libdir}/libwayland-server.a
171%endif
ceb71059
JB
172
173%if %{with apidocs}
174%files apidocs
175%defattr(644,root,root,755)
3fea3585 176%doc doc/publican/Wayland/en-US/html/*
ceb71059 177%endif
This page took 0.1454 seconds and 4 git commands to generate.