up to 1.0.0 auto/th/megacmd-1.0.0-1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 8 Nov 2018 18:27:59 +0000 (20:27 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 8 Nov 2018 18:28:34 +0000 (20:28 +0200)
megacmd.spec

index d48e545..779f876 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Command Line Interactive and Scriptable Application to access MEGA
 Name:          megacmd
 Version:       1.0.0
 Release:       1
-License:       Freeware
+License:       BSD-like
 Group:         Applications
 Source0:       https://github.com/meganz/MEGAcmd/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 8af6215ce167b15b92f8683c4c1caa7c
@@ -10,6 +10,7 @@ Source1:      https://github.com/meganz/sdk/archive/f3a3b810/mega-sdk-v3.4.0-216-gf3a
 # Source1-md5: dccc60aa2ac5680a719b74bc0968984f
 Patch0:                libtool.patch
 URL:           https://mega.nz/
+Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -17,6 +18,25 @@ MEGAcmd provides non UI access to MEGA services. It intends to offer
 all the functionality with your MEGA account via commands. It features
 synchronization and backup of local folders into your MEGA account.
 
+%package libs
+Summary:       Shared libmega library
+Group:         Libraries
+
+%description libs
+Shared libmega library.
+
+%package devel
+Summary:       Header files for %{name} library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki %{name}
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
 %prep
 %setup -q -n MEGAcmd-%{version} -a1
 mv sdk-*/* sdk
@@ -33,10 +53,88 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmega.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc README.md CREDITS.md LICENCE.md
-%attr(755,root,root) %{_bindir}/%{name}
+%doc README.md LICENSE
+/etc/bash_completion.d/megacmd_completion.sh
+%attr(755,root,root) %{_bindir}/mega-attr
+%attr(755,root,root) %{_bindir}/mega-backup
+%attr(755,root,root) %{_bindir}/mega-cancel
+%attr(755,root,root) %{_bindir}/mega-cd
+%attr(755,root,root) %{_bindir}/mega-cmd
+%attr(755,root,root) %{_bindir}/mega-cmd-server
+%attr(755,root,root) %{_bindir}/mega-confirm
+%attr(755,root,root) %{_bindir}/mega-confirmcancel
+%attr(755,root,root) %{_bindir}/mega-cp
+%attr(755,root,root) %{_bindir}/mega-debug
+%attr(755,root,root) %{_bindir}/mega-deleteversions
+%attr(755,root,root) %{_bindir}/mega-du
+%attr(755,root,root) %{_bindir}/mega-errorcode
+%attr(755,root,root) %{_bindir}/mega-exclude
+%attr(755,root,root) %{_bindir}/mega-exec
+%attr(755,root,root) %{_bindir}/mega-export
+%attr(755,root,root) %{_bindir}/mega-find
+%attr(755,root,root) %{_bindir}/mega-ftp
+%attr(755,root,root) %{_bindir}/mega-get
+%attr(755,root,root) %{_bindir}/mega-graphics
+%attr(755,root,root) %{_bindir}/mega-help
+%attr(755,root,root) %{_bindir}/mega-https
+%attr(755,root,root) %{_bindir}/mega-import
+%attr(755,root,root) %{_bindir}/mega-invite
+%attr(755,root,root) %{_bindir}/mega-ipc
+%attr(755,root,root) %{_bindir}/mega-killsession
+%attr(755,root,root) %{_bindir}/mega-lcd
+%attr(755,root,root) %{_bindir}/mega-log
+%attr(755,root,root) %{_bindir}/mega-login
+%attr(755,root,root) %{_bindir}/mega-logout
+%attr(755,root,root) %{_bindir}/mega-lpwd
+%attr(755,root,root) %{_bindir}/mega-ls
+%attr(755,root,root) %{_bindir}/mega-mkdir
+%attr(755,root,root) %{_bindir}/mega-mount
+%attr(755,root,root) %{_bindir}/mega-mv
+%attr(755,root,root) %{_bindir}/mega-passwd
+%attr(755,root,root) %{_bindir}/mega-permissions
+%attr(755,root,root) %{_bindir}/mega-preview
+%attr(755,root,root) %{_bindir}/mega-put
+%attr(755,root,root) %{_bindir}/mega-pwd
+%attr(755,root,root) %{_bindir}/mega-quit
+%attr(755,root,root) %{_bindir}/mega-reload
+%attr(755,root,root) %{_bindir}/mega-rm
+%attr(755,root,root) %{_bindir}/mega-session
+%attr(755,root,root) %{_bindir}/mega-share
+%attr(755,root,root) %{_bindir}/mega-showpcr
+%attr(755,root,root) %{_bindir}/mega-signup
+%attr(755,root,root) %{_bindir}/mega-speedlimit
+%attr(755,root,root) %{_bindir}/mega-sync
+%attr(755,root,root) %{_bindir}/mega-thumbnail
+%attr(755,root,root) %{_bindir}/mega-transfers
+%attr(755,root,root) %{_bindir}/mega-userattr
+%attr(755,root,root) %{_bindir}/mega-users
+%attr(755,root,root) %{_bindir}/mega-version
+%attr(755,root,root) %{_bindir}/mega-webdav
+%attr(755,root,root) %{_bindir}/mega-whoami
+%attr(755,root,root) %{_bindir}/megacli
+%attr(755,root,root) %{_bindir}/megafuse
+%attr(755,root,root) %{_bindir}/megasimplesync
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmega.so.30401
+%attr(755,root,root) %ghost %{_libdir}/libmega.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/mega
+%{_includedir}/mega.h
+%{_includedir}/megaapi.h
+%{_includedir}/megaapi_impl.h
+%{_libdir}/libmega.so
+%{_pkgconfigdir}/libmega.pc
This page took 0.253435 seconds and 4 git commands to generate.