perl-File-BaseDir/perl-File-BaseDir.spec
2020-01-12 16:19:14 +08:00

54 lines
1.7 KiB
RPMSpec

Name: perl-File-BaseDir
Version: 0.08
Release: 4
Summary: Use the Freedesktop.org base directory specification
License: GPL+ or Artistic
URL: https://metacpan.org/release/File-BaseDir
Source0: https://cpan.metacpan.org/authors/id/K/KI/KIMRYAN/File-BaseDir-%{version}.tar.gz
BuildArch: noarch
BuildRequires: findutils make perl-interpreter perl-generators perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build::Compat) perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) xdg-user-dirs
Provides: perl-File-UserDirs = %{version}-%{release}
Provides: perl(File::UserDirs) = %{version}-%{release}
Obsoletes: perl-File-UserDirs < %{version}-%{release}
Obsoletes: perl(File::UserDirs) < %{version}-%{release}
%description
This module can be used to find directories and files as specified by the Freedesktop.org Base
Directory Specification. This specifications gives a mechanism to locate directories for
configuration, application data and cache data. It is suggested that desktop applications for
e.g. the Gnome, KDE or Xfce platforms follow this layout. However, the same layout can just
as well be used for non-GUI applications.
%package_help
%prep
%autosetup -n File-BaseDir-%{version} -p1
%build
perl Makefile.PL NO_PACKLIST=1 INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorlib}/*
%files help
%{_mandir}/man3/*
%changelog
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.08-4
- Package init