2020-03-19 08:45:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package libbaseencode
|
|
|
|
#
|
2023-01-05 08:37:55 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-03-19 08:45:18 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-12-30 14:29:42 +00:00
|
|
|
%define libsoname %{name}1
|
2020-04-23 12:52:14 +00:00
|
|
|
%if 0%{?fedora_version}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
2020-03-19 08:45:18 +00:00
|
|
|
Name: libbaseencode
|
2023-01-05 08:37:55 +00:00
|
|
|
Version: 1.0.15
|
2020-03-19 08:45:18 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Base32 and base64 encoding library
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://github.com/paolostivanin/%{name}
|
2021-12-30 14:29:42 +00:00
|
|
|
Source0: https://github.com/paolostivanin/%{name}/archive/v%{version}.tar.gz
|
|
|
|
Source1: https://github.com/paolostivanin/%{name}/releases/download/v%{version}/v%{version}.tar.gz.asc
|
2020-03-19 08:45:18 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{name} is a small library written C that provides APIs for encoding and decoding
|
|
|
|
text using either base32 or base64.
|
|
|
|
This library was implemented following both standard from the RFC-4648
|
|
|
|
|
|
|
|
%package -n %{libsoname}
|
|
|
|
Summary: Base32 and base64 encoding library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libsoname}
|
|
|
|
Library written in C for encoding and decoding data using base32 or base64
|
|
|
|
according to RFC-4648
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libsoname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Pkg-config and header files for developing applications that use %{name}
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2021-05-04 05:30:19 +00:00
|
|
|
%cmake
|
|
|
|
%cmake_build
|
2020-03-19 08:45:18 +00:00
|
|
|
|
|
|
|
%install
|
2021-05-04 05:30:19 +00:00
|
|
|
%cmake_install
|
2020-03-19 08:45:18 +00:00
|
|
|
|
2021-05-04 05:30:19 +00:00
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
2020-03-19 08:45:18 +00:00
|
|
|
|
|
|
|
%files -n %{libsoname}
|
2021-05-04 05:30:19 +00:00
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/%{name}.so.*
|
2020-03-19 08:45:18 +00:00
|
|
|
|
|
|
|
%files devel
|
2021-05-04 05:30:19 +00:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_includedir}/baseencode.h
|
2020-03-19 08:45:18 +00:00
|
|
|
%{_libdir}/pkgconfig/baseencode.pc
|
|
|
|
|
|
|
|
%changelog
|