2014-10-13 18:05:31 +00:00
|
|
|
#global gitdate 20140411
|
2014-04-10 20:33:11 +00:00
|
|
|
|
2014-10-13 18:05:31 +00:00
|
|
|
#global commit 6eb075c70e2f91a9c45a90677bd46e8fb0432655
|
|
|
|
#global shortcommit %(c=%{commit}; echo ${c:0:7})
|
2014-04-10 20:33:11 +00:00
|
|
|
|
2015-03-25 17:09:48 +00:00
|
|
|
Summary: epoxy runtime library
|
2014-04-10 20:33:11 +00:00
|
|
|
Name: libepoxy
|
|
|
|
Version: 1.2
|
2015-03-25 17:09:48 +00:00
|
|
|
Release: 2%{?dist}
|
2014-04-10 20:33:11 +00:00
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/anholt/libepoxy
|
|
|
|
# github url - generated archive
|
2014-10-13 18:05:31 +00:00
|
|
|
#ource0: https://github.com/anholt/libepoxy/archive/%{commit}/%{name}-%{commit}.tar.gz
|
|
|
|
Source0: https://github.com/anholt/libepoxy/archive/%{commit}/v%{version}.tar.gz
|
2014-04-10 20:33:11 +00:00
|
|
|
|
2014-10-13 18:05:31 +00:00
|
|
|
BuildRequires: automake autoconf libtool
|
|
|
|
BuildRequires: mesa-libGL-devel
|
|
|
|
BuildRequires: mesa-libEGL-devel
|
|
|
|
BuildRequires: mesa-libGLES-devel
|
2014-04-10 20:33:11 +00:00
|
|
|
BuildRequires: xorg-x11-util-macros
|
|
|
|
BuildRequires: python3
|
|
|
|
|
2015-03-25 17:09:48 +00:00
|
|
|
Patch1: 0001-Use-the-EGL-pkgconfig-for-finding-eglplatform.h.patch
|
|
|
|
Patch2: 0002-Fix-context-type-detection-if-we-find-eglGetCurrentC.patch
|
|
|
|
Patch3: 0003-Avoid-name-conflicts-between-pkgconfig-s-EGL_LIBS-an.patch
|
|
|
|
|
2014-04-10 20:33:11 +00:00
|
|
|
%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
|
2014-10-13 18:05:31 +00:00
|
|
|
%setup -q
|
2015-03-25 17:09:48 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2014-04-10 20:33:11 +00:00
|
|
|
|
|
|
|
%build
|
2014-10-13 18:05:31 +00:00
|
|
|
autoreconf -vif || exit 1
|
2014-04-10 20:33:11 +00:00
|
|
|
%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
|
2014-10-13 18:05:31 +00:00
|
|
|
# In theory this is fixed in 1.2 but we still see errors on most platforms
|
|
|
|
# https://github.com/anholt/libepoxy/issues/24
|
|
|
|
%ifnarch %{arm} aarch64 %{power64} s390x
|
2014-04-10 20:33:11 +00:00
|
|
|
make check
|
2014-10-13 18:05:31 +00:00
|
|
|
%else
|
|
|
|
make check ||:
|
|
|
|
%endif
|
2014-04-10 20:33:11 +00:00
|
|
|
|
|
|
|
%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
|
2015-03-25 17:09:48 +00:00
|
|
|
* Wed Mar 25 2015 Adam Jackson <ajax@redhat.com> 1.2-2
|
|
|
|
- Fix description to not talk about DRM
|
|
|
|
- Sync some small bugfixes from git
|
|
|
|
|
2014-10-13 18:05:31 +00:00
|
|
|
* Mon Oct 13 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.0-1
|
|
|
|
- Update to 1.2 GA
|
|
|
|
- Don't fail build on make check failure for some architectures
|
|
|
|
|
2014-08-17 03:06:43 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.4.20140411git6eb075c
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 03:13:10 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.3.20140411git6eb075c
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-10 22:02:05 +00:00
|
|
|
* Fri Apr 11 2014 Dave Airlie <airlied@redhat.com> 1.2-0.2.20140411git6eb075c
|
|
|
|
- update to latest git snapshot
|
|
|
|
|
2014-04-10 20:33:11 +00:00
|
|
|
* Thu Mar 27 2014 Dave Airlie <airlied@redhat.com> 1.2-0.1.20140307gitd4ad80f
|
|
|
|
- initial git snapshot
|
|
|
|
|