Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:snagview:perl
perl-Perl-OSType
perl-Perl-OSType.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Perl-OSType.spec of Package perl-Perl-OSType
# # spec file for module Perl::OSType # #SuSe specific Part %if %{?sles_version:1}0 %define module_dir /usr/lib/perl5/ %define man3_dir /usr/share/man/man3/ %define auto_dir /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto #suse prefers to install additional modules in a subdir (below module_dir) %define sub_dir /5.10.0/ %endif %if %{?centos_version:1}0 %define init 1 BuildRequires: perl-ExtUtils-MakeMaker perl-devel perl-version-new perl-IO-Compress requires: perl-version-new perl-IO-Compress %define module_dir /usr/share/perl5/ %define sub_dir / %define man3_dir /usr/share/man/man3 %define auto_dir /usr/lib64/perl5/vendor_perl/auto/ %endif #RedHat specific Part %if %{?rhel_version:1}0 %define module_dir /usr/share/perl5 %define man3_dir /usr/share/man/man3 %define auto_dir /usr/lib64/perl5/vendor_perl/auto/ #no subdir for redhat %define sub_dir / %endif #Fedora specific Part %if %{?fedora_version:1}0 %endif #all Distros %define module_name Perl-OSType %define module_version 1.007 Name: perl-%{module_name} Version: %{module_version} Release: 0 License: This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Summary: Map Perl operating system names to generic types Url: https://metacpan.org/pod/Perl::OSType Group: perl/modules Source: %{module_name}-%{module_version}.tar.gz BuildRequires: perl-Module-Build BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Modules that provide OS-specific behaviors often need to know if the current operating system matches a more generic type of operating systems. For example, 'linux' is a type of 'Unix' operating system and so is 'freebsd' %prep cd %{_builddir} tar -xf %{_sourcedir}/%{module_name}-%{module_version}.tar.gz %build cd %{_builddir}/%{module_name}-%{module_version} perl Makefile.PL make %{?_smp_mflags} %install cd %{_builddir}/%{module_name}-%{module_version} make DESTDIR=%{buildroot} pure_vendor_install #In case the .packlist file contains the buildroot directory perl -i -pe "s{%{buildroot}}{}g" %{buildroot}%{auto_dir}/Perl/OSType/.packlist #In case perllocal is created. The package should not own perllocal.pod. Its meant to be appendet to when installing a module locally if [ -f %{buildroot}/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/perllocal.pod]; then rm %{buildroot}/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/perllocal.pod fi %files %defattr(-,root,root) %dir %{auto_dir}/Perl/ %dir %{auto_dir}/Perl/OSType/ %dir %{module_dir}/vendor_perl%{sub_dir}/Perl %{module_dir}/vendor_perl%{sub_dir}/Perl/OSType.pm %{auto_dir}/Perl/OSType/.packlist %{man3_dir}/Perl::OSType.3pm.gz
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor