packages: perl-Text-Patch/perl-Text-Patch.spec (NEW) - initial, version 1.8

adwol adwol at pld-linux.org
Sat Dec 3 13:50:17 CET 2011


Author: adwol                        Date: Sat Dec  3 12:50:17 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial, version 1.8

---- Files affected:
packages/perl-Text-Patch:
   perl-Text-Patch.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-Text-Patch/perl-Text-Patch.spec
diff -u /dev/null packages/perl-Text-Patch/perl-Text-Patch.spec:1.1
--- /dev/null	Sat Dec  3 13:50:17 2011
+++ packages/perl-Text-Patch/perl-Text-Patch.spec	Sat Dec  3 13:50:11 2011
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+
+%define		pdir	Text
+%define		pnam	Patch
+%include	/usr/lib/rpm/macros.perl
+Summary:	Text::Patch - Patches text with given patch
+Name:		perl-%{pdir}-%{pnam}
+Version:	1.8
+Release:	1
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	ad5e453d5ba3b48afd8163114d0fee1c
+URL:		http://search.cpan.org/dist/%{pdir}-%{pnam}/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Text-Diff
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Text::Patch combines source text with given diff (difference) data.
+Diff data is produced by Text::Diff module or by the standard diff
+utility (man diff, see -u option).
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__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 ChangeLog README
+%{perl_vendorlib}/%{pdir}/*.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  2011/12/03 12:50:11  adwol
+- initial, version 1.8
+
================================================================


More information about the pld-cvs-commit mailing list