]> git.pld-linux.org Git - packages/wayland.git/blobdiff - wayland.spec
- updated to 1.0.6
[packages/wayland.git] / wayland.spec
index 5a83cec44274fa5a31df948daef0b3218630f866..09695c795325d143ba7cb3177bb971e11a998eb7 100644 (file)
@@ -1,21 +1,30 @@
 #
 # Conditional build:
+%bcond_without apidocs         # don't build API documentation
 %bcond_without static_libs     # don't build static libraries
 #
 Summary:       Wayland - protocol for a compositor to talk to its clients
 Summary(pl.UTF-8):     Wayland - protokół między serwerem składającym a klientami
 Name:          wayland
-Version:       0.85.0
+Version:       1.0.6
 Release:       1
 License:       MIT
 Group:         Libraries
 Source0:       http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
-# Source0-md5: fe3fdfdcc0b20235a113e0e34a665b1c
+# Source0-md5: 936a2590aea69fa3c0cf234d54b9137c
+Patch0:                %{name}-publican.patch
 URL:           http://wayland.freedesktop.org/
+BuildRequires: autoconf >= 2.64
+BuildRequires: automake >= 1:1.11
+BuildRequires: docbook-style-xsl
+BuildRequires: doxygen
 BuildRequires: expat-devel
 BuildRequires: libffi-devel
+BuildRequires: libtool >= 2:2.2
+BuildRequires: libxslt-progs
 BuildRequires: pkgconfig
 BuildRequires: pkgconfig(libffi)
+%{?with_apidocs:BuildRequires: publican >= 3}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -60,10 +69,31 @@ Static Wayland libraries.
 %description static -l pl.UTF-8
 Statyczne biblioteki Wayland.
 
+%package apidocs
+Summary:       Wayland API and protocol documentation
+Summary(pl.UTF-8):     Dokumentacja API biblioteki oraz protokołu Wayland
+Group:         Documentation
+
+%description apidocs
+Wayland API and protocol documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki oraz protokołu Wayland.
+
 %prep
 %setup -q
 
+# this file is required by publican 3.0; publican patch adds it in en-US dir
+test ! -f doc/Wayland/en_US/Revision_History.xml
+
+%patch0 -p1
+
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
        --disable-silent-rules \
        %{!?with_static_libs:--disable-static}
@@ -77,6 +107,8 @@ rm -rf $RPM_BUILD_ROOT
 
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
+# packaged as %doc in -devel
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -86,9 +118,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README TODO
+%doc COPYING README TODO
 %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
+%attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
 %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
 
@@ -96,16 +130,27 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/wayland-scanner
 %attr(755,root,root) %{_libdir}/libwayland-client.so
+%attr(755,root,root) %{_libdir}/libwayland-cursor.so
 %attr(755,root,root) %{_libdir}/libwayland-server.so
 %{_includedir}/wayland-*.h
 %{_pkgconfigdir}/wayland-client.pc
+%{_pkgconfigdir}/wayland-cursor.pc
 %{_pkgconfigdir}/wayland-server.pc
 %{_aclocaldir}/wayland-scanner.m4
 %{_aclocaldir}/wayland-scanner.mk
+%{_mandir}/man3/wl_display_connect.3*
+%{_mandir}/man3/wl_display_connect_to_fd*
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libwayland-client.a
+%{_libdir}/libwayland-cursor.a
 %{_libdir}/libwayland-server.a
 %endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/Wayland/Wayland/en-US/html/*
+%endif
This page took 0.084317 seconds and 4 git commands to generate.