Skip to content

Commit 3428f3d

Browse files
committed
bcloud 3.5.1 for opensuse
1 parent b089901 commit 3428f3d

4 files changed

+25
-43
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repo 文件放到 /etc/yum.repos.d/ 中, 然后运行
3636
打包脚本在 build\_rpm 里.
3737

3838
#OpenSuSE安装指南
39-
**适用于13.1、Factory以及Tumbleweed**
39+
**BCloud现在在OpenSuSE中文源中也可用啦。若您添加了`opensuse_zh`源,可直接在源中搜索`bcloud`,跳过下面的步骤**
4040

4141
+ [1 Click Install for 13.1](http://software.opensuse.org/ymp/home:qgymib:bcloud/openSUSE_13.1/bcloud.ymp?base=openSUSE%3A13.1&query=bcloud)
4242
+ [1 Click Install for Tumbleweed](http://software.opensuse.org/ymp/home:qgymib:bcloud/openSUSE_Tumbleweed/bcloud.ymp?base=openSUSE%3A13.1&query=bcloud)

bcloud-3.4.2-4.1.suse.noarch.rpm

-167 KB
Binary file not shown.

bcloud-3.5.1-5.1.suse.noarch.rpm

213 KB
Binary file not shown.

build_suse/bcloud.spec

+24-42
Original file line numberDiff line numberDiff line change
@@ -15,78 +15,60 @@
1515
# Please submit bugfixes or comments via http://bugs.opensuse.org/
1616
#
1717

18+
1819
Name: bcloud
19-
Version: 3.4.2
20-
Release: 1%{?dist}
21-
License: GPL-3.0
20+
Version: 3.5.1
21+
Release: 0
2222
Summary: Baidu Pan client for Linux Desktop users
23-
Url: https://github.com/LiuLang/bcloud
23+
License: GPL-3.0
2424
Group: Productivity/Networking/Web/Frontends
25+
Url: https://github.com/LiuLang/bcloud
2526
Source: %{name}-%{version}.tar.bz2
26-
BuildArch: noarch
27-
BuildRequires: python3-setuptools
27+
BuildRequires: gtk3-devel
2828
BuildRequires: python3-devel
2929
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
3235
Requires: gtk3-data >= 3.4.0
36+
Requires: libnotify4
37+
Requires: libwebkitgtk3
3338
Requires: python3
34-
Requires: python3-base
35-
Requires: python3-gobject
36-
Requires: python3-pycrypto
3739
Requires: python3-cssselect
38-
Requires: python3-lxml
39-
Requires: libwebkitgtk3-devel
40+
Requires: python3-gobject
4041
Requires: python3-keyring >= 3.7
42+
Requires: python3-lxml
43+
Requires: python3-pycrypto
4144
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}
4745
BuildRoot: %{_tmppath}/%{name}-%{version}-build
46+
BuildArch: noarch
4847

4948
%description
50-
bcloud 是百度网盘的Linux桌面客户端实现.
51-
现在只写了一部分主要功能, 其它功能还要等有空再加入.
52-
bcloud 还处于早期的开发阶段, 欢迎各位朋友提交问题.
49+
Baidu Pan client for Linux Desktop users.
5350

5451
%prep
5552
%setup -q
5653

5754
%build
58-
# fix build error in factory version
59-
%if 0%{?suse_version} > 1310
60-
export XDG_RUNTIME_DIR=/tmp/%{name}
61-
%endif
62-
6355
python3 setup.py build
6456

6557
%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}
7659

60+
rm -rf %{buildroot}%{_datadir}/icons/hicolor/512*
7761
%find_lang %{name}
7862

79-
%clean
80-
rm -rf %{buildroot}
81-
8263
%files -f %{name}.lang
8364
%defattr(-,root,root)
8465
%doc LICENSE README.md HISTORY
85-
%{python3_sitelib}/*
66+
%{python3_sitelib}/%{name}
67+
%{python3_sitelib}/%{name}-%{version}-py%{py3_ver}.egg-info
8668
%{_datadir}/bcloud
8769
%{_datadir}/applications/%{name}.desktop
88-
%{_datadir}/icons/hicolor/*
70+
%{_datadir}/icons/hicolor/*/*/*.png
71+
%{_datadir}/icons/hicolor/scalable/*/*.svg
8972
%{_bindir}/bcloud-gui
90-
%exclude %{python3_sitelib}/bcloud/__pycache__
9173

9274
%changelog

0 commit comments

Comments
 (0)