name = perl-Digest-SHA1
version = 2.13
-release = 1
+release = 7
thisapp = Digest-SHA1-%{version}
groups = Development/Libraries
build
requires
perl(ExtUtils::MakeMaker)
+ perl(ExtUtils::ParseXS)
+ perl(Test::More)
end
build
make %{PARALLELISMFLAGS}
end
- make_install_targets = pure_install PERL_INSTALL_ROOT=%{BUILDROOT}
+ test
+ make test
+ end
+
+ make_install_targets = \
+ pure_install
+
+ install_cmds
+ # Set correct library permissions.
+ find %{BUILDROOT}%{libdir} -type f -iname "*.so" \
+ -exec chmod 755 {} \;
+ end
end
packages
package %{name}
+ requires
+ perl(:MODULE_COMPAT_%{perl_version})
+ end
+ end
package %{name}-debuginfo
template DEBUGINFO