[bochs] Add devel package.

Jon Ciesla limb at fedoraproject.org
Tue Mar 13 19:07:37 UTC 2012


commit eb4af2924541631c9b183c687940a4054d4e9717
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Tue Mar 13 14:07:26 2012 -0500

    Add devel package.

 bochs.spec |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/bochs.spec b/bochs.spec
index 7842707..0e3e0e0 100644
--- a/bochs.spec
+++ b/bochs.spec
@@ -1,6 +1,6 @@
 Name:           bochs
 Version:        2.5.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Portable x86 PC emulator
 Group:          Applications/Emulators
 License:        LGPLv2+
@@ -76,6 +76,14 @@ Bochs BIOS is a free implementation of a x86 BIOS provided by the Bochs project.
 It can also be used in other emulators, such as QEMU
 %endif
 
+%package        devel
+Summary:        Bochs header and source files
+Group:          Applications/Emulators
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+Header and source files from bochs source.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -160,6 +168,11 @@ install -m 755 bochs-debugger bochs-gdb $RPM_BUILD_ROOT%{_bindir}
 mv $RPM_BUILD_ROOT%{_docdir}/bochs _installed-docs
 rm $RPM_BUILD_ROOT%{_mandir}/man1/bochs-dlx.1*
 
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/include/bochs/disasm
+cp -pr disasm/*.h $RPM_BUILD_ROOT%{_prefix}/include/bochs/disasm/
+cp -pr disasm/*.cc $RPM_BUILD_ROOT%{_prefix}/include/bochs/disasm/
+cp -pr disasm/*.inc $RPM_BUILD_ROOT%{_prefix}/include/bochs/disasm/
+cp -pr config.h $RPM_BUILD_ROOT%{_prefix}/include/bochs/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -196,8 +209,14 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %{_bindir}/bochs-gdb
 
+%files devel
+%defattr(-,root,root,-)
+%{_prefix}/include/bochs/
 
 %changelog
+* Tue Mar 13 2012 Jon Ciesla <limburgher at gmail.com> - 2.5.1-3
+- Add devel package.
+
 * Tue Feb 20 2012 Jon Ciesla <limburgher at gmail.com> - 2.5.1-2
 - Compile with disasm, BZ 798437.
 


More information about the scm-commits mailing list