-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate packaging related bits dynamically
- Loading branch information
Mario Limonciello
committed
Jan 17, 2018
1 parent
dec8e9f
commit 7c9e3ab
Showing
6 changed files
with
51 additions
and
4,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
biosdisk.8.gz | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,32 @@ | ||
%define name biosdisk | ||
%define version 0.75 | ||
%define version ##VERSION## | ||
%define release 1 | ||
|
||
Summary: Creates BIOS flash floppy images from Dell BIOS executables | ||
Name: %{name} | ||
Version: %{version} | ||
Release: %{release} | ||
URL: http://linux.dell.com/biosdisk/ | ||
URL: http://github.com/dell/biosdisk | ||
License: GPLv2+ | ||
Group: Applications/File | ||
Source0: %{name}-%{version}.tar.gz | ||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | ||
BuildArch: noarch | ||
Requires(post): syslinux | ||
Requires: unix2dos, wget, /usr/bin/rpmbuild | ||
Requires: syslinux, /usr/bin/rpmbuild | ||
|
||
%description | ||
Provides biosdisk utility for creating BIOS disk images in Linux | ||
|
||
%prep | ||
%setup -q | ||
mkdir -p %{_topdir}/BUILD | ||
rsync -av --exclude='tmp' ../.. . | ||
|
||
%build | ||
make | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
mkdir -p %{buildroot}/%{_sbindir} | ||
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} | ||
mkdir -p %{buildroot}/%{_datadir}/%{name} | ||
mkdir -p %{buildroot}%{_mandir}/man8 | ||
mkdir -p %{buildroot}/%{_sysconfdir} | ||
|
||
|
||
#place files | ||
install -m 755 biosdisk %{buildroot}%{_sbindir} | ||
install -m 644 biosdisk.conf %{buildroot}/%{_sysconfdir} | ||
install -m 644 biosdisk.8.gz %{buildroot}%{_mandir}/man8 | ||
cp -R freedos-iso %{buildroot}%{_datadir}/%{name} | ||
make install sharedstatedir=%{buildroot}%{_localstatedir}/lib/%{name} \ | ||
confdir=%{buildroot}/%{_sysconfdir}/ \ | ||
prefix=%{buildroot}/%{_prefix}/ | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
@@ -48,19 +38,7 @@ rm -rf %{buildroot} | |
%{_datadir}/%{name}/ | ||
%config(noreplace) %{_sysconfdir}/%{name}.conf | ||
%{_mandir}/man8/%{name}.8.gz | ||
%doc COPYING ChangeLog AUTHORS README INSTALL TODO README.dosdisk | ||
|
||
%post | ||
# copy memdisk to /boot | ||
# yes rpmlint throws warnings about hardcoded paths and unsafe use of cp | ||
if ! [ -e /boot/memdisk ]; then | ||
for i in /usr/lib/syslinux/memdisk %{_datadir}/syslinux/memdisk | ||
do | ||
if [ -e $i ]; then | ||
cp -f $i /boot | ||
fi | ||
done | ||
fi | ||
%doc COPYING AUTHORS README.md README.dosdisk | ||
|
||
%changelog | ||
* Tue Jun 10 2008 - Matt Domsch <[email protected]> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
biosdisk (##VERSION##) UNRELEASED; urgency=low | ||
|
||
* Built from ##DESCRIBE## | ||
|
||
-- Dell Linux Team <[email protected]> Wed, 17 Jan 2018 00:55:38 -0500 |
Oops, something went wrong.