[meego-commits] 6795: Changes to Trunk/perl-Error
Peter Zhu
peter.j.zhu at intel.com
Wed Aug 18 08:54:15 UTC 2010
Hi,
I have made the following changes to perl-Error in project Trunk. Please review and accept ASAP.
Thank You,
Peter Zhu
[This message was auto-generated]
---
Request #6795:
submit: Trunk:Testing/perl-Error(r4) -> Trunk/perl-Error
Message:
Move to Trunk
State: new 2010-08-17T20:44:52 peter
Comment: None
changes files:
--------------
--- perl-Error.changes
+++ perl-Error.changes
@@ -0,0 +1,3 @@
+* Fri Aug 6 2010 Quanxian Wang <quanxian.wang at intel.com> - 0.17015
+- Spec to Yaml
+
new:
----
perl-Error.yaml
spec files:
-----------
--- perl-Error.spec
+++ perl-Error.spec
@@ -1,17 +1,25 @@
-#specfile originally created for Fedora, modified for Moblin Linux
+#
+# Do not Edit! Generated by:
+# spectacle version 0.18
+#
+# >> macros
+# << macros
+
Name: perl-Error
+Summary: Error/exception handling in an OO-ish way
Version: 0.17015
Release: 2
-Summary: Error/exception handling in an OO-ish way
-License: GPL+ or Artistic
Group: Development/Libraries
+License: GPL+ or Artistic
+BuildArch: noarch
URL: http://search.cpan.org/dist/Error/
Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-%{version}.tar.gz
-BuildArch: noarch
+Source100: perl-Error.yaml
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
%description
The Error package provides two interfaces. Firstly Error provides a
@@ -19,30 +27,61 @@
for errors/exceptions that can either be thrown, for subsequent catch, or
can simply be recorded.
+
+
+
%prep
%setup -q -n Error-%{version}
+# >> setup
+# << setup
+
%build
-%{__perl} Build.PL installdirs=vendor
+# >> build pre
+# << build pre
+
+if test -f Makefile.PL; then
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?jobs:-j%jobs}
+else
+%{__perl} Build.PL --installdirs vendor
./Build
+fi
+# >> build post
+# << build post
%install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
+# >> install pre
+# << install pre
+if test -f Makefile.PL; then
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+else
+./Build install --installdirs vendor
+fi
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
+%{_fixperms} %{buildroot}/*
+
+# >> install post
+# << install post
+%check
+# >> check
+make test
+# << check
+
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-#%{_fixperms} $RPM_BUILD_ROOT/*
-%check
-./Build test
-%clean
-rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
+# >> files
%doc ChangeLog README examples/
%{perl_vendorlib}/*
%doc %{_mandir}/man3/*
+# << files
+
other changes:
--------------
++++++ perl-Error.yaml (new)
--- perl-Error.yaml
+++ perl-Error.yaml
+Name: perl-Error
+Summary: Error/exception handling in an OO-ish way
+Version: 0.17015
+Release: 2
+Group: Development/Libraries
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Error/
+Sources:
+ - http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-%{version}.tar.gz
+Description: |
+ The Error package provides two interfaces. Firstly Error provides a
+ procedural interface to exception handling. Secondly Error is a base class
+ for errors/exceptions that can either be thrown, for subsequent catch, or
+ can simply be recorded.
+
+PkgBR:
+ - perl(Module::Build)
+ - perl(Test::Pod)
+ - perl(Test::Pod::Coverage)
+Configure: none
+Builder: perl
+BuildArch: noarch
+Check: yes
More information about the MeeGo-commits
mailing list