File alien.spec of Package alien
Summary: Install Debian, Slackware, and Stampede packages with rpm
Name: alien
Packager: Joey Hess <joey@kitenet.net>
Version: 8.95
Release: 1
Source: alien_8.95.tar.xz
License: GPL-3.0-or-later
Group: Development/Tools/Other
Buildroot: /tmp/alien-8.95.build
Requires: perl
Requires: debhelper
BuildRequires: perl
#BuildArchitectures: 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 -n alien-8.95
rm -rf /tmp/alien-8.95.build
%build
perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr
make
%install
make pure_install VARPREFIX=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT/usr/lib -name .packlist -delete
mv $RPM_BUILD_ROOT/usr/lib/perl5/site_perl $RPM_BUILD_ROOT/usr/lib/perl5/vendor_perl
find $RPM_BUILD_ROOT -not -type d -printf "/%%P\n" | \
sed '/\/man\//s/$/\*/' > manifest
(
cd $RPM_BUILD_ROOT
find ./usr/lib -type d -exec echo '%dir '{} \;
) | sed 's%\./%/%' | fgrep /perl >> manifest
%files -f manifest
%defattr(-,root,root)
%doc debian/changelog GPL README alien.lsm