From 383a9b82f9fbae7eaab673e6b39159676314611e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 11 Apr 2014 06:33:11 +1000 Subject: [PATCH] initial git snapshot --- .gitignore | 1 + libepoxy.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 67 insertions(+) create mode 100644 libepoxy.spec diff --git a/.gitignore b/.gitignore index e69de29..9169afe 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libepoxy-d4ad80fb8e7c85c4df455ade75f8dd78579c4d7c.tar.gz diff --git a/libepoxy.spec b/libepoxy.spec new file mode 100644 index 0000000..719b85e --- /dev/null +++ b/libepoxy.spec @@ -0,0 +1,65 @@ +%global gitdate 20140307 + +%global commit d4ad80fb8e7c85c4df455ade75f8dd78579c4d7c +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Summary: Direct Rendering Manager runtime library +Name: libepoxy +Version: 1.2 +Release: 0.1.%{gitdate}git%{shortcommit}%{?dist} +License: MIT +URL: http://github.com/anholt/libepoxy +# github url - generated archive +Source0: https://github.com/anholt/libepoxy/archive/%{commit}/%{name}-%{commit}.tar.gz + +BuildRequires: pkgconfig automake autoconf libtool +BuildRequires: mesa-libGL-devel mesa-libEGL-devel +BuildRequires: xorg-x11-util-macros +BuildRequires: python3 + +%description +A library for handling OpenGL function pointer management. + +%package devel +Summary: Development files for libepoxy +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -qn %{name}-%{commit} + +%build +autoreconf -fiv || exit 1 +%configure --disable-silent-rules +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +# NOTE: We intentionally don't ship *.la files +find $RPM_BUILD_ROOT -type f -name '*.la' -delete -print + +%check +make check + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc README.md +%{_libdir}/libepoxy.so.0 +%{_libdir}/libepoxy.so.0.0.0 + +%files devel +%dir %{_includedir}/epoxy/ +%{_includedir}/epoxy/* +%{_libdir}/libepoxy.so +%{_libdir}/pkgconfig/epoxy.pc + +%changelog +* Thu Mar 27 2014 Dave Airlie 1.2-0.1.20140307gitd4ad80f +- initial git snapshot + diff --git a/sources b/sources index e69de29..b0f9130 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d9c8d268358d936b626d450fd38e0a28 libepoxy-d4ad80fb8e7c85c4df455ade75f8dd78579c4d7c.tar.gz