livecd-tools/livecd-tools.spec

101 lines
2.4 KiB
RPMSpec
Raw Normal View History

2012-10-01 16:19:38 +04:00
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "import distutils.sysconfig as d; print d.get_python_lib()")}
2012-02-01 14:17:13 +04:00
%define debug_package %{nil}
Summary: Tools for building live CDs
Name: livecd-tools
Version: 21.1
Release: 3
2012-10-01 16:19:38 +04:00
Epoch: 1
2012-02-01 14:17:13 +04:00
License: GPLv2
2012-10-17 08:50:23 +00:00
Group: System/Base
2012-10-01 16:19:38 +04:00
URL: http://git.fedorahosted.org/git/livecd
Source0: http://fedorahosted.org/releases/l/i/livecd/%{name}-%{version}.tar.bz2
2012-10-02 12:55:20 +04:00
Source1: arch.py
2014-01-21 12:47:57 +04:00
Source3: rosa-image-fix-x86.pl
Patch0: livecd-tools-21.1.urpmi.patch
Patch1: livecd-tools-21.1.split.install.patch
Patch2: livecd-tools-21.1.efi.fixes.patch
2013-08-27 16:56:03 +04:00
2012-02-01 14:17:13 +04:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
2012-10-01 16:19:38 +04:00
Requires: python-imgcreate = %{epoch}:%{version}-%{release}
2012-02-01 14:17:13 +04:00
Requires: mkisofs
Requires: isomd5sum
Requires: parted
2012-10-01 16:19:38 +04:00
Requires: pyparted
Requires: util-linux
Requires: dosfstools
Requires: e2fsprogs
Requires: lorax >= 18.3
2012-10-17 08:50:23 +00:00
Obsoletes: livecd-iso-to-disk
2012-02-01 14:17:13 +04:00
%ifarch %{ix86} x86_64
Requires: syslinux
%endif
2012-10-01 16:19:38 +04:00
Requires: dumpet
2014-05-06 22:04:18 +04:00
BuildRequires: perl
2012-02-01 14:17:13 +04:00
BuildRequires: python
%description
Tools for generating live CDs on Fedora based systems including
derived distributions such as RHEL, CentOS and others. See
http://fedoraproject.org/wiki/FedoraLiveCD for more details.
%package -n python-imgcreate
Summary: Python modules for building system images
2012-10-17 08:50:23 +00:00
Group: System/Base
2012-02-01 14:17:13 +04:00
Requires: util-linux
Requires: coreutils
Requires: e2fsprogs
Requires: squashfs-tools
2012-10-01 16:19:38 +04:00
Requires: pykickstart >= 0.96
2012-02-01 14:17:13 +04:00
Requires: dosfstools >= 2.11-8
#Requires: system-config-keyboard >= 1.3.0
Requires: python-urlgrabber
2012-10-01 16:19:38 +04:00
Requires: python-selinux
2012-02-01 14:17:13 +04:00
Requires: dbus-python
2012-10-09 08:10:26 +00:00
#Requires: policycoreutils
2012-02-01 14:17:13 +04:00
%description -n python-imgcreate
Python modules that can be used for building images for things
like live image or appliances.
%prep
%setup -q
%patch0 -p1
2012-10-02 12:55:20 +04:00
%patch1 -p1
2012-10-17 08:50:23 +00:00
%patch2 -p1
2012-11-06 11:22:22 +04:00
2012-02-01 14:17:13 +04:00
%build
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
2012-10-02 13:07:05 +04:00
%__install -m 0644 %{SOURCE1} %{buildroot}%{python_sitelib}/imgcreate/
2014-01-21 12:47:57 +04:00
%__install -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/
2012-02-01 14:17:13 +04:00
%files
%defattr(-,root,root,-)
%doc config/livecd-fedora-minimal.ks
%{_mandir}/man*/*
%{_bindir}/livecd-creator
2012-10-01 16:19:38 +04:00
%{_bindir}/livecd-iso-to-disk
2012-02-01 14:17:13 +04:00
%{_bindir}/livecd-iso-to-pxeboot
%{_bindir}/image-creator
2012-10-01 16:19:38 +04:00
%{_bindir}/liveimage-mount
%{_bindir}/edit-livecd
%{_bindir}/mkbiarch
2014-01-21 12:47:57 +04:00
%{_bindir}/rosa-image-fix-x86.pl
2012-02-01 14:17:13 +04:00
%files -n python-imgcreate
%defattr(-,root,root,-)
2012-10-01 16:19:38 +04:00
%dir %{python_sitelib}/imgcreate
%{python_sitelib}/imgcreate/*.py
%{python_sitelib}/imgcreate/*.pyo
%{python_sitelib}/imgcreate/*.pyc
2012-02-01 14:17:13 +04:00
%changelog