Last change
on this file since 2537 was 2346, checked in by Bruno Cornec, 6 years ago |
Fix dependencies and arch:
- mindi requires either syslinux or elilo
- mondo deosn't require syslinux by itself
- fix allowaed archs instead of excluding some
|
File size:
1.5 KB
|
Rev | Line | |
---|
[384] | 1 | #
|
---|
[2115] | 2 | # $Id$
|
---|
[384] | 3 | #
|
---|
[2064] | 4 | # Avoids to generate debug packages
|
---|
| 5 | %global debug_package %{nil}
|
---|
[2115] | 6 | %define srcname PBPKG
|
---|
[2064] | 7 |
|
---|
[1199] | 8 | Summary: PBSUMMARY
|
---|
[384] | 9 | Name: PBPKG
|
---|
| 10 | Version: PBVER
|
---|
| 11 | Release: PBTAGPBSUF
|
---|
[488] | 12 | License: PBLIC
|
---|
[384] | 13 | Group: PBGRP
|
---|
[488] | 14 | Url: PBURL
|
---|
[429] | 15 | Source: PBREPO/PBSRC
|
---|
[384] | 16 | # Not yet possible as busybox is a binary that should go alongside
|
---|
| 17 | # BuildArch: noarch
|
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
[2082] | 19 | Requires: bash
|
---|
| 20 | Requires: bzip2 >= 0.9
|
---|
[2240] | 21 | Requires: e2fsprogs
|
---|
[2082] | 22 | Requires: ncurses
|
---|
| 23 | Requires: binutils
|
---|
| 24 | Requires: gawk
|
---|
| 25 | Requires: dosfstools
|
---|
| 26 | Requires: mindi-busybox >= 1.21.1
|
---|
| 27 | Requires: parted
|
---|
[2280] | 28 | Requires: which
|
---|
| 29 | Requires: grep >= 2.5
|
---|
[2082] | 30 | Requires: perl-MondoRescue
|
---|
| 31 | Requires: mtools
|
---|
[2346] | 32 | %ifarch ia64
|
---|
| 33 | Requires: elilo
|
---|
| 34 | %else
|
---|
| 35 | Requires: syslinux >= 1.52
|
---|
| 36 | %endif
|
---|
[2342] | 37 | Requires: perl-Module-ScanDeps,PBDEP
|
---|
[2346] | 38 | ExclusiveArch: x86_64 i586 i386 i686 ia64
|
---|
[384] | 39 | PBOBS
|
---|
| 40 | # Not on all systems
|
---|
| 41 | #Conflicts: bonnie++
|
---|
| 42 |
|
---|
| 43 | %description
|
---|
[1199] | 44 | PBDESC
|
---|
[384] | 45 |
|
---|
| 46 | %prep
|
---|
[2115] | 47 | %setup -q -n %{name}-%{version}PBEXTDIR
|
---|
[384] | 48 |
|
---|
| 49 | %build
|
---|
| 50 |
|
---|
| 51 | %install
|
---|
[488] | 52 | rm -rf $RPM_BUILD_ROOT
|
---|
[384] | 53 | export DONT_RELINK=1
|
---|
| 54 |
|
---|
| 55 | export HEAD=${RPM_BUILD_ROOT}
|
---|
| 56 | export PREFIX=%{_exec_prefix}
|
---|
| 57 | export CONFDIR=%{_sysconfdir}
|
---|
| 58 | export MANDIR=%{_mandir}
|
---|
[1806] | 59 | export SBINDIR=%{_sbindir}
|
---|
[384] | 60 | #export DOCDIR=%{_docdir}
|
---|
| 61 | export LIBDIR=%{_libdir}
|
---|
| 62 | export CACHEDIR=%{_var}/cache/%{name}
|
---|
| 63 | export PKGBUILDMINDI="true"
|
---|
| 64 |
|
---|
| 65 | ./install.sh
|
---|
| 66 |
|
---|
| 67 | %clean
|
---|
[488] | 68 | rm -rf $RPM_BUILD_ROOT
|
---|
[384] | 69 |
|
---|
| 70 | %files
|
---|
| 71 | %defattr(-,root,root)
|
---|
| 72 | %config(noreplace) %{_sysconfdir}/%{name}
|
---|
[1770] | 73 | %doc ChangeLog COPYING README TODO README.* NEWS
|
---|
[384] | 74 | #svn.log
|
---|
| 75 | %{_mandir}/man8/*
|
---|
| 76 | %{_libdir}/%{name}
|
---|
| 77 | %{_sbindir}/*
|
---|
| 78 | %{_var}/cache/%{name}
|
---|
| 79 |
|
---|
| 80 | %changelog
|
---|
| 81 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.