Setup and spec file changes

Added the license files and executable.
Marked lorax.conf as config.
This commit is contained in:
Martin Gracik 2010-12-17 17:04:04 +01:00
parent d0f2c1a936
commit 3a0ed30cca
2 changed files with 22 additions and 12 deletions

View File

@ -7,11 +7,25 @@ Group: Applications/System
License: GPLv2+ License: GPLv2+
URL: http://git.fedorahosted.org/git/?p=lorax.git URL: http://git.fedorahosted.org/git/?p=lorax.git
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch
BuildRequires: python-setuptools BuildRequires: python-setuptools
Requires: python Requires: python2-devel
Requires: python-mako Requires: python-mako
Requires: gawk
Requires: glibc-common
Requires: cpio
Requires: module-init-tools
Requires: device-mapper
Requires: findutils
Requires: GConf2
Requires: isomd5sum
Requires: syslinux
Requires: glibc
Requires: util-linux-ng
Requires: dosfstools
Requires: genisoimage
Requires: parted
%description %description
Lorax is a tool for creating the anaconda install images. Lorax is a tool for creating the anaconda install images.
@ -19,30 +33,24 @@ Lorax is a tool for creating the anaconda install images.
%prep %prep
%setup -q %setup -q
%build %build
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc %doc COPYING AUTHORS
%{python_sitelib}/pylorax %{python_sitelib}/pylorax
%{python_sitelib}/*.egg-info %{python_sitelib}/*.egg-info
%{_sbindir}/lorax
%dir %{_sysconfdir}/lorax %dir %{_sysconfdir}/lorax
%{_sysconfdir}/lorax/lorax.conf %config %{_sysconfdir}/lorax/lorax.conf
%dir %{_datadir}/lorax %dir %{_datadir}/lorax
%{_datadir}/lorax/* %{_datadir}/lorax/*
%changelog %changelog
* Wed Dec 01 2010 Martin Gracik <mgracik@redhat.com> 0.1-1 * Wed Dec 01 2010 Martin Gracik <mgracik@redhat.com> 0.1-1
- First packaging of the new lorax tool. - First packaging of the new lorax tool.

View File

@ -14,6 +14,9 @@ for root, dnames, fnames in os.walk("share"):
data_files.append((root.replace("share", "/usr/share/lorax", 1), data_files.append((root.replace("share", "/usr/share/lorax", 1),
[os.path.join(root, fname)])) [os.path.join(root, fname)]))
# executable
data_files.append(("/usr/sbin", ["src/sbin/lorax"]))
setup(name="lorax", setup(name="lorax",
version="0.1", version="0.1",
description="Lorax", description="Lorax",
@ -25,6 +28,5 @@ setup(name="lorax",
license="GPLv2+", license="GPLv2+",
packages=["pylorax"], packages=["pylorax"],
package_dir={"" : "src"}, package_dir={"" : "src"},
#scripts=["src/bin/lorax"],
data_files=data_files data_files=data_files
) )