[Bug 1079751] Review Request: perl-Date-Calc-XS - XS wrapper and C library plug-in for Date::Calc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1079751



--- Comment #11 from David Dick <ddick@xxxxxxxx> ---
Hi Sven,

The following is a patch summarizing the remaining work for this bug.

--- perl-Date-Calc-XS.spec      2014-04-21 23:42:28.000000000 +1000
+++ perl-Date-Calc-XS.proposed  2014-05-14 21:35:30.415071204 +1000
@@ -6,27 +6,43 @@
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Date-Calc-XS/
 Source0:       
http://www.cpan.org/modules/by-module/Date/Date-Calc-XS-%{version}.tar.gz
+# glibc-common contains the iconv binary
+BuildRequires:  glibc-common
 BuildRequires:  perl
+BuildRequires:  perl(Bit::Vector)
+BuildRequires:  perl(bytes)
+BuildRequires:  perl(Config)
+BuildRequires:  perl(Date::Calc::Object)
+BuildRequires:  perl(Date::Calendar)
+BuildRequires:  perl(Date::Calendar::Profiles)
+BuildRequires:  perl(Date::Calendar::Year)
+BuildRequires:  perl(DynaLoader)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(Test::More) >= 0.47
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Carp::Clan) >= 6.01
 BuildRequires:  perl(Bit::Vector) >= 7.1
 BuildRequires:  perl(Date::Calc) >= 6.3
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo
$version))

 %description
 Date::Calc::XS is a XS wrapper and C library plug-in for Date::Calc

 %prep
 %setup -q -n Date-Calc-XS-%{version}
+iconv --from=ISO-8859-1 --to=UTF-8 CREDITS.txt >CREDITS.fixed
+mv CREDITS.fixed CREDITS.txt

 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 make %{?_smp_mflags}

 %install
 make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
 %{_fixperms} $RPM_BUILD_ROOT/*

 %check

Hope this helps.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]