packages: perl-App-Nopaste/perl-App-Nopaste.spec (NEW) - new, created with ...
glen
glen at pld-linux.org
Wed Dec 21 22:02:42 CET 2011
Author: glen Date: Wed Dec 21 21:02:42 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new, created with pldcpan
---- Files affected:
packages/perl-App-Nopaste:
perl-App-Nopaste.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-App-Nopaste/perl-App-Nopaste.spec
diff -u /dev/null packages/perl-App-Nopaste/perl-App-Nopaste.spec:1.1
--- /dev/null Wed Dec 21 22:02:42 2011
+++ packages/perl-App-Nopaste/perl-App-Nopaste.spec Wed Dec 21 22:02:37 2011
@@ -0,0 +1,80 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define pdir App
+%define pnam Nopaste
+%include /usr/lib/rpm/macros.perl
+Summary: App::Nopaste - easy access to any pastebin
+Name: perl-App-Nopaste
+Version: 0.33
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/App/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 5a4004727f8fc02336b8f8de66c226c8
+URL: http://search.cpan.org/dist/App-Nopaste/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+#BuildRequires: perl(Browser::Open)
+#BuildRequires: perl(Clipboard)
+#BuildRequires: perl(Config::GitLike) >= 0.00
+#BuildRequires: perl(MooseX::Getopt) >= 0.17
+#BuildRequires: perl(WWW::Pastebin::PastebinCom::Create)
+BuildRequires: perl-Class-Load
+BuildRequires: perl-Moose >= 0.74
+BuildRequires: perl-URI
+BuildRequires: perl-WWW-Mechanize
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pastebins (also known as nopaste sites) let you post text, usually
+code, for public viewing. They're used a lot in IRC channels to show
+code that would normally be too long to give directly in the channel
+(hence the name nopaste).
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' bin/nopaste
+
+%build
+%{__perl} Makefile.PL --skipdeps \
+ 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
+%{perl_vendorlib}/App/*.pm
+%{perl_vendorlib}/App/Nopaste
+%{_mandir}/man3/*
+
+#files -n nopaste
+%{_bindir}/nopaste
+%{_mandir}/man1/nopaste.1p*
+
+%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/21 21:02:37 glen
+- new, created with pldcpan
================================================================
More information about the pld-cvs-commit
mailing list