forked from pool/megatools
- add keyring OBS-URL: https://build.opensuse.org/request/show/337423 OBS-URL: https://build.opensuse.org/package/show/network:utilities/megatools?expand=0&rev=2
89 lines
2.6 KiB
RPMSpec
89 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package megatools
|
|
#
|
|
# Copyright (c) 2015 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/
|
|
#
|
|
|
|
|
|
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
|
Name: megatools
|
|
Version: 1.9.95
|
|
Release: 0
|
|
Summary: CLI client for mega.co.nz
|
|
License: GPL-2.0
|
|
Group: Productivity/Networking/File-Sharing
|
|
Url: http://megatools.megous.com
|
|
Source0: http://megatools.megous.com/builds/%{name}-%{version}.tar.gz
|
|
Source1: http://megatools.megous.com/builds/%{name}-%{version}.tar.gz.asc
|
|
Source2: %{name}.keyring
|
|
BuildRequires: fuse-devel
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: pcre-devel
|
|
BuildRequires: glib2-devel >= 2.32.0
|
|
Requires: curl
|
|
Requires: fuse
|
|
Requires: glib-networking >= 2.32.0
|
|
Requires: openssl
|
|
|
|
%description -n %{name}
|
|
Megatools allow you to copy individual files as well as entire directory trees
|
|
to and from the cloud. You can also perform streaming downloads for example to
|
|
preview videos and audio files, without needing to download the entire file.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Tools/Other
|
|
Requires: %{name} = %{version}
|
|
Requires: glib2-devel >= 2.32.0
|
|
Requires: libcurl-devel
|
|
Requires: libopenssl-devel
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for developing
|
|
applications that use %{name}
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --prefix=%{_prefix}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
rm -vf %{buildroot}%{_libdir}/libmega*.{a,la}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files -n %{name}
|
|
%defattr(-,root,root)
|
|
%{_bindir}/mega*
|
|
%{_datadir}/doc/%{name}
|
|
%{_libdir}/libmega.so.*
|
|
%{_mandir}/man1/mega*
|
|
%{_mandir}/man5/mega*
|
|
%{_mandir}/man7/mega*
|
|
%exclude %{_datadir}/doc/%{name}/INSTALL
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/mega
|
|
%{_libdir}/libmega.so
|
|
%{_libdir}/pkgconfig/libmega.pc
|
|
|
|
%changelog
|