[packages/libbacklight] - new

qboosh qboosh at pld-linux.org
Sun Dec 21 16:13:09 CET 2014


commit 90c15e5a18b2e5803840124cb2d04afe81d5d0a2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 21 16:13:50 2014 +0100

    - new

 libbacklight-drm.patch | 11 ++++++
 libbacklight.spec      | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+)
---
diff --git a/libbacklight.spec b/libbacklight.spec
new file mode 100644
index 0000000..251c9c1
--- /dev/null
+++ b/libbacklight.spec
@@ -0,0 +1,96 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library
+#
+Summary:	Linux backlight interface library
+Summary(pl.UTF-8):	Biblioteka interfejsu do podświetlania pod Linuksem
+Name:		libbacklight
+Version:	0.01
+Release:	1
+License:	MIT
+Group:		Libraries
+Source0:	http://www.freedesktop.org/software/libbacklight/%{name}-%{version}.tar.gz
+# Source0-md5:	a04ae7354b0b0176326914e772dbdf11
+Patch0:		%{name}-drm.patch
+URL:		http://cgit.freedesktop.org/libbacklight/
+BuildRequires:	libdrm-devel
+BuildRequires:	pkgconfig
+BuildRequires:	xorg-lib-libpciaccess-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libbacklight provides an abstraction layer that allows applications to
+identify the appropriate Linux backlight device for their use.
+
+%description -l pl.UTF-8
+Biblioteka libbacklight udostępnia warstwę abstrakcji pozwalającą
+aplikacjom zidentyfikować właściwe urządzenie podświetlające pod
+Linuksem.
+
+%package devel
+Summary:	Header files for libbacklight library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libbacklight
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	xorg-lib-libpciaccess-devel
+
+%description devel
+Header files for libbacklight library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libbacklight.
+
+%package static
+Summary:	Static libbacklight library
+Summary(pl.UTF-8):	Statyczna biblioteka libbacklight
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libbacklight library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libbacklight.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+	--disable-silent-rules \
+	%{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README
+%attr(755,root,root) %{_libdir}/libbacklight.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbacklight.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbacklight.so
+%{_includedir}/libbacklight.h
+%{_pkgconfigdir}/libbacklight.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbacklight.a
+%endif
diff --git a/libbacklight-drm.patch b/libbacklight-drm.patch
new file mode 100644
index 0000000..a284ca4
--- /dev/null
+++ b/libbacklight-drm.patch
@@ -0,0 +1,11 @@
+--- libbacklight-0.01/libbacklight.c.orig	2011-01-19 05:01:08.000000000 +0100
++++ libbacklight-0.01/libbacklight.c	2014-12-21 16:04:10.105558058 +0100
+@@ -35,7 +35,7 @@
+ #include <linux/types.h>
+ #include <dirent.h>
+ #include <sys/stat.h>
+-#include <drm/drm_mode.h>
++#include <libdrm/drm_mode.h>
+ #include <fcntl.h>
+ #include <malloc.h>
+ #include <string.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libbacklight.git/commitdiff/90c15e5a18b2e5803840124cb2d04afe81d5d0a2



More information about the pld-cvs-commit mailing list