From a704107cb119bc2a495a82291b31ea3a2f91f450 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 3 Sep 2013 04:21:40 -0400 Subject: [PATCH] Add a spec file for packaging Change-Id: I69ae8c6cfd68979e6297c48d220e071bc6d56579 --- packaging/xeyes.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 packaging/xeyes.spec diff --git a/packaging/xeyes.spec b/packaging/xeyes.spec new file mode 100755 index 0000000..d4cf708 --- /dev/null +++ b/packaging/xeyes.spec @@ -0,0 +1,67 @@ +Summary: X.Org X11 applications +Name: xeyes +# NOTE: The package version should be set to the X11 major release from which +# the OS release is based upon. +Version: 1.1.1 +Release: 1 +License: MIT +Group: User Interface/X +URL: http://www.x.org + +Source: %{name}-%{version}.tar.gz + +#Source11: ftp://ftp.x.org/pub/individual/app/xeyes-1.1.1.tar.bz2 + +BuildRequires: autoconf automake + +#BuildRequires: xorg-x11-xutils-dev +# xfd needs gettext +BuildRequires: gettext +BuildRequires: zlib-devel +BuildRequires: libfontenc-devel +BuildRequires: libX11-devel +BuildRequires: libXmu-devel +BuildRequires: libXext-devel +BuildRequires: libXt-devel +BuildRequires: libXaw-devel +BuildRequires: libXpm-devel +BuildRequires: libXft-devel +BuildRequires: libXrender-devel +BuildRequires: libxkbfile-devel +BuildRequires: libXcursor-devel +BuildRequires: libpng-devel +BuildRequires: libXfixes-devel +BuildRequires: libXi-devel >= 1.2 +BuildRequires: libXxf86vm-devel +#BuildRequires: xorg-x11-xbitmaps + +Provides: xeyes + +%description +A collection of common X Window System applications. + +%prep +%setup -q + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p %{buildroot}/usr/share/license +cp -af COPYING %{buildroot}/usr/share/license/%{name} + +{ + make install DESTDIR=$RPM_BUILD_ROOT +} + +%remove_docs + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_bindir}/* +/usr/share/license/%{name} -- 2.7.4