Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
playground
>
image-installer
> image-installer.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File image-installer.spec of Package image-installer (Revision 14)
Currently displaying revision
14
,
show latest
%define pkgname image-installer Name: image-installer Summary: Image Installer Version: 2.0 Release: 0 Url: http://www.linux-administrator.com License: GPLv2 Group: System Environment Source0: %{pkgname}-%{version}.tar %if 0%{?suse_version} >= 1210 Source1: image-installer.service %else Source1: image-installer.init %endif BuildRoot: %{_tmppath}/%{name}-%{version}-root %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?sl_version} || 0%{?redhat_version} Requires: dialog coreutils pv BuildRequires: dialog coreutils pv %endif %if 0%{?suse_version} Requires: dialog coreutils pv BuildRequires: dialog coreutils pv %endif BuildArch: noarch %description Image-installer provides a dialog system to write images to disk using 'dd'. %prep %setup -n %{pkgname}-%{version} %build %install %__install -D -m755 v2/image-installer.conf %{buildroot}%{_sysconfdir}/image-installer.conf %__install -D -m755 v2/image-installer.sh %{buildroot}%{_sbindir}/image-installer %if 0%{?suse_version} >= 1210 %__install -D -m755 %{S:1} %{buildroot}%{_sysconfdir}/systemd/system/image-installer.service %else %__install -D -m755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/image-installer %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/image-installer.conf %{_sbindir}/image-installer %if 0%{?suse_version} >= 1210 %dir %{_sysconfdir}/systemd %dir %{_sysconfdir}/systemd/system %{_sysconfdir}/systemd/system/image-installer.service %else %{_sysconfdir}/init.d/image-installer %endif %changelog