Blame SPECS/libepoxy.spec

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