# Disable debuginfo generation — this is not a noarch package only because # the gedit plugin directory is arch-dependent, so despite having no arch # components this package will need to install in the arch-dependent libdir. %global debug_package %{nil} Name: gedit-plugin-editorconfig Version: 0.5.3 Release: 1%{?dist} Summary: EditorConfig plugin for Gedit License: BSD URL: https://editorconfig.org/ Source0: https://github.com/editorconfig/editorconfig-gedit/archive/v%{version}/editorconfig-gedit-%{version}.tar.gz BuildRequires: python%{python3_pkgversion}-devel Requires: python%{python3_pkgversion}-editorconfig Requires: gedit%{_isa} >= 3.8 %description EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems. This package contains the EditorConfig plugin for GEdit. %prep %autosetup -n editorconfig-gedit-%{version} %build sed -i -e 's|^Loader=python$|Loader=python3|' editorconfig.plugin %install mkdir -p %{buildroot}%{_libdir}/gedit/plugins/ cp -rL editorconfig_plugin %{buildroot}%{_libdir}/gedit/plugins/ cp editorconfig.plugin %{buildroot}%{_libdir}/gedit/plugins/ cp editorconfig_gedit3.py %{buildroot}%{_libdir}/gedit/plugins/ # Manually byte-compile the python files in the plugin dir %py_byte_compile %{__python3} %{buildroot}%{_libdir}/gedit/plugins/editorconfig_plugin %files %license LICENSE %doc README.md %{_libdir}/gedit/plugins/editorconfig.plugin %{_libdir}/gedit/plugins/editorconfig_gedit3.py %dir %{_libdir}/gedit/plugins/editorconfig_plugin %{_libdir}/gedit/plugins/editorconfig_plugin/*.py %{_libdir}/gedit/plugins/editorconfig_plugin/__pycache__/ %changelog * Mon Sep 30 2019 FeRD (Frank Dana) - 0.5.3-1 - Initial Fedora package