4be7bb3
#global gitdate 20140411
Dave Airlie 383a9b8
4be7bb3
#global commit 6eb075c70e2f91a9c45a90677bd46e8fb0432655
4be7bb3
#global shortcommit %(c=%{commit}; echo ${c:0:7})
Dave Airlie 383a9b8
7b672b1
Summary: epoxy runtime library
Dave Airlie 383a9b8
Name: libepoxy
Dave Airlie 383a9b8
Version: 1.2
464cadc
Release: 4%{?dist}
Dave Airlie 383a9b8
License: MIT
Dave Airlie 383a9b8
URL: http://github.com/anholt/libepoxy
Dave Airlie 383a9b8
# github url - generated archive
4be7bb3
#ource0: https://github.com/anholt/libepoxy/archive/%{commit}/%{name}-%{commit}.tar.gz
4be7bb3
Source0: https://github.com/anholt/libepoxy/archive/%{commit}/v%{version}.tar.gz
Dave Airlie 383a9b8
4be7bb3
BuildRequires: automake autoconf libtool
4be7bb3
BuildRequires: mesa-libGL-devel
4be7bb3
BuildRequires: mesa-libEGL-devel
4be7bb3
BuildRequires: mesa-libGLES-devel
Dave Airlie 383a9b8
BuildRequires: xorg-x11-util-macros
Dave Airlie 383a9b8
BuildRequires: python3
Dave Airlie 383a9b8
7b672b1
Patch1: 0001-Use-the-EGL-pkgconfig-for-finding-eglplatform.h.patch
7b672b1
Patch2: 0002-Fix-context-type-detection-if-we-find-eglGetCurrentC.patch
7b672b1
Patch3: 0003-Avoid-name-conflicts-between-pkgconfig-s-EGL_LIBS-an.patch
7b672b1
db1b7c0
Patch4: update-registry.patch
db1b7c0
Dave Airlie 383a9b8
%description
Dave Airlie 383a9b8
A library for handling OpenGL function pointer management.
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%package devel
Dave Airlie 383a9b8
Summary: Development files for libepoxy
Dave Airlie 383a9b8
Requires: %{name}%{?_isa} = %{version}-%{release}
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%description devel
Dave Airlie 383a9b8
This package contains libraries and header files for
Dave Airlie 383a9b8
developing applications that use %{name}.
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%prep
4be7bb3
%setup -q
7b672b1
%patch1 -p1
7b672b1
%patch2 -p1
7b672b1
%patch3 -p1
db1b7c0
%patch4 -p1
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%build
4be7bb3
autoreconf -vif || exit 1
Dave Airlie 383a9b8
%configure --disable-silent-rules
Dave Airlie 383a9b8
make %{?_smp_mflags}
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%install
Dave Airlie 383a9b8
make install DESTDIR=$RPM_BUILD_ROOT
Dave Airlie 383a9b8
Dave Airlie 383a9b8
# NOTE: We intentionally don't ship *.la files
Dave Airlie 383a9b8
find $RPM_BUILD_ROOT -type f -name '*.la' -delete -print
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%check
4be7bb3
# In theory this is fixed in 1.2 but we still see errors on most platforms
4be7bb3
# https://github.com/anholt/libepoxy/issues/24
4be7bb3
%ifnarch %{arm} aarch64 %{power64} s390x
Dave Airlie 383a9b8
make check
4be7bb3
%else
4be7bb3
make check ||:
4be7bb3
%endif
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%post -p /sbin/ldconfig
Dave Airlie 383a9b8
%postun -p /sbin/ldconfig
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%files
Dave Airlie 383a9b8
%doc README.md
Dave Airlie 383a9b8
%{_libdir}/libepoxy.so.0
Dave Airlie 383a9b8
%{_libdir}/libepoxy.so.0.0.0
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%files devel
Dave Airlie 383a9b8
%dir %{_includedir}/epoxy/
Dave Airlie 383a9b8
%{_includedir}/epoxy/*
Dave Airlie 383a9b8
%{_libdir}/libepoxy.so
Dave Airlie 383a9b8
%{_libdir}/pkgconfig/epoxy.pc
Dave Airlie 383a9b8
Dave Airlie 383a9b8
%changelog
464cadc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
464cadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
464cadc
db1b7c0
* Tue May 05 2015 Dave Airlie <airlied@redhat.com> 1.2-3
db1b7c0
- update GL registry files (add new EGL extension)
db1b7c0
7b672b1
* Wed Mar 25 2015 Adam Jackson <ajax@redhat.com> 1.2-2
7b672b1
- Fix description to not talk about DRM
7b672b1
- Sync some small bugfixes from git
7b672b1
4be7bb3
* Mon Oct 13 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.0-1
4be7bb3
- Update to 1.2 GA
4be7bb3
- Don't fail build on make check failure for some architectures
4be7bb3
8b74790
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.4.20140411git6eb075c
8b74790
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8b74790
355d243
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.3.20140411git6eb075c
355d243
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
355d243
Dave Airlie e1b9c02
* Fri Apr 11 2014 Dave Airlie <airlied@redhat.com> 1.2-0.2.20140411git6eb075c
Dave Airlie e1b9c02
- update to latest git snapshot
Dave Airlie e1b9c02
Dave Airlie 383a9b8
* Thu Mar 27 2014 Dave Airlie <airlied@redhat.com> 1.2-0.1.20140307gitd4ad80f
Dave Airlie 383a9b8
- initial git snapshot
Dave Airlie 383a9b8