LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File alien.spec of Package alien (Project system:packagemanager)

#
# spec file for package alien
#
# Copyright (c) 2012 SUSE LINUX Products 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.88
Release:        0
License:        GPL-2.0+
Summary:        Perl Script to Convert Packages
Url:            http://kitenet.net/programs/alien/
Group:          System/Packages
Source:         http://ftp.de.debian.org/debian/pool/main/a/alien/%{name}_%{version}.tar.gz
Patch1:         alien-strip-tilde-from-version.patch
BuildRequires:  deb
BuildRequires:  debhelper
Requires:       cpio
Requires:       deb
Requires:       make
Requires:       perl = %{perl_version}
Requires:       rpm
%if 0%{?suse_version} >= 1220
Requires:       rpm-build
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Experimental Perl script to convert software packages. The following
formats are supported: deb (Debian), rpm (Red Hat), and tgz (Slackware).

%prep
%setup -q -n %{name}
%patch1 -p1

%build
dh_testdir
perl Makefile.PL
make

%install
%perl_make_install
make PREFIX=%{buildroot}%{_prefix} VARPREFIX=%{buildroot} extra_install
%perl_process_packlist

%files
%defattr(-,root,root)
%doc GPL README TODO gendiff.txt debian/changelog
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Alien
%{perl_vendorlib}/Alien
%{_bindir}/alien
%{_datadir}/alien
%{_localstatedir}/lib/alien

%changelog