Fix requires packages
OBS-URL: https://build.opensuse.org/package/show/electronics/brickv?expand=0&rev=16
This commit is contained in:
parent
139061e9c3
commit
fb75d45f62
15
brickv.spec
15
brickv.spec
@ -17,7 +17,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: brickv
|
Name: brickv
|
||||||
Version: 2.4.17
|
Version: 2.4.17
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -33,10 +32,10 @@ BuildRequires: iso-codes
|
|||||||
BuildRequires: mobile-broadband-provider-info
|
BuildRequires: mobile-broadband-provider-info
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
Requires: python-pytz
|
Requires: python3-pytz
|
||||||
Requires: python-qt5
|
Requires: python3-qt5
|
||||||
Requires: python-serial
|
Requires: python3-serial
|
||||||
Requires: python-tzlocal
|
Requires: python3-tzlocal
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -51,7 +50,7 @@ export ISOCODES_JSON_PATH=/usr/share/iso-codes/json/iso_3166-1.json
|
|||||||
# force UTF-8 for build scripts
|
# force UTF-8 for build scripts
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
pushd src
|
pushd src
|
||||||
python3 build_src.py
|
%python_exec build_src.py
|
||||||
# remove no more needed build scripts
|
# remove no more needed build scripts
|
||||||
rm -f build_src.py brickv/plugin_system/plugins/red/build_extra.py brickv/plugin_system/plugins/red/build_scripts.py
|
rm -f build_src.py brickv/plugin_system/plugins/red/build_extra.py brickv/plugin_system/plugins/red/build_scripts.py
|
||||||
popd
|
popd
|
||||||
@ -63,13 +62,13 @@ install -m 644 -D -t %{buildroot}%{_udevrulesdir} build_data/linux/%{name}/lib/u
|
|||||||
install -m 644 -D -t %{buildroot}/usr/share/pixmaps build_data/linux/%{name}/usr/share/pixmaps/brickv-icon.png
|
install -m 644 -D -t %{buildroot}/usr/share/pixmaps build_data/linux/%{name}/usr/share/pixmaps/brickv-icon.png
|
||||||
install -m 644 -D -t %{buildroot}/usr/share/applications build_data/linux/%{name}/usr/share/applications/%{name}.desktop
|
install -m 644 -D -t %{buildroot}/usr/share/applications build_data/linux/%{name}/usr/share/applications/%{name}.desktop
|
||||||
popd
|
popd
|
||||||
%fdupes -s %{buildroot}%{python3_sitelib}/brickv/
|
%fdupes -s %{buildroot}%{python_sitelib}/brickv/
|
||||||
%suse_update_desktop_file -r %{name} Development Debugger
|
%suse_update_desktop_file -r %{name} Development Debugger
|
||||||
|
|
||||||
%files -n %{name}
|
%files -n %{name}
|
||||||
%doc src/changelog README.rst
|
%doc src/changelog README.rst
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{python3_sitelib}/brickv*
|
%{python_sitelib}/brickv*
|
||||||
%{_udevrulesdir}/*.rules
|
%{_udevrulesdir}/*.rules
|
||||||
/usr/share/pixmaps/*
|
/usr/share/pixmaps/*
|
||||||
/usr/share/applications/*
|
/usr/share/applications/*
|
||||||
|
Loading…
Reference in New Issue
Block a user