File alien.spec of Package alien

#
# spec file for package alien
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           alien
Version:        8.95
Release:        0
Summary:        A Perl Script to Convert Packages
License:        GPL-2.0+
Group:          System/Packages
Url:            http://joeyh.name/code/alien/
Source:         %{name}_%{version}.tar.xz
%if 0%{?suse_version} < 1120
BuildRequires:  perl-macros
%endif
%if %suse_version > 1220
BuildRequires:  debhelper
Requires:       debhelper
%else
BuildRequires:  deb
Requires:       deb
%endif
Requires:       dpkg   
Requires:       cpio
Requires:       make
Requires:       perl = %{perl_version}
Requires:       rpm
Requires:       rpm-build
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Alien allows you to convert Debian, Slackware, and Stampede Packages into Red
Hat packages, which can be installed with rpm.

It can also generate Slackware, Debian and Stampede packages.

This is a tool only suitable for binary packages.

%prep
%setup -q

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%install
%perl_make_install
make pure_install DESTDIR=%{buildroot} VARPREFIX=%{buildroot} PREFIX=%{buildroot}%{_prefix}
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README debian/changelog GPL
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man?/*

%changelog