-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkraken.spec
53 lines (40 loc) · 1.35 KB
/
kraken.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%define rname Finance-Bank-Kraken
Name: perl-%{rname}
Version: 0.4
Release: 1%{?dist}
Summary: an api.kraken.com connector module
License: LGPL
Group: Development/Libraries
URL: http://search.cpan.org/dist/%{rname}/
Source0: http://search.cpan.org/CPAN/authors/id/P/PH/PHILIPPE/%{rname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(HTTP::Request)
Requires: perl(LWP::UserAgent)
Requires: perl(MIME::Base64)
Requires: perl(Digest::SHA)
BuildRequires: make
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Simple)
%description
This module allows to connect to the api of the bitcoin market Kraken.
Please see https://www.kraken.com/help/api for a catalog of api methods.
%prep
%setup -q -n %{rname}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
[ '%{buildroot}' != '/' ] && rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -depth -type d -empty -delete
%{_fixperms} %{buildroot}/*
%files
%license COPYING
%doc README
%{perl_vendorlib}/Finance/Bank/Kraken.pm
%{_mandir}/man3/Finance::Bank::Kraken.3pm*