forked from pool/brickv
Fix leap
OBS-URL: https://build.opensuse.org/package/show/electronics/brickv?expand=0&rev=17
This commit is contained in:
parent
fb75d45f62
commit
b22883ad75
@ -31,6 +31,7 @@ BuildRequires: fdupes
|
||||
BuildRequires: iso-codes
|
||||
BuildRequires: mobile-broadband-provider-info
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3
|
||||
BuildRequires: update-desktop-files
|
||||
Requires: python3-pytz
|
||||
Requires: python3-qt5
|
||||
@ -50,7 +51,7 @@ export ISOCODES_JSON_PATH=/usr/share/iso-codes/json/iso_3166-1.json
|
||||
# force UTF-8 for build scripts
|
||||
export LANG=C.UTF-8
|
||||
pushd src
|
||||
%python_exec build_src.py
|
||||
python3 build_src.py
|
||||
# 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
|
||||
popd
|
||||
@ -62,13 +63,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/applications build_data/linux/%{name}/usr/share/applications/%{name}.desktop
|
||||
popd
|
||||
%fdupes -s %{buildroot}%{python_sitelib}/brickv/
|
||||
%fdupes -s %{buildroot}%{python3_sitelib}/brickv/
|
||||
%suse_update_desktop_file -r %{name} Development Debugger
|
||||
|
||||
%files -n %{name}
|
||||
%doc src/changelog README.rst
|
||||
%{_bindir}/%{name}
|
||||
%{python_sitelib}/brickv*
|
||||
%{python3_sitelib}/brickv*
|
||||
%{_udevrulesdir}/*.rules
|
||||
/usr/share/pixmaps/*
|
||||
/usr/share/applications/*
|
||||
|
Loading…
Reference in New Issue
Block a user