# # Conditional build: %bcond_without tests # unit tests # %define pdir Alien %define pnam Libxml2 Summary: Alien::Libxml2 - provide the C libxml2 library Summary(pl.UTF-8): Alien::Libxml2 - dostarczenie biblioteki C libxml2 Name: perl-Alien-Libxml2 Version: 0.19 Release: 2 # same as perl 5 License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Alien/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 54ef82ddf7641279a72f216e405f9a5e URL: https://metacpan.org/dist/Alien-Libxml2 BuildRequires: libxml2-devel >= 1:2.9.5 BuildRequires: perl-Alien-Base >= 2.37 BuildRequires: perl-Alien-Build >= 2.37 BuildRequires: perl-Alien-Build-Plugin-Download-GitLab BuildRequires: perl-ExtUtils-MakeMaker >= 6.52 BuildRequires: perl-Test-Alien BuildRequires: perl-Test2-Suite >= 0.000060 BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.745 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _enable_debug_packages 0 %description This module provides libxml2 for other modules to use. %description -l pl.UTF-8 Ten pakiet udostępnia bibliotekę libxml2 do użycia przez inne moduły. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes %{perl_vendorarch}/Alien/Libxml2.pm %{perl_vendorarch}/Alien/Libxml2 %dir %{perl_vendorarch}/auto/Alien/Libxml2 %{perl_vendorarch}/auto/Alien/Libxml2/Libxml2.txt %{perl_vendorarch}/auto/share/dist/Alien-Libxml2 %{_mandir}/man3/Alien::Libxml2.3pm*