Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Dead_Mozay:GNOME:Apps
gaphor
gaphor.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gaphor.spec of Package gaphor
# # spec file for package gaphor # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define pythons python3 Name: gaphor Version: 2.25.1 Release: 0 Summary: Is the simple modeling tool written in Python License: Apache-2.0 URL: http://gaphor.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/g/gaphor/%{name}-%{version}.tar.gz BuildRequires: python-rpm-macros BuildRequires: update-desktop-files BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} BuildRequires: %{python_module poetry} BuildRequires: %{python_module flit} BuildRequires: %{python_module setuptools} BuildRequires: fdupes Requires: python3-gaphas >= 3.0.0b0 Requires: python3-generic >= 1.0.0 Requires: python3-importlib_metadata >= 1.4 Requires: python3-pycairo >= 1.18 Requires: python3-gobject >= 3.30 Requires: python3-tinycss2 >= 1.0.2 Requires: python3-typing_extensions >= 3.7.4 Requires: python3-babel Requires: python3-gobject Requires: python3-jedi Requires: python3-pydot Requires: python3-pygit2 BuildArch: noarch %description %{summary}. %lang_package %prep %autosetup sed -i '/env python/d' ./gaphor/core/modeling/element.py sed -i '/env python/d' ./gaphor/plugins/console/console.py sed -i '/env python/d' ./gaphor/plugins/console/consolewindow.py find ./gaphor/core/modeling/element.py -type f -executable -exec chmod -x "{}" \; find ./gaphor/plugins/console/console.py -type f -executable -exec chmod -x "{}" \; find ./gaphor/plugins/console/consolewindow.py -type f -executable -exec chmod -x "{}" \; %build %pyproject_wheel %install %pyproject_install mkdir -p %{buildroot}%{_datadir}/icons/ cp -R %{name}/ui/icons/hicolor/ %{buildroot}%{_datadir}/icons/ %suse_update_desktop_file -c org.gaphor.Gaphor Gaphor Gaphor gaphor org.gaphor.Gaphor "Office;ProjectManagement;" # Fix locale mv %{buildroot}%{python3_sitelib}/%{name}/locale %{buildroot}%{_datadir}/locale %find_lang %{name} pushd %{buildroot}%{_datadir}/locale/ mkdir %{buildroot}%{python3_sitelib}/%{name}/locale/ rm README ls | while read -r f; do if ( echo "$f" | grep -q '\.py$' ); then mv -f "$f" %{buildroot}%{python3_sitelib}/%{name}/locale/ else ln -s "%{_datadir}/locale/$f" \ "%{buildroot}%{python3_sitelib}/%{name}/locale/$f" fi done popd %fdupes %{buildroot}%{python_sitelib}/ %files %doc README.md %{_bindir}/gaphor %{_datadir}/applications/org.gaphor.Gaphor.desktop %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/scalable %dir %{_datadir}/icons/hicolor/scalable/apps %dir %{_datadir}/icons/hicolor/scalable/emblems %dir %{_datadir}/icons/hicolor/scalable/actions %{_datadir}/icons/hicolor/*/*/*.svg %{python_sitelib}/* %files lang -f %{name}.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor