Name: perl-File-DesktopEntry Version: 0.04 Release: 0%{?dist} License: CHECK(GPL+ or Artistic) Group: Development/Libraries Summary: Object to handle .desktop files Source: http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/File-DesktopEntry/File-DesktopEntry-%{version}.tar.gz Url: http://search.cpan.org/dist/File-DesktopEntry BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Carp) BuildRequires: perl(File::BaseDir) >= 0.03 BuildRequires: perl(File::Path) BuildRequires: perl(File::Spec) BuildRequires: perl(Module::Build) >= 0.24 BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Test::More) %{perl_requires} %description This module is used to work with _.desktop_ files. The format of these files is specified by the freedesktop "Desktop Entry" specification. This module can parse these files but also knows how to run the applciations defined by these files.For this module version 1.0 of the specification was used.This module was written to support the File::MimeInfo::Applications manpage. %prep %setup -q -n File-DesktopEntry-%{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-DesktopEntry.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.04-0 - initial SUSE packaging - generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8)