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