SPECS: perl-File-DesktopEntry.spec (NEW) - based on perl template

wrobell wrobell at pld-linux.org
Tue Aug 1 15:43:13 CEST 2006


Author: wrobell                      Date: Tue Aug  1 13:43:13 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- based on perl template

---- Files affected:
SPECS:
   perl-File-DesktopEntry.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-File-DesktopEntry.spec
diff -u /dev/null SPECS/perl-File-DesktopEntry.spec:1.1
--- /dev/null	Tue Aug  1 15:43:13 2006
+++ SPECS/perl-File-DesktopEntry.spec	Tue Aug  1 15:43:07 2006
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+#
+# 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/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/08/01 13:43:07  wrobell
+- based on perl template
+
================================================================


More information about the pld-cvs-commit mailing list