diff options
author | Remi Collet <remi@remirepo.net> | 2019-02-26 09:34:41 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-02-26 09:34:41 +0100 |
commit | 2985b78925deddac8321af3a00f22b1ea8ade231 (patch) | |
tree | 3e47a7cc3f8dfd2b64e194444d65bd1afde25a83 |
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | base58.spec | 97 |
3 files changed, 109 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc9aa8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +clog +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/base58.spec b/base58.spec new file mode 100644 index 0000000..7070a3d --- /dev/null +++ b/base58.spec @@ -0,0 +1,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 |