From e3b21615b5c748101574c0d0b3ed9191c8009306 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:59:53 +0100 Subject: [PATCH] added vbetest subpackage [release 0.10-3mamba;Wed Oct 27 2010] --- README.md | 2 + liblrmi-0.10-Makefile_install.patch | 13 +++++ liblrmi-0.10-missing_defines.patch | 18 +++++++ liblrmi.spec | 81 +++++++++++++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 liblrmi-0.10-Makefile_install.patch create mode 100644 liblrmi-0.10-missing_defines.patch create mode 100644 liblrmi.spec diff --git a/README.md b/README.md index c1139e3..df53e41 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # liblrmi +A library for calling real mode BIOS routines under Linux. + diff --git a/liblrmi-0.10-Makefile_install.patch b/liblrmi-0.10-Makefile_install.patch new file mode 100644 index 0000000..8a4d697 --- /dev/null +++ b/liblrmi-0.10-Makefile_install.patch @@ -0,0 +1,13 @@ +diff -Nru lrmi-0.10.orig/Makefile lrmi-0.10/Makefile +--- lrmi-0.10.orig/Makefile 2005-12-05 00:33:57.000000000 +0100 ++++ lrmi-0.10/Makefile 2006-07-02 14:07:09.000000000 +0200 +@@ -39,8 +39,7 @@ + rm -f $(LIBDIR)/$(LIBNAME).so + ln -sf $(LIBNAME).so.$(VERSION) $(LIBDIR)/$(LIBNAME).so.$(MAJOR) + ln -sf $(LIBNAME).so.$(MAJOR) $(LIBDIR)/$(LIBNAME).so +- install -m 644 -s -p lrmi.h $(INCDIR)/lrmi.h +- ldconfig ++ install -m 644 -p lrmi.h $(INCDIR)/lrmi.h + + .PHONY: clean + clean: diff --git a/liblrmi-0.10-missing_defines.patch b/liblrmi-0.10-missing_defines.patch new file mode 100644 index 0000000..a64d134 --- /dev/null +++ b/liblrmi-0.10-missing_defines.patch @@ -0,0 +1,18 @@ +Index: zhcon-0.2.6/src/display/lrmi.c +=================================================================== +--- zhcon-0.2.6.orig/src/display/lrmi.c 2009-12-24 22:05:43.000000000 -0500 ++++ zhcon-0.2.6/src/display/lrmi.c 2009-12-24 22:06:35.000000000 -0500 +@@ -33,6 +33,13 @@ + + #include "lrmi.h" + ++#if defined(__linux__) && !defined(TF_MASK) ++ #define TF_MASK X86_EFLAGS_TF ++ #define IF_MASK X86_EFLAGS_IF ++ #define VIF_MASK X86_EFLAGS_VIF ++ #define IOPL_MASK X86_EFLAGS_IOPL ++#endif ++ + #define REAL_MEM_BASE ((void *)0x10000) + #define REAL_MEM_SIZE 0x10000 + #define REAL_MEM_BLOCKS 0x100 diff --git a/liblrmi.spec b/liblrmi.spec new file mode 100644 index 0000000..8a37526 --- /dev/null +++ b/liblrmi.spec @@ -0,0 +1,81 @@ +Name: liblrmi +Version: 0.10 +Release: 3mamba +Summary: A library for calling real mode BIOS routines under Linux +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://sourceforge.net/projects/lrmi/ +Source: http://puzzle.dl.sourceforge.net/sourceforge/lrmi/lrmi-%{version}.tar.gz +Patch0: liblrmi-0.10-Makefile_install.patch +Patch1: liblrmi-0.10-missing_defines.patch +License: MIT +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END + +%description +A library for calling real mode BIOS routines under Linux. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +A library for calling real mode BIOS routines under Linux. + +This package contains static libraries and header files need for development. + +%package -n vbetest +Summary: A Video Bios Extensions text tool using %{name} +Group: System/Kernel and Hardware +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n vbetest +A Video Bios Extensions text tool using %{name}. + +%prep +%setup -q -n lrmi-%{version} +%patch0 -p1 +%patch1 -p3 + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d %{buildroot}%{_libdir} %{buildroot}%{_includedir} %{buildroot}%{_sbindir} +%makeinstall LIBDIR=%{buildroot}%{_libdir} INCDIR=%{buildroot}%{_includedir} +install -m 0644 liblrmi.a %{buildroot}%{_libdir} +install -m 0755 vbetest %{buildroot}%{_sbindir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/liblrmi.so.* +%doc README + +%files devel +%defattr(-,root,root) +%{_includedir}/lrmi.h +%{_libdir}/liblrmi.a +%{_libdir}/liblrmi.so + +%files -n vbetest +%defattr(-,root,root) +%{_sbindir}/vbetest + +%changelog +* Wed Oct 27 2010 Silvan Calarco 0.10-3mamba +- added vbetest subpackage + +* Thu Jun 26 2008 Tiziana Ferro 0.10-2mamba +- update Vendor, Distribution, buildrequirements list + +* Sun Jul 02 2006 Silvan Calarco 0.10-1qilnx +- package created by autospec