]> git.pld-linux.org Git - packages/linux-live.git/blame - linux-live.spec
actually build with /pld/ in dir path; do not remove buildfiles
[packages/linux-live.git] / linux-live.spec
CommitLineData
7c9e58a2 1Summary: Linux Live Kit
4b41d151 2Name: linux-live
7c9e58a2
ER
3Version: 1.8
4Release: 0.1
5Epoch: 1
4b41d151 6License: GPL
d0b19d26 7Group: Applications/System
7c9e58a2
ER
8Source0: https://github.com/Tomas-M/linux-live/archive/v%{version}.tar.gz?/%{name}-%{version}.tgz
9# Source0-md5: 393c52991be3e4d21660e00b6bbf316c
d85d9433
ER
10Source1: http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.06.tar.gz
11# Source1-md5: ab705f8a0be0598770014bd5498b2eb2
12Source2: %{name}-build.sh
e3898253
ER
13Patch0: pld.patch
14Patch1: https://github.com/Tomas-M/linux-live/pull/5.patch
15# Patch1-md5: 603c98f4c516929044bccf0419423586
4b41d151 16URL: http://www.linux-live.org/
d85d9433
ER
17BuildRequires: nasm
18BuildRequires: perl-base
a8111d46 19BuildRequires: rpmbuild(macros) >= 1.583
daf1d543 20Requires: coreutils
daf1d543
PZ
21Requires: grep
22Requires: mawk
23Requires: mkisofs
daf1d543 24Requires: sed
4b41d151 25Requires: squashfs
7c9e58a2
ER
26# suggests for rebuidling isolinux
27Suggests: gcc
28Suggests: glibc-devel
29Suggests: gzip
30Suggests: make
31Suggests: nasm
32Suggests: perl-base
33Suggests: tar
34Suggests: wget
daf1d543 35Obsoletes: linux-live-build < 6.2.4-7
b25c0f13 36ExclusiveArch: %{ix86} %{x8664} arm
4b41d151
ER
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
7c9e58a2 39%define _libdir %{_prefix}/lib
d0b19d26 40%define _libexecdir %{_libdir}/%{name}
1cca4c53 41%define _sysconfdir /etc/%{name}
4b41d151 42
a8111d46 43# autostrip nothing and disable debug (it is supposed to be noarch)
d6380801
PZ
44%define _noautoprov lib.*\.so.* ld-linux.*\.so.*
45%define _noautoreq %{_noautoprov}
a4de4e96 46%define _noautostrip .*
7bf2f730 47%define _enable_debug_packages 0
48
a8111d46
ER
49# undefined sym: pthread_sigmask
50%define skip_post_check_so libulockmgr.so.1.0.1
51
4b41d151 52%description
7c9e58a2
ER
53Linux Live Kit is a set of shell scripts which allows you to create
54your own Live Linux from an already installed Linux distribution. The
55Live system you create will be bootable from CD-ROM or a disk device,
56for example USB Flash Drive, USB Pen Drive, Camera connected to USB
57port, and so on. People use Linux Live Kit to boot Linux from iPod as
58well.
4b41d151 59
947a57c8
JR
60%description -l pl.UTF-8
61Linux Live to zestaw skryptów powłoki pozwalających tworzyć własne
62LiveCD z każdej dystrybucji Linuksa. Wystarczy zainstalować ulubioną
63dystrybucję, usunąć wszystkie niepotrzebne pliki (na przykład strony
64manuala i wszystkie inne nieistotne dla nas pliki), a następnie
65ściągnąć i uruchomić te skrypty, aby stworzyć własnego Live Linuksa.
c680b726 66
4b41d151
ER
67%prep
68%setup -q
d0b19d26 69%patch0 -p1
e3898253 70%patch1 -p1
d0b19d26 71
7c9e58a2
ER
72cd initramfs/static
73./update
74rm -v *-{i486,x86_64}
75cd -
76
d85d9433
ER
77tar -xf %{SOURCE1} -C tools
78
7c9e58a2 79find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
4b41d151 80
d85d9433
ER
81%build
82# rebuild isolinux to be in /pld/ subdir
83cd tools
84CC="%{__cc}" \
e3898253 85sed -e '/rm/d' ./isolinux.bin.update | sh -x
d85d9433 86
4b41d151
ER
87%install
88rm -rf $RPM_BUILD_ROOT
7c9e58a2
ER
89install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_bindir},%{_sbindir}}
90cp -a bootfiles bootinfo.txt build initramfs livekitlib tools $RPM_BUILD_ROOT%{_libexecdir}
d85d9433 91install -p %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/linux-live-build
d0b19d26 92
e3898253
ER
93rm -r $RPM_BUILD_ROOT%{_libexecdir}/tools/syslinux-*
94
1cca4c53 95install -d $RPM_BUILD_ROOT%{_sysconfdir}
7c9e58a2 96cp -p .config $RPM_BUILD_ROOT%{_sysconfdir}/config
daf1d543 97
4b41d151
ER
98%clean
99rm -rf $RPM_BUILD_ROOT
100
101%files
102%defattr(644,root,root,755)
7c9e58a2 103%doc README TODO DOC/*.txt
daf1d543 104%attr(755,root,root) %{_sbindir}/linux-live-build
1cca4c53
ER
105%dir %{_sysconfdir}
106%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config
d0b19d26 107%dir %{_libexecdir}
defe69c7 108%attr(755,root,root) %{_libexecdir}/build
7c9e58a2
ER
109%{_libexecdir}/livekitlib
110%{_libexecdir}/bootinfo.txt
111
112%dir %{_libexecdir}/bootfiles
113%{_libexecdir}/bootfiles/bootinst.bat
114%{_libexecdir}/bootfiles/bootinst.sh
115%{_libexecdir}/bootfiles/bootlogo.png
116%{_libexecdir}/bootfiles/extlinux.exe
117%{_libexecdir}/bootfiles/isolinux.bin
118%{_libexecdir}/bootfiles/mbr.bin
119%{_libexecdir}/bootfiles/pxelinux.0
120%{_libexecdir}/bootfiles/syslinux.cfg
121%{_libexecdir}/bootfiles/syslinux.com
122%{_libexecdir}/bootfiles/syslinux.exe
123%{_libexecdir}/bootfiles/vesamenu.c32
124
125%dir %{_libexecdir}/initramfs
126%{_libexecdir}/initramfs/cleanup
127%{_libexecdir}/initramfs/init
128%{_libexecdir}/initramfs/initramfs_create
129
130%dir %{_libexecdir}/initramfs/static
131%{_libexecdir}/initramfs/static/busybox
132%{_libexecdir}/initramfs/static/eject
133%{_libexecdir}/initramfs/static/mount.dynfilefs
134%{_libexecdir}/initramfs/static/mount.ntfs-3g
135%{_libexecdir}/initramfs/static/update
136
137%dir %{_libexecdir}/tools
138%attr(755,root,root) %{_libexecdir}/tools/isolinux.bin.update
This page took 0.093454 seconds and 4 git commands to generate.