SHA256
1
0
forked from pool/brickv
Frank Kunz 2021-02-21 21:10:34 +00:00 committed by Git OBS Bridge
parent fb75d45f62
commit b22883ad75

View File

@ -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/*