blob: 7070a3d039d7017b9e441d1a2afa4e1a724af8e6 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# remirepo/fedora spec file for base58
#
# Copyright (c) 2019 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global gh_commit 16c2527608053d2cc2fa05b2e3b5ae96065d1410
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner luke-jr
%global gh_project libbase58
%global libname libbase58
%global soname 0
Name: base58
Summary: Bitcoin's base58 encoding
Version: 0.1.4
Release: 1%{?dist}
License: MIT
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
BuildRequires: gcc
BuildRequires: autoconf >= 2.59
BuildRequires: automake
BuildRequires: libtool
BuildRequires: libgcrypt-devel >= 1.2.0
BuildRequires: vim-common
Requires: %{libname}%{?_isa} = %{version}-%{release}
%description
Bitcoin's base58 encoding.
%package -n %{libname}
Summary: Library for Bitcoin's base58 encoding
%description -n %{libname}
This package contains the header files and development libraries
for %{libname}.
%package -n %{libname}-devel
Summary: Header files and development libraries for %{libname}
Requires: %{libname}%{?_isa} = %{version}-%{release}
%description -n %{libname}-devel
This package contains the header files and development libraries
for %{libname}.
%prep
%setup -q -n %{gh_project}-%{gh_commit}
./autogen.sh
%build
%configure
make %{_smp_mflags}
%install
make install DESTDIR=%{buildroot} INSTALL='install -p'
rm %{buildroot}%{_libdir}/%{libname}.a
rm %{buildroot}%{_libdir}/%{libname}.la
rm -r %{buildroot}%{_datadir}/doc/%{libname}
%check
make check
%files
%{_bindir}/%{name}
%files -n %{libname}
%{!?_licensedir:%global license %%doc}
%license COPYING
%{_libdir}/%{libname}.so.%{soname}*
%files -n %{libname}-devel
%doc AUTHORS README
%{_libdir}/pkgconfig/%{libname}.pc
%{_libdir}/%{libname}.so
%{_includedir}/%{libname}.h
%changelog
* Tue Feb 26 2019 Remi Collet <remi@remirepo.net> - 0.1.4-1
- initial package
|