File alien.spec of Package alien

#
# spec file for package alien
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#

%global pkg_name    alien
%global pkg_version 8.95

Name:           %{pkg_name}
Version:        %{pkg_version}
Release:        3%{?dist}
Summary:        A program that converts that converts between linux packages 
Group:          Applications/System
License:        GPLv2+
URL:            https://sourceforge.net/projects/alien-pkg-convert/
Source0:        http://downloads.sourceforge.net/alien-pkg-convert/%{name}_%{version}.tar.xz

# BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       dpkg, debhelper, rpm-build
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
A program that converts that converts between linux packages

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%{__perl} Makefile.PL \
    INSTALLDIRS=vendor \
    VARPREFIX=%{buildroot}

%make_build

%install
%make_install \
    VARPREFIX=%{buildroot} \
    PREFIX=%{_prefix}

find %{buildroot} -type d -depth -path "*/auto*" -empty -delete
if [ "%{perl_vendorarch}" != "%{perl_vendorlib}" ]; then
    rm -rf %{buildroot}%{perl_vendorarch}
fi

find %{buildroot} -name "perllocal.pod" -delete
%{__rm} -rf %{buildroot}%{perl_vendorarch}/auto/Alien
chmod 0755 %{buildroot}%{_bindir}/alien

%files
%license GPL
%doc README debian/changelog
%{_bindir}/alien
%{perl_vendorlib}/*
%{_mandir}/man*/*

%changelog
openSUSE Build Service is sponsored by