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