5351def1b1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Acme-Damn?expand=0&rev=10
57 lines
1.2 KiB
RPMSpec
57 lines
1.2 KiB
RPMSpec
Name: perl-Acme-Damn
|
|
# List of additional build dependencies
|
|
#BuildRequires: gcc-c++ libxml2-devel
|
|
Version: 0.04
|
|
Release: 1
|
|
License: Artistic license
|
|
Source: Acme-Damn-0.04.tar.gz
|
|
Group: Development/Libraries/Perl
|
|
Summary: Acme::Damn - 'Unbless' Perl objects
|
|
Requires: perl = %{perl_version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
|
|
%description
|
|
Acme::Damn provides a single routine, damn(), which takes a blessed
|
|
reference (a Perl object), and unblesses it, to return the original
|
|
reference. I can't think of any reason why you might want to do this,
|
|
but just because it's of no use doesn't mean that you shouldn't be
|
|
able to do it.
|
|
|
|
|
|
%prep
|
|
%setup -q -n Acme-Damn-%version
|
|
|
|
%build
|
|
|
|
perl Makefile.PL
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%buildroot install_vendor
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
# Write a proper %%files section and remove these two commands and
|
|
# the '-f filelist' option to %%files
|
|
echo '%%defattr(-,root,root)' >filelist
|
|
find %buildroot -type f -printf '/%%P*\n' >>filelist
|
|
|
|
|
|
%clean
|
|
rm -rf %buildroot
|
|
|
|
%files -f filelist
|
|
%defattr(-,root,root)
|
|
%dir %{perl_vendorarch}/Acme
|
|
%dir %{perl_vendorarch}/auto/Acme
|
|
%dir %{perl_vendorarch}/auto/Acme/Damn
|
|
|
|
|
|
%changelog -n %{name}
|
|
|