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