|
15 | 15 | # Please submit bugfixes or comments via http://bugs.opensuse.org/
|
16 | 16 | #
|
17 | 17 |
|
| 18 | + |
18 | 19 | Name: bcloud
|
19 |
| -Version: 3.4.2 |
20 |
| -Release: 1%{?dist} |
21 |
| -License: GPL-3.0 |
| 20 | +Version: 3.5.1 |
| 21 | +Release: 0 |
22 | 22 | Summary: Baidu Pan client for Linux Desktop users
|
23 |
| -Url: https://github.com/LiuLang/bcloud |
| 23 | +License: GPL-3.0 |
24 | 24 | Group: Productivity/Networking/Web/Frontends
|
| 25 | +Url: https://github.com/LiuLang/bcloud |
25 | 26 | Source: %{name}-%{version}.tar.bz2
|
26 |
| -BuildArch: noarch |
27 |
| -BuildRequires: python3-setuptools |
| 27 | +BuildRequires: gtk3-devel |
28 | 28 | BuildRequires: python3-devel
|
29 | 29 | BuildRequires: python3-gobject
|
30 |
| -BuildRequires: gtk3-devel |
31 |
| -Requires: update-desktop-files |
| 30 | +BuildRequires: python3-setuptools |
| 31 | +BuildRequires: update-desktop-files |
| 32 | +Requires: dbus-1-python3 |
| 33 | +Requires: girepository-1_0 |
| 34 | +Requires: gnome-icon-theme-symbolic |
32 | 35 | Requires: gtk3-data >= 3.4.0
|
| 36 | +Requires: libnotify4 |
| 37 | +Requires: libwebkitgtk3 |
33 | 38 | Requires: python3
|
34 |
| -Requires: python3-base |
35 |
| -Requires: python3-gobject |
36 |
| -Requires: python3-pycrypto |
37 | 39 | Requires: python3-cssselect
|
38 |
| -Requires: python3-lxml |
39 |
| -Requires: libwebkitgtk3-devel |
| 40 | +Requires: python3-gobject |
40 | 41 | Requires: python3-keyring >= 3.7
|
| 42 | +Requires: python3-lxml |
| 43 | +Requires: python3-pycrypto |
41 | 44 | Requires: sqlite3
|
42 |
| -Requires: gnome-icon-theme-symbolic |
43 |
| -Requires: girepository-1_0 |
44 |
| -Requires: libnotify4 |
45 |
| -Requires: dbus-1-python3 |
46 |
| -Obsoletes: %{name} < %{version} |
47 | 45 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
| 46 | +BuildArch: noarch |
48 | 47 |
|
49 | 48 | %description
|
50 |
| -bcloud 是百度网盘的Linux桌面客户端实现. |
51 |
| -现在只写了一部分主要功能, 其它功能还要等有空再加入. |
52 |
| -bcloud 还处于早期的开发阶段, 欢迎各位朋友提交问题. |
| 49 | +Baidu Pan client for Linux Desktop users. |
53 | 50 |
|
54 | 51 | %prep
|
55 | 52 | %setup -q
|
56 | 53 |
|
57 | 54 | %build
|
58 |
| -# fix build error in factory version |
59 |
| -%if 0%{?suse_version} > 1310 |
60 |
| - export XDG_RUNTIME_DIR=/tmp/%{name} |
61 |
| -%endif |
62 |
| - |
63 | 55 | python3 setup.py build
|
64 | 56 |
|
65 | 57 | %install
|
66 |
| -# {buildroot} should be cleaned before install installation |
67 |
| -rm -rf %{buildroot} |
68 |
| -# copy executable file to /usr/bin |
69 |
| -install -d %{buildroot}%{_bindir}/ |
70 |
| -install bcloud-gui %{buildroot}%{_bindir} |
71 |
| -# copy python module to sitelib |
72 |
| -install -d %{buildroot}%{python3_sitelib} |
73 |
| -cp -r bcloud/ %{buildroot}%{python3_sitelib} |
74 |
| -# copy resources to /usr/share |
75 |
| -cp -r share/ %{buildroot}%{_datadir}/ |
| 58 | +python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} |
76 | 59 |
|
| 60 | +rm -rf %{buildroot}%{_datadir}/icons/hicolor/512* |
77 | 61 | %find_lang %{name}
|
78 | 62 |
|
79 |
| -%clean |
80 |
| -rm -rf %{buildroot} |
81 |
| - |
82 | 63 | %files -f %{name}.lang
|
83 | 64 | %defattr(-,root,root)
|
84 | 65 | %doc LICENSE README.md HISTORY
|
85 |
| -%{python3_sitelib}/* |
| 66 | +%{python3_sitelib}/%{name} |
| 67 | +%{python3_sitelib}/%{name}-%{version}-py%{py3_ver}.egg-info |
86 | 68 | %{_datadir}/bcloud
|
87 | 69 | %{_datadir}/applications/%{name}.desktop
|
88 |
| -%{_datadir}/icons/hicolor/* |
| 70 | +%{_datadir}/icons/hicolor/*/*/*.png |
| 71 | +%{_datadir}/icons/hicolor/scalable/*/*.svg |
89 | 72 | %{_bindir}/bcloud-gui
|
90 |
| -%exclude %{python3_sitelib}/bcloud/__pycache__ |
91 | 73 |
|
92 | 74 | %changelog
|
0 commit comments