From: wrobell Date: Tue, 1 Aug 2006 13:43:07 +0000 (+0000) Subject: - based on perl template X-Git-Tag: auto/th/perl-File-DesktopEntry-0_02-1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=bac5394ed065dddbfa64d6d40f8d962ba22bc018;p=packages%2Fperl-File-DesktopEntry.git - based on perl template Changed files: perl-File-DesktopEntry.spec -> 1.1 --- bac5394ed065dddbfa64d6d40f8d962ba22bc018 diff --git a/perl-File-DesktopEntry.spec b/perl-File-DesktopEntry.spec new file mode 100644 index 0000000..dcf450e --- /dev/null +++ b/perl-File-DesktopEntry.spec @@ -0,0 +1,51 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir File +%define pnam DesktopEntry +Summary: Desktop files module +Name: perl-File-DesktopEntry +Version: 0.02 +Release: 1 +License: Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 9c97efa062c04bcb86a0a6a3707355d1 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _noautoreq 'perl(anything_fake_or_conditional)' + +%description +This module is used to work with .desktop files. The format of these files +is specified by the freedesktop "Desktp Entry" specification. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +# Don't use pipes here: they generally don't work. Apply a patch. +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor + +%{__make} +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/File/DesktopEntry.pm +%{_mandir}/man3/*