[packages/libepoxy] - finished packaging
qboosh
qboosh at pld-linux.org
Thu Jul 17 21:36:41 CEST 2014
commit 36ca5f18f3da917b7383094ea2d174de54efc911
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 17 21:41:41 2014 +0200
- finished packaging
libepoxy.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 50 insertions(+), 12 deletions(-)
---
diff --git a/libepoxy.spec b/libepoxy.spec
index 9a08bbf..5523f14 100644
--- a/libepoxy.spec
+++ b/libepoxy.spec
@@ -1,35 +1,63 @@
#
# Conditional build:
-%bcond_without tests # build without tests
+%bcond_without tests # "make check" call
+%bcond_without static_libs # static library build
-Summary: Direct Rendering Manager runtime library
+Summary: Epoxy - GL dispatch library
+Summary(pl.UTF-8): Epoxy - biblioteka do przekazywania funkcji GL
Name: libepoxy
Version: 1.2
Release: 1
License: MIT
-Group: X11/Libraries
+Group: Libraries
Source0: https://github.com/anholt/libepoxy/archive/v%{version}.tar.gz
# Source0-md5: 12d6b7621f086c0c928887c27d90bc30
-URL: http://github.com/anholt/libepoxy
+URL: https://github.com/anholt/libepoxy
+%{?with_tests:BuildRequires: Mesa-khrplatform-devel}
BuildRequires: Mesa-libEGL-devel
BuildRequires: Mesa-libGL-devel
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: python3
-BuildRequires: xorg-util-util-macros
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-util-util-macros >= 1.8
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-A library for handling OpenGL function pointer management.
+Epoxy is a library for handling OpenGL function pointer management for
+you.
+
+%description -l pl.UTF-8
+Epoxy to biblioteka do obsługi zarządzania wskaźnikami do funkcji
+OpenGL.
%package devel
Summary: Development files for libepoxy
+Summary(pl.UTF-8): Pliki programistyczne biblioteki libepoxy
+Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-This package contains libraries and header files for developing
-applications that use %{name}.
+This package contains the header files for developing applications
+that use libepoxy.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
+wykorzystujących bibliotekę libepoxy.
+
+%package static
+Summary: Static libepoxy library
+Summary(pl.UTF-8): Statyczna biblioteka libepoxy
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libepoxy library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libepoxy.
%prep
%setup -q
@@ -37,11 +65,12 @@ applications that use %{name}.
%build
%{__libtoolize}
%{__aclocal}
-%{__autoheader}
%{__autoconf}
+%{__autoheader}
%{__automake}
%configure \
- --disable-silent-rules
+ --disable-silent-rules \
+ %{?with_static_libs:--enable-static}
%{__make}
@@ -53,6 +82,9 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libepoxy.la
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -61,7 +93,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.md
+%doc COPYING README.md
%attr(755,root,root) %ghost %{_libdir}/libepoxy.so.0
%attr(755,root,root) %{_libdir}/libepoxy.so.*.*
@@ -70,3 +102,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libepoxy.so
%{_includedir}/epoxy
%{_pkgconfigdir}/epoxy.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libepoxy.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libepoxy.git/commitdiff/36ca5f18f3da917b7383094ea2d174de54efc911
More information about the pld-cvs-commit
mailing list