Name: libbacklight Version: 0.01 Release: 3%{?dist} Summary: A library to abstract Linux backlight control Group: System Environment/Libraries License: MIT URL: http://www.freedesktop.org/software/libbacklight Source0: http://www.freedesktop.org/software/libbacklight/libbacklight-0.01.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig BuildRequires: libpciaccess-devel %description libbacklight provides an abstraction for Linux backlight control, making it easier for applications to identify the preferred backlight device for a given piece of graphics hardware. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libpciaccess-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %configure --disable-static --disable-silent-rules make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc %{_docdir}/%{name}/* %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/libbacklight.pc %changelog * Wed Jan 19 2011 Matthew Garrett 0.01-3 - Further review updates * Tue Jan 18 2011 Matthew Garrett 0.01-2 - Updates from review feedback * Mon Jan 17 2011 Matthew Garrett 0.01-1 - Initial packaging