-
Notifications
You must be signed in to change notification settings - Fork 0
/
ms-sys.spec
98 lines (73 loc) · 3.16 KB
/
ms-sys.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Name: ms-sys
Version: 2.2.1
Release: 1%{?dist}
Summary: Create DOS/MS-compatible boot records
Group: Applications/System
License: GPLv2
URL: http://ms-sys.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bash, gettext
%description
This program is used to create DOS/MS-compatible boot records. It is
able to do the same as Microsoft "fdisk /mbr" to a hard disk. It is
also able to do the same as DOS "sys" to a floppy or FAT32 partition
except that it does not copy any system files, only the boot record is
written.
%prep
%setup -q
%build
%{__mkdir} {bin,dep,mo,obj}
%{__make} \
CC="${CC:-%{__cc}}" \
EXTRA_CFLAGS="%{optflags} -fasm" \
EXTRA_LDFLAGS="%{optflags}" \
PREFIX="%{_prefix}" \
SHELL="/bin/bash"
iconv --from=ISO-8859-1 --to=UTF-8 CONTRIBUTORS > CONTRIBUTORS.new
iconv --from=ISO-8859-1 --to=UTF-8 CHANGELOG > CHANGELOG.new
mv CONTRIBUTORS.new CONTRIBUTORS
mv CHANGELOG.new CHANGELOG
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" MANDIR="%{_mandir}"
%find_lang %{name}
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.lang
%defattr(-, root, root, -)
%doc CHANGELOG CONTRIBUTORS COPYING FAQ README TODO
%doc %{_mandir}/man1/ms-sys.1*
%{_bindir}/ms-sys
%changelog
* Mon May 05 2014 Brandon Perkins <bperkins@redhat.com> 2.2.1-1
- Version 2.2.1. (bperkins@redhat.com)
- 22/1 2011 2.2.1 Modified Makefile to recreate directories lost by CVS
Now also doing a sanity check before only writing BPB (bperkins@redhat.com)
* Mon May 05 2014 Brandon Perkins <bperkins@redhat.com> 2.2.0-1
- Version 2.2.0. (bperkins@redhat.com)
- 13/5 2010 2.2.0 Added support for large disk image files. This version
is now considered stable as the BPB problem has had a
workaround since version 2.1.5. (bperkins@redhat.com)
* Mon May 05 2014 Brandon Perkins <bperkins@redhat.com> 2.1.5-1
- Version 2.1.5. (bperkins@redhat.com)
- 14/3 2010 2.1.5 Added support for manually setting the number of heads
in BPB (bperkins@redhat.com)
* Mon May 05 2014 Brandon Perkins <bperkins@redhat.com> 2.1.4-1
- Version 2.1.4 and source is now .tar.gz instead of .tgz.
(bperkins@redhat.com)
- 3/10 2009 2.1.4 Win 7 and Vista MBR added Added
copyright notice to source files (bperkins@redhat.com)
* Mon May 05 2014 Brandon Perkins <bperkins@redhat.com>
- Version 2.1.4 and source is now .tar.gz instead of .tgz.
(bperkins@redhat.com)
- 3/10 2009 2.1.4 Win 7 and Vista MBR added Added
copyright notice to source files (bperkins@redhat.com)
* Mon May 05 2014 Brandon Perkins <bperkins@redhat.com> 2.1.3-3
- new package built with tito
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Aug 04 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 2.1.3-2
- Fix license tag and disable debugging.
* Mon Aug 04 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 2.1.3-1
- Initial package