diff --git a/.gitignore b/.gitignore index e69de29..64f7d25 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/wayland-20101111.tar.bz2 diff --git a/sources b/sources index e69de29..0103cc0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6a8a09e6a5607b4aedda51d7699688f1 wayland-20101111.tar.bz2 diff --git a/wayland-install-compositor.patch b/wayland-install-compositor.patch new file mode 100644 index 0000000..f7d57b7 --- /dev/null +++ b/wayland-install-compositor.patch @@ -0,0 +1,9 @@ +diff -up wayland-20101111/compositor/Makefile.am.jx wayland-20101111/compositor/Makefile.am +--- wayland-20101111/compositor/Makefile.am.jx 2010-11-10 08:42:17.000000000 -0500 ++++ wayland-20101111/compositor/Makefile.am 2010-11-11 17:18:07.000000000 -0500 +@@ -1,4 +1,4 @@ +-noinst_PROGRAMS = compositor ++bin_PROGRAMS = compositor + + INCLUDES = \ + -I$(top_srcdir)/wayland \ diff --git a/wayland-no-clients.patch b/wayland-no-clients.patch new file mode 100644 index 0000000..49a4323 --- /dev/null +++ b/wayland-no-clients.patch @@ -0,0 +1,18 @@ +diff -up wayland-20101111/configure.ac.jx wayland-20101111/configure.ac +--- wayland-20101111/configure.ac.jx 2010-11-10 08:42:17.000000000 -0500 ++++ wayland-20101111/configure.ac 2010-11-11 17:12:56.000000000 -0500 +@@ -57,6 +57,5 @@ AC_CONFIG_FILES([wayland/wayland-server. + Makefile + wayland/Makefile + compositor/Makefile +- clients/Makefile + data/Makefile]) + AC_OUTPUT +diff -up wayland-20101111/Makefile.am.jx wayland-20101111/Makefile.am +--- wayland-20101111/Makefile.am.jx 2010-11-10 08:42:17.000000000 -0500 ++++ wayland-20101111/Makefile.am 2010-11-11 17:13:07.000000000 -0500 +@@ -1,3 +1,3 @@ +-SUBDIRS = wayland compositor clients data ++SUBDIRS = wayland compositor data + + ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} diff --git a/wayland.spec b/wayland.spec new file mode 100644 index 0000000..2dba655 --- /dev/null +++ b/wayland.spec @@ -0,0 +1,134 @@ +%global gitdate 20101111 + +Name: wayland +Version: 0.1 +Release: 0.1%{?gitdate:.%{gitdate}}%{?dist} +Summary: Wayland compositor + +Group: User Interface/X +License: GPLv2+ +URL: http://%{name}.freedesktop.org/ +Source0: wayland-%{gitdate}.tar.bz2 +Patch0: wayland-no-clients.patch +Patch1: wayland-install-compositor.patch + +BuildRequires: autoconf automake libtool +BuildRequires: pkgconfig(glesv2) pkgconfig(egl) pkgconfig(libffi) +BuildRequires: pkgconfig(gl) pkgconfig(xkbcommon) +BuildRequires: pkgconfig(gdk-pixbuf-2.0) pkgconfig(libudev) >= 136 +BuildRequires: pkgconfig(libdrm) pkgconfig(xcb-dri2) pkgconfig(xcb-xfixes) +BuildRequires: pkgconfig(poppler-glib) pkgconfig(gdk-2.0) +BuildRequires: expat-devel +#BuildRequires: pkgconfig(cairo-gl) +Requires: wayland-common = %{version}-%{release} + +%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 common +Summary: Common data files for wayland +License: CC-BY-SA +%description common +Common data files for wayland + +%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 = %{version}-%{release} +Requires: wayland-devel = %{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 = %{version}-%{release} +Requires: wayland-devel = %{version}-%{release} +%description -n libwayland-server-devel +Headers and symlinks for developing wayland server applications. + +%prep +%setup -q -n %{name}-%{gitdate} +%patch0 -p1 -b .no-clients +%patch1 -p1 -b .compositor + +%build +autoreconf -v --install +%configure --disable-static +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 +%{_bindir}/compositor +%{_sysconfdir}/udev/*.rules + +%files common +%defattr(-,root,root,-) +%doc data/COPYING +%{_datadir}/wayland + +%files devel +%defattr(-,root,root,-) +%{_includedir}/wayland-util.h + +%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 + +%files -n libwayland-server-devel +%defattr(-,root,root,-) +%{_includedir}/wayland-server*.h +%{_libdir}/libwayland-server.so + +%changelog +* Mon Nov 15 2010 Adam Jackson 0.1-0.1.20101111 +- Initial packaging