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