forked from pool/perl-File-BaseDir
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-BaseDir?expand=0&rev=1
85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
|
|
Name: perl-File-BaseDir
|
|
Version: 0.03
|
|
Release: 0%{?dist}
|
|
License: CHECK(GPL+ or Artistic)
|
|
Group: Development/Libraries
|
|
Summary: Use the Freedesktop.org base directory specification
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/File-BaseDir-%{version}.tar.gz
|
|
Url: http://search.cpan.org/dist/File-BaseDir
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Requires: perl = %(eval "`%{__perl} -V:version`"; echo $version)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(Module::Build) >= 0.24
|
|
BuildRequires: perl(Module::Build::Compat)
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
|
%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.This module
|
|
forked from the File::MimeInfo manpage.This module follows version 0.6
|
|
of BaseDir specification.
|
|
|
|
|
|
|
|
%prep
|
|
%setup -q -n File-BaseDir-%{version}
|
|
|
|
%build
|
|
if [ -f Build.PL ]; then
|
|
%{__perl} Build.PL --installdirs vendor
|
|
else
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
fi
|
|
if [ -f Build.PL ]; then
|
|
./Build build flags=%{?_smp_mflags}
|
|
else
|
|
make %{?_smp_mflags}
|
|
fi
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
if [ -f Build.PL ]; then
|
|
./Build pure_install --destdir %{buildroot}
|
|
else
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
fi
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man3/ %{buildroot}/usr/bin
|
|
touch %{buildroot}/%{_mandir}/man3/File-BaseDir.3pm.gz
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
if [ -f Build.PL ]; then
|
|
./Build test
|
|
else
|
|
make test
|
|
fi
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man*/*.*
|
|
|
|
%changelog
|
|
* Sat Jun 26 2010 %{packager} 0.03-0
|
|
- initial SUSE packaging
|
|
- generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8)
|
|
|