2014-03-10 12:18:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package libepoxy
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libepoxy
|
|
|
|
%define sonum 0
|
2014-05-22 09:04:11 +02:00
|
|
|
Version: 1.2
|
2014-03-10 12:18:22 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenGL function pointer management library
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: https://github.com/anholt/libepoxy
|
|
|
|
Source: https://github.com/anholt/%{name}/archive/v%{version}.tar.gz
|
2015-03-26 14:50:02 +01:00
|
|
|
Source1: baselibs.conf
|
2015-02-12 11:16:15 +01:00
|
|
|
Patch0: u_sort-the-providers-by-their-enum-not-by-their-functi.patch
|
2014-03-10 12:18:22 +01:00
|
|
|
BuildRequires: autoconf >= 2.60
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
2014-05-22 09:04:11 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2014-03-10 12:18:22 +01:00
|
|
|
BuildRequires: pkgconfig(xorg-macros)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Epoxy is a library for handling OpenGL function pointer management for you.
|
|
|
|
|
|
|
|
It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(),
|
|
|
|
eglGetProcAddress(), etc. from the app developer, with very little knowledge
|
|
|
|
needed on their part. They get to read GL specs and write code using undecorated
|
|
|
|
function names like glCompileShader().
|
|
|
|
|
|
|
|
%package -n %{name}%{sonum}
|
|
|
|
Summary: OpenGL function pointer management library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n %{name}%{sonum}
|
|
|
|
Epoxy is a library for handling OpenGL function pointer management for you.
|
|
|
|
|
|
|
|
It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(),
|
|
|
|
eglGetProcAddress(), etc. from the app developer, with very little knowledge
|
|
|
|
needed on their part. They get to read GL specs and write code using undecorated
|
|
|
|
function names like glCompileShader().
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libepoxy
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{sonum} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Epoxy is a library for handling OpenGL function pointer management for you.
|
|
|
|
|
|
|
|
It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(),
|
|
|
|
eglGetProcAddress(), etc. from the app developer, with very little knowledge
|
|
|
|
needed on their part. They get to read GL specs and write code using undecorated
|
|
|
|
function names like glCompileShader().
|
|
|
|
|
|
|
|
Development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2015-02-12 11:16:15 +01:00
|
|
|
%patch0 -p1
|
2014-03-10 12:18:22 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
if [ ! -e configure ]; then
|
|
|
|
NOCONFIGURE=1 ./autogen.sh;
|
|
|
|
fi;
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR="%buildroot";
|
|
|
|
rm -f "%buildroot/%{_libdir}"/*.la
|
|
|
|
|
|
|
|
%post -n %{name}%{sonum} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{name}%{sonum} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}%{sonum}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libepoxy.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libepoxy.so
|
|
|
|
%{_libdir}/pkgconfig/epoxy.pc
|
|
|
|
%{_includedir}/epoxy/
|
|
|
|
|
|
|
|
%changelog
|