File megasync-sdk.spec of Package megasync-sdk
#
# spec file for package megasync-sdk
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define _sover 30608
Name: megasync-sdk
Version: v3.6.8~git0.93cc57d75
Release: 0
Summary: MEGA C++ SDK
License: BSD-2-Clause and BSD-3-Clause
Group: Productivity/Networking/File-Sharing
Url: https://github.com/meganz/sdk
Source: https://github.com/meganz/sdk/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: freeimage-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libuv)
BuildRequires: pkgconfig(libraw)
BuildRequires: pkgconfig(libzen)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(libcares)
BuildRequires: pkgconfig(readline)
BuildRequires: pkgconfig(libsodium)
BuildRequires: pkgconfig(cryptopp) >= 5.6.5
Provides: MEGAsync-sdk = %{version}-%{release}
Obsoletes: MEGAsync-sdk < %{version}-%{release}
%description
MEGA SDK - Client Access Engine.
%package -n libmega%{_sover}
Summary: MEGA C++ SDK library
Group: System/Libraries
%description -n libmega%{_sover}
MEGA SDK - Client Access Engine.
%package devel
Summary: Development files from MEGAsync
Group: Development/Languages/C and C++
Requires: libmega%{_sover} = %{version}
%description devel
This package contains development libraries and headers for %{name}.
%prep
%autosetup
find {CREDITS,README}.md -type f -perm /111 -exec chmod 644 {} \;
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la
%post -n libmega%{_sover} -p /sbin/ldconfig
%postun -n libmega%{_sover} -p /sbin/ldconfig
%files -n libmega%{_sover}
%license LICENSE
%doc README.md CREDITS.md
%{_bindir}/*
%{_libdir}/*.so.*
%files devel
%{_includedir}/
%{_includedir}/mega/
%{_libdir}/*.so
%{_libdir}/pkgconfig/
%changelog