%global gitdate 20120424 Name: wayland Version: 0.89.0 Release: 1%{?gitdate:.%{gitdate}}%{?dist} Summary: Wayland Compositor Infrastructure Group: User Interface/X License: MIT URL: http://%{name}.freedesktop.org/ %if 0%{?gitdate} Source0: wayland-%{gitdate}.tar.bz2 %else Source0: http://cgit.freedesktop.org/wayland/wayland/snapshot/%{name}-%{version}.tar.gz %endif Source1: make-git-snapshot.sh BuildRequires: autoconf automake libtool BuildRequires: pkgconfig(libffi) BuildRequires: expat-devel BuildRequires: libxslt Provides: %{name}-common = %{version}-%{release} Obsoletes: %{name}-common < 0.85.0 %description Wayland is a protocol for a compositor to talk to its clients as well as a C library implementation of that protocol. The compositor can be a standalone display server running on Linux kernel modesetting and evdev input devices, an X application, or a wayland client itself. The clients can be traditional applications, X servers (rootless or fullscreen) or other display servers. %package devel Summary: Common headers for wayland License: MIT %description devel Common headers for wayland %package -n libwayland-client Summary: Wayland client library License: MIT %description -n libwayland-client Wayland client library %package -n libwayland-server Summary: Wayland server library License: MIT %description -n libwayland-server Wayland server library %package -n libwayland-client-devel Summary: Headers and symlinks for developing wayland client applications License: MIT Requires: libwayland-client%{?_isa} = %{version}-%{release} Requires: wayland-devel%{?_isa} = %{version}-%{release} %description -n libwayland-client-devel Headers and symlinks for developing wayland client applications. %package -n libwayland-server-devel Summary: Headers and symlinks for developing wayland server applications License: MIT Requires: libwayland-server%{?_isa} = %{version}-%{release} Requires: wayland-devel%{?_isa} = %{version}-%{release} %description -n libwayland-server-devel Headers and symlinks for developing wayland server applications. %prep %setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}} rm spec/.gitignore %build autoreconf -v --install %configure --disable-static --enable-documentation make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name \*.la | xargs rm -f %clean rm -rf $RPM_BUILD_ROOT %post -n libwayland-client -p /sbin/ldconfig %postun -n libwayland-client -p /sbin/ldconfig %post -n libwayland-server -p /sbin/ldconfig %postun -n libwayland-server -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc README TODO spec %doc %{_datadir}/doc/wayland/* %files devel %defattr(-,root,root,-) %{_bindir}/wayland-scanner %{_includedir}/wayland-util.h %{_includedir}/wayland-egl.h %{_includedir}/wayland-version.h %{_datadir}/aclocal/wayland-scanner.m4 %{_datadir}/aclocal/wayland-scanner.mk %files -n libwayland-client %defattr(-,root,root,-) %{_libdir}/libwayland-client.so.0* %files -n libwayland-server %defattr(-,root,root,-) %{_libdir}/libwayland-server.so.0* %files -n libwayland-client-devel %defattr(-,root,root,-) %{_includedir}/wayland-client*.h %{_libdir}/libwayland-client.so %{_libdir}/pkgconfig/wayland-client.pc %files -n libwayland-server-devel %defattr(-,root,root,-) %{_includedir}/wayland-server*.h %{_libdir}/libwayland-server.so %{_libdir}/pkgconfig/wayland-server.pc %changelog * Tue Apr 24 2012 Richard Hughes - 0.89.0-1 - Update to a git snapshot based on 0.89.0 * Sat Feb 18 2012 Thorsten Leemhuis - 0.85.0-1 - update to 0.85.0 - adjust license, as upstream changed it to MIT - update make-git-snapshot.sh to current locations and scheme - drop common package, not needed anymore - compositor is now in a separate package, hence reduce BuildRequires to what is actually needed (a lot less) and adjust summary - make usage of a git checkout in spec file optional - a %%{?_isa} to requires where it makes sense * Sat Jan 14 2012 Fedora Release Engineering - 0.1-0.6.20101221 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 0.1-0.5.20101221 - Rebuild for new libpng * Wed Jun 15 2011 Lubomir Rintel - 0.1-0.4.20101221 - Install real compositor binary instead of a libtool wrapper * Mon Feb 07 2011 Fedora Release Engineering - 0.1-0.3.20101221 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Adam Jackson 0.1-0.2.20101221 - Today's git snap * Tue Nov 23 2010 Adam Jackson 0.1-0.2.20101123 - Today's git snap - Fix udev rule install (#653353) * Mon Nov 15 2010 Adam Jackson 0.1-0.1.20101111 - Initial packaging