vesautils/vesautils.spec

88 lines
2.6 KiB
RPMSpec

Name: vesautils
Version: 0.0.svn20110217
Release: 1mamba
Summary: A collection of utilities and a library for handling the VESA BIOS Extension (aka VBE)
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mplayerhq.hu/vesautils/
# Source got from SVN:
# svn checkout svn://svn.mplayerhq.hu/vesautils/trunk vesautils
Source: http://http://www.mplayerhq.hu/vesautils//vesautils-%{version}.tar.bz2
License: GPL
Requires: libvbe = %{?epoch:%epoch:}%{version}-%{release}
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: liblrmi-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
vesautils is a collection of utilities and a library for handling the VESA BIOS Extension (aka VBE) with the help of LRMI.
%package -n libvbe
Group: System/Libraries
Summary: A library for handling the VESA BIOS Extension (aka VBE) with the help of LRMI
%description -n libvbe
A library for handling the VESA BIOS Extension (aka VBE) with the help of LRMI.
%package -n libvbe-devel
Group: Development/Libraries
Summary: Static libraries and headers for libvbe
Requires: libvbe = %{?epoch:%epoch:}%{version}-%{release}
%description -n libvbe-devel
A library for handling the VESA BIOS Extension (aka VBE) with the help of LRMI.
This package contains static libraries and header files need for development.
%prep
%setup -q
sed -i "/ldconfig/d" libvbe/Makefile
%build
cd libvbe
%make
cd ..
%make vbetest dosint vbemodeinfo
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}{%{_includedir},%{_libdir}}
cd libvbe
%makeinstall LIBDIR=%{buildroot}%{_libdir} INCDIR=%{buildroot}%{_includedir}
cd ..
install -D -m0755 dosint %{buildroot}%{_sbindir}/dosint
install -D -m0755 get-edid %{buildroot}%{_sbindir}/get-edid
install -D -m0755 vbemodeinfo %{buildroot}%{_sbindir}/vbemodeinfo
install -D -m0755 vbetest %{buildroot}%{_sbindir}/vbetest
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libvbe -p /sbin/ldconfig
%postun -n libvbe -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sbindir}/dosint
%{_sbindir}/get-edid
%{_sbindir}/vbemodeinfo
%{_sbindir}/vbetest
%files -n libvbe
%defattr(-,root,root)
%{_libdir}/libvbe.so.*
%files -n libvbe-devel
%defattr(-,root,root)
%{_includedir}/vbe.h
%{_libdir}/libvbe.so
%doc README
%changelog
* Thu Feb 17 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.0-1mamba
- package created by autospec