]>
Commit | Line | Data |
---|---|---|
87cee7c0 ER |
1 | Summary: Command Line Interactive and Scriptable Application to access MEGA |
2 | Name: megacmd | |
a38be195 ER |
3 | Version: 1.0.0 |
4 | Release: 1 | |
8e4e3a4f | 5 | License: BSD-like |
87cee7c0 ER |
6 | Group: Applications |
7 | Source0: https://github.com/meganz/MEGAcmd/archive/%{version}/%{name}-%{version}.tar.gz | |
a38be195 ER |
8 | # Source0-md5: 8af6215ce167b15b92f8683c4c1caa7c |
9 | Source1: https://github.com/meganz/sdk/archive/f3a3b810/mega-sdk-v3.4.0-216-gf3a3b810.tar.gz | |
10 | # Source1-md5: dccc60aa2ac5680a719b74bc0968984f | |
8eb3178f | 11 | Patch0: libtool.patch |
87cee7c0 | 12 | URL: https://mega.nz/ |
8e4e3a4f | 13 | Requires: %{name}-libs = %{version}-%{release} |
87cee7c0 ER |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | MEGAcmd provides non UI access to MEGA services. It intends to offer | |
18 | all the functionality with your MEGA account via commands. It features | |
19 | synchronization and backup of local folders into your MEGA account. | |
20 | ||
8e4e3a4f ER |
21 | %package libs |
22 | Summary: Shared libmega library | |
23 | Group: Libraries | |
24 | ||
25 | %description libs | |
26 | Shared libmega library. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for %{name} library | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
31 | Group: Development/Libraries | |
32 | Requires: %{name}-libs = %{version}-%{release} | |
33 | ||
34 | %description devel | |
35 | Header files for %{name} library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki %{name}. | |
39 | ||
87cee7c0 ER |
40 | %prep |
41 | %setup -q -n MEGAcmd-%{version} -a1 | |
42 | mv sdk-*/* sdk | |
43 | %patch0 -p1 | |
44 | ||
45 | %build | |
46 | autoreconf -vif | |
47 | %configure \ | |
48 | --disable-silent-rules | |
49 | %{__make} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
8e4e3a4f ER |
56 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmega.la |
57 | ||
87cee7c0 ER |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
8e4e3a4f ER |
61 | %post libs -p /sbin/ldconfig |
62 | %postun libs -p /sbin/ldconfig | |
63 | ||
87cee7c0 ER |
64 | %files |
65 | %defattr(644,root,root,755) | |
8e4e3a4f ER |
66 | %doc README.md LICENSE |
67 | /etc/bash_completion.d/megacmd_completion.sh | |
68 | %attr(755,root,root) %{_bindir}/mega-attr | |
69 | %attr(755,root,root) %{_bindir}/mega-backup | |
70 | %attr(755,root,root) %{_bindir}/mega-cancel | |
71 | %attr(755,root,root) %{_bindir}/mega-cd | |
72 | %attr(755,root,root) %{_bindir}/mega-cmd | |
73 | %attr(755,root,root) %{_bindir}/mega-cmd-server | |
74 | %attr(755,root,root) %{_bindir}/mega-confirm | |
75 | %attr(755,root,root) %{_bindir}/mega-confirmcancel | |
76 | %attr(755,root,root) %{_bindir}/mega-cp | |
77 | %attr(755,root,root) %{_bindir}/mega-debug | |
78 | %attr(755,root,root) %{_bindir}/mega-deleteversions | |
79 | %attr(755,root,root) %{_bindir}/mega-du | |
80 | %attr(755,root,root) %{_bindir}/mega-errorcode | |
81 | %attr(755,root,root) %{_bindir}/mega-exclude | |
82 | %attr(755,root,root) %{_bindir}/mega-exec | |
83 | %attr(755,root,root) %{_bindir}/mega-export | |
84 | %attr(755,root,root) %{_bindir}/mega-find | |
85 | %attr(755,root,root) %{_bindir}/mega-ftp | |
86 | %attr(755,root,root) %{_bindir}/mega-get | |
87 | %attr(755,root,root) %{_bindir}/mega-graphics | |
88 | %attr(755,root,root) %{_bindir}/mega-help | |
89 | %attr(755,root,root) %{_bindir}/mega-https | |
90 | %attr(755,root,root) %{_bindir}/mega-import | |
91 | %attr(755,root,root) %{_bindir}/mega-invite | |
92 | %attr(755,root,root) %{_bindir}/mega-ipc | |
93 | %attr(755,root,root) %{_bindir}/mega-killsession | |
94 | %attr(755,root,root) %{_bindir}/mega-lcd | |
95 | %attr(755,root,root) %{_bindir}/mega-log | |
96 | %attr(755,root,root) %{_bindir}/mega-login | |
97 | %attr(755,root,root) %{_bindir}/mega-logout | |
98 | %attr(755,root,root) %{_bindir}/mega-lpwd | |
99 | %attr(755,root,root) %{_bindir}/mega-ls | |
100 | %attr(755,root,root) %{_bindir}/mega-mkdir | |
101 | %attr(755,root,root) %{_bindir}/mega-mount | |
102 | %attr(755,root,root) %{_bindir}/mega-mv | |
103 | %attr(755,root,root) %{_bindir}/mega-passwd | |
104 | %attr(755,root,root) %{_bindir}/mega-permissions | |
105 | %attr(755,root,root) %{_bindir}/mega-preview | |
106 | %attr(755,root,root) %{_bindir}/mega-put | |
107 | %attr(755,root,root) %{_bindir}/mega-pwd | |
108 | %attr(755,root,root) %{_bindir}/mega-quit | |
109 | %attr(755,root,root) %{_bindir}/mega-reload | |
110 | %attr(755,root,root) %{_bindir}/mega-rm | |
111 | %attr(755,root,root) %{_bindir}/mega-session | |
112 | %attr(755,root,root) %{_bindir}/mega-share | |
113 | %attr(755,root,root) %{_bindir}/mega-showpcr | |
114 | %attr(755,root,root) %{_bindir}/mega-signup | |
115 | %attr(755,root,root) %{_bindir}/mega-speedlimit | |
116 | %attr(755,root,root) %{_bindir}/mega-sync | |
117 | %attr(755,root,root) %{_bindir}/mega-thumbnail | |
118 | %attr(755,root,root) %{_bindir}/mega-transfers | |
119 | %attr(755,root,root) %{_bindir}/mega-userattr | |
120 | %attr(755,root,root) %{_bindir}/mega-users | |
121 | %attr(755,root,root) %{_bindir}/mega-version | |
122 | %attr(755,root,root) %{_bindir}/mega-webdav | |
123 | %attr(755,root,root) %{_bindir}/mega-whoami | |
124 | %attr(755,root,root) %{_bindir}/megacli | |
125 | %attr(755,root,root) %{_bindir}/megafuse | |
126 | %attr(755,root,root) %{_bindir}/megasimplesync | |
127 | ||
128 | %files libs | |
129 | %defattr(644,root,root,755) | |
130 | %attr(755,root,root) %{_libdir}/libmega.so.30401 | |
131 | %attr(755,root,root) %ghost %{_libdir}/libmega.so.*.*.* | |
132 | ||
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
135 | %{_includedir}/mega | |
136 | %{_includedir}/mega.h | |
137 | %{_includedir}/megaapi.h | |
138 | %{_includedir}/megaapi_impl.h | |
139 | %{_libdir}/libmega.so | |
140 | %{_pkgconfigdir}/libmega.pc |