lapce/lapce.spec

81 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package lapce
#
# Copyright (c) 2024 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/
#
Name: lapce
Version: 0.4.0
Release: 0
Summary: Lightning-fast and Powerful Code Editor written in Rust
URL: https://github.com/lapce/lapce
License: (0BSD OR Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND MIT AND (Artistic-2.0 OR CC0-1.0) AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND CC0-1.0 AND ISC AND MIT AND (MIT OR Unlicense) AND MPL-2.0 AND MPL-2.0+ AND Zlib AND zlib-acknowledgement AND Apache-2.0
Group: Productivity/Text/Editors
- Update to version 0.2.6: * Make auto_closing_matching_pairs dependent on BufferContent (#2188) * Extended double-click options (#2127) * chore(deps): bump once_cell from 1.15.0 to 1.17.1 (#2173) * fix: build WSL backend only for Windows (#2166) * return stdout stderr * update psp-types * fix cannot open file when diff already opened (#2125) * Use abs_diff (#2123) * Added Lapce App Icon (#2128) * fix: dont overwrite symlink (#2131) * ci: run workflow in PR to test changes (#2132) * chore(deps): bump git2 from 0.14.4 to 0.16.1 (#2050) * fix: rewrite script + fix version comparison (#2117) * Add settings to configure the scroll speed (#2120) * make wasi initilization async (#2114) * feat: configurable diff context lines (#2094) * Properly instantiate the WASM blob and let it live inside the thread (#2090) * If format-on-save is not enabled, save immediately (#2088) * feat: diff view navbar (#2084) * Enable plugins to act as LSP themselves (#2087) * fix: branches filter not updating (#2080) * feat: add Ctrl+{a,e,k} keybinds on macOS (#2074) * fix: remove regex, parse remote as URL (#2075) * fix: find repository if it's not in current workspace path (#2069) * fix: set language environment in proper way (#2070) * feat: add command and keybinds to delete line (#2071) * Add an option to disable moving the focus area when you type (#2062) * Don't spawn a thread for every config watcher notifications (#2034) OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=62
2023-03-01 10:42:00 +00:00
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
- Update to version 0.2.0: * Features/Changes - Implemented error lens. - Add Fedora spec for packaging - Add LSP stderr output to log - Truncate plugin description with ellipsis when it is too long - Add goto type definition support. (Where you can jump to the definition of the type a variable is of) - Add alpine dev-container - Add next/previous tab commands and keybindings. (Note that this is moving left/right in the tabs, not to the last used tab) - Make undo more granular - Fix alpha-depth issue in painting - Display documentation of completion items. - Add config option for cursor blink interval - Use new highlighter query for Julia - Title update - Full screen fix. Changes Lapce icon to work better on common color schemes. - Separate plugin panel into two parts, installed and uninstalled. - Custom title bar on Linux and palette bar - Preserve unsaved files when closing, which are restored when opening Lapce again - Add the ability to enable, disable, and remove plugins - Don't paint tiny tab drags - Add command to toggle inlay hints - Add daily nightly build - Don't show autocomplete after whitespace keys - Make completion/palette allow page-up/down keys - Add setting to control palette preview editor's width - Don't show autocomplete after backspacing over whitespace - Add the ability to resize editor/terminal/various splits. * Bug Fixes - Give the plugin panel a scroll bar - Check LSP capabilities before sending commands. Fixes most of Julia LSP support. - Properly check if a line is after the end of the document in line styles - Use FS module - Fix crashing on semantic tokens going past last line - Fix goto ref on single references - Reload explorer on file change, just in case our watching code didn't activate. - (LSP) Specify the workspace folder of the root uri if available. - Set the current directory when starting the LSP - Read files lossily, in case they are not UTF8. - Use UTF16 encoding for communicating with LSPs. This should fix a bunch of bugs with unicode causing RA or the editor to crash. - Fix keybinds on Mac with Command+Shift - Fix MacOS Option Key - Properly open editors when applying text edits via code actions to editors which aren't focused or open. - Prevent crash on save with multiple windows - Fix calculation of mouse down position in the problem panel - Follow system OS paths better - Proxy rewrite! This should make lock-ups not happen, and be easier to add onto. - Find box result count should use the current buffer - Pass uname as multiple args to fix WSL - Align settings button size to window controls - Don't fail on missing primary monitor - Various other bug fixes OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=29
2022-09-04 07:29:56 +00:00
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: cargo-packaging
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: rust
BuildRequires: zstd
Accepting request 978939 from home:uncomfyhalomacro:branches:editors - Update to version 0.1.1~0: * fix modifiers * relase v0.1.1 * windows dark mode * fix ci * reset editor view to normal when it's not a hisotry * bump druid * apt-get update * change the place of anim frame request paint * update dependencies * update dependencies * clippy fix * remove glutin * num lock modifier fix * request paint when request anim frame * bump druid * use mouse event count for double/tripple click * use mouse event count for double click * macos title double click fix * Change Appstream metadata license to MIT * bump druid * bump druid * consolidate window desc creation * add Linux AppStream metadata * add Linux .desktop file * file watcher fix * fix editor focus issue * clippy fix * ensure cusror visible when editor got focus * cancel mouse hover timer when right click * change to os menu * file dialog change to druid-shell * use druid shell with opengl * fix code format * refactor the tests for readability * Avoid cloning syntax highlight result * Only allocate once when toggling comments * Special-case non-modifier ansi sequences * Doc: do not specify a transitional package * fix code format * address PR review feedbacks * fix code format * address PR review feedbacks * Removed the last min window size constraint * Pre-parse svgs * Only hash svg names once * Deduplicate * Don't allocate while accessing svgs * add meta+backspace for macOS * key binding mode text fix * Restrict visibility and remove unused code * Remove unused type * Remove unused outline module * Remove unused module * Use static str in LapceIcon * Remove most of the dead code * bump lapce-rpc version * support count in move by words commands in the vi-mode * implement top_of_window and bottom_of_window * Removed min window size - Update to version 0.1.0~0: * wix version bump * wix fix * bump version * Fix scroll bar scroll * bump druid * problem panel dispaly fix * Clip the command name cells * release lto folder * Clean up split - also limit to tier 1 arches OBS-URL: https://build.opensuse.org/request/show/978939 OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=7
2022-05-24 11:02:59 +00:00
BuildRequires: pkgconfig(atk) >= 2.18
BuildRequires: pkgconfig(cairo) >= 1.14
BuildRequires: pkgconfig(cairo-gobject)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
Accepting request 978939 from home:uncomfyhalomacro:branches:editors - Update to version 0.1.1~0: * fix modifiers * relase v0.1.1 * windows dark mode * fix ci * reset editor view to normal when it's not a hisotry * bump druid * apt-get update * change the place of anim frame request paint * update dependencies * update dependencies * clippy fix * remove glutin * num lock modifier fix * request paint when request anim frame * bump druid * use mouse event count for double/tripple click * use mouse event count for double click * macos title double click fix * Change Appstream metadata license to MIT * bump druid * bump druid * consolidate window desc creation * add Linux AppStream metadata * add Linux .desktop file * file watcher fix * fix editor focus issue * clippy fix * ensure cusror visible when editor got focus * cancel mouse hover timer when right click * change to os menu * file dialog change to druid-shell * use druid shell with opengl * fix code format * refactor the tests for readability * Avoid cloning syntax highlight result * Only allocate once when toggling comments * Special-case non-modifier ansi sequences * Doc: do not specify a transitional package * fix code format * address PR review feedbacks * fix code format * address PR review feedbacks * Removed the last min window size constraint * Pre-parse svgs * Only hash svg names once * Deduplicate * Don't allocate while accessing svgs * add meta+backspace for macOS * key binding mode text fix * Restrict visibility and remove unused code * Remove unused type * Remove unused outline module * Remove unused module * Use static str in LapceIcon * Remove most of the dead code * bump lapce-rpc version * support count in move by words commands in the vi-mode * implement top_of_window and bottom_of_window * Removed min window size - Update to version 0.1.0~0: * wix version bump * wix fix * bump version * Fix scroll bar scroll * bump druid * problem panel dispaly fix * Clip the command name cells * release lto folder * Clean up split - also limit to tier 1 arches OBS-URL: https://build.opensuse.org/request/show/978939 OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=7
2022-05-24 11:02:59 +00:00
BuildRequires: pkgconfig(gdk-3.0) >= 3.22
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.36.8
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(pango) >= 1.38
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xkbcommon)
ExclusiveArch: %{rust_tier1_arches}
%description
Lapce is written in pure Rust, with the UI in Druid
It uses Xi-Editor's Rope Science for text editing, and the
Wgpu Graphics API for rendering.
%prep
- Update to version 0.2.0: * Features/Changes - Implemented error lens. - Add Fedora spec for packaging - Add LSP stderr output to log - Truncate plugin description with ellipsis when it is too long - Add goto type definition support. (Where you can jump to the definition of the type a variable is of) - Add alpine dev-container - Add next/previous tab commands and keybindings. (Note that this is moving left/right in the tabs, not to the last used tab) - Make undo more granular - Fix alpha-depth issue in painting - Display documentation of completion items. - Add config option for cursor blink interval - Use new highlighter query for Julia - Title update - Full screen fix. Changes Lapce icon to work better on common color schemes. - Separate plugin panel into two parts, installed and uninstalled. - Custom title bar on Linux and palette bar - Preserve unsaved files when closing, which are restored when opening Lapce again - Add the ability to enable, disable, and remove plugins - Don't paint tiny tab drags - Add command to toggle inlay hints - Add daily nightly build - Don't show autocomplete after whitespace keys - Make completion/palette allow page-up/down keys - Add setting to control palette preview editor's width - Don't show autocomplete after backspacing over whitespace - Add the ability to resize editor/terminal/various splits. * Bug Fixes - Give the plugin panel a scroll bar - Check LSP capabilities before sending commands. Fixes most of Julia LSP support. - Properly check if a line is after the end of the document in line styles - Use FS module - Fix crashing on semantic tokens going past last line - Fix goto ref on single references - Reload explorer on file change, just in case our watching code didn't activate. - (LSP) Specify the workspace folder of the root uri if available. - Set the current directory when starting the LSP - Read files lossily, in case they are not UTF8. - Use UTF16 encoding for communicating with LSPs. This should fix a bunch of bugs with unicode causing RA or the editor to crash. - Fix keybinds on Mac with Command+Shift - Fix MacOS Option Key - Properly open editors when applying text edits via code actions to editors which aren't focused or open. - Prevent crash on save with multiple windows - Fix calculation of mouse down position in the problem panel - Follow system OS paths better - Proxy rewrite! This should make lock-ups not happen, and be easier to add onto. - Find box result count should use the current buffer - Pass uname as multiple args to fix WSL - Align settings button size to window controls - Don't fail on missing primary monitor - Various other bug fixes OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=29
2022-09-04 07:29:56 +00:00
%autosetup -a1
%build
# We disable default feature as they include auto-update.
# For reference:
# https://github.com/lapce/lapce/blob/0ded46c988d72b563bd78b29cc11107d4e2248bc/lapce-ui/Cargo.toml#L48
%{cargo_build} --no-default-features -p lapce-app --features all-languages
%install
- Update to version 0.2.0: * Features/Changes - Implemented error lens. - Add Fedora spec for packaging - Add LSP stderr output to log - Truncate plugin description with ellipsis when it is too long - Add goto type definition support. (Where you can jump to the definition of the type a variable is of) - Add alpine dev-container - Add next/previous tab commands and keybindings. (Note that this is moving left/right in the tabs, not to the last used tab) - Make undo more granular - Fix alpha-depth issue in painting - Display documentation of completion items. - Add config option for cursor blink interval - Use new highlighter query for Julia - Title update - Full screen fix. Changes Lapce icon to work better on common color schemes. - Separate plugin panel into two parts, installed and uninstalled. - Custom title bar on Linux and palette bar - Preserve unsaved files when closing, which are restored when opening Lapce again - Add the ability to enable, disable, and remove plugins - Don't paint tiny tab drags - Add command to toggle inlay hints - Add daily nightly build - Don't show autocomplete after whitespace keys - Make completion/palette allow page-up/down keys - Add setting to control palette preview editor's width - Don't show autocomplete after backspacing over whitespace - Add the ability to resize editor/terminal/various splits. * Bug Fixes - Give the plugin panel a scroll bar - Check LSP capabilities before sending commands. Fixes most of Julia LSP support. - Properly check if a line is after the end of the document in line styles - Use FS module - Fix crashing on semantic tokens going past last line - Fix goto ref on single references - Reload explorer on file change, just in case our watching code didn't activate. - (LSP) Specify the workspace folder of the root uri if available. - Set the current directory when starting the LSP - Read files lossily, in case they are not UTF8. - Use UTF16 encoding for communicating with LSPs. This should fix a bunch of bugs with unicode causing RA or the editor to crash. - Fix keybinds on Mac with Command+Shift - Fix MacOS Option Key - Properly open editors when applying text edits via code actions to editors which aren't focused or open. - Prevent crash on save with multiple windows - Fix calculation of mouse down position in the problem panel - Follow system OS paths better - Proxy rewrite! This should make lock-ups not happen, and be easier to add onto. - Find box result count should use the current buffer - Pass uname as multiple args to fix WSL - Align settings button size to window controls - Don't fail on missing primary monitor - Various other bug fixes OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=29
2022-09-04 07:29:56 +00:00
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}-proxy
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/linux/dev.%{name}.%{name}.metainfo.xml %{buildroot}%{_datadir}/metainfo/dev.%{name}.%{name}.metainfo.xml
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/linux/dev.%{name}.%{name}.desktop %{buildroot}%{_datadir}/applications/dev.%{name}.%{name}.desktop
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/images/logo.png %{buildroot}%{_datadir}/pixmaps/dev.%{name}.%{name}.png
%files
%license LICENSE
%doc README.md docs/*.md
%{_bindir}/lapce
- Update to version 0.2.2: * Features/Changes: - #1643: Use https://plugins.lapce.dev/ as the plugin registry - #1620: Added "Show Hover" keybinding that will trigger the hover at the cursor location - #1619: * Add active/inactive tab colours * Add primary button colour * Replace custom drawn checkboxes with icons in source control * Add hover effect in source control panel * Add colour preview in settings - #1617: Fixed a stack overflow that would crash lapce when attempting to sort a large number of PaletteItems - #1609: Add syntax highlighting for erlang - #1590: Added ability to open file and file diff from source control context menu - #1570: Added a basic tab context menu with common close actions - #1560: Added ability to copy active editor remote file path to clipboard - #1510: Added support to discard changes to a file - #1459: Implement icon theme system * This is a breaking change for colour themes! * Colour themes should now use [color-theme] table format in theme TOML * volt.toml now use color-themes and icon-themes keys. themes key is not used anymore. - #1554: Added XML language support - #1472: Added SQL language support - #1531: Improved Ctrl+Left command on spaces at the beginning of a line - #1491: Added Vim shift+c to delete remainder of line - #1508: Show in progress when Lapce is self updating - #1475: Add editor setting: "Cursor Surrounding Lines" which sets minimum number of lines above and below cursor - #1525: Add editor indent guide - #1521: Show unique paths to disambiguate same file names - #1452: Wrap selected text with brackets/quotes - #1421: Add matching bracket highlighting - #1541: Order palette items according to last execute time * Bug Fixes - #1566|#1568: Use separate colour for drag and drop background - #1459: Fix opening currently used logfile - #1505: Fix proxy download for hosts with curl without -Z flag - #1483: Fix showing the close icon for the first tab when opening multiple tab - #1477: Now use esc to close searchbar regarless of the current focus - #1507: Fixed a crash when scratch buffer is closed - #1547: Fix infinite cycle in workspace symbol search - #1628: Fix kts files not being recognized - Readded lapce-proxy. - Simplify _service file. OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=43
2022-11-06 02:01:36 +00:00
%{_bindir}/lapce-proxy
%{_datadir}/metainfo/dev.lapce.lapce.metainfo.xml
%{_datadir}/applications/dev.lapce.lapce.desktop
%{_datadir}/pixmaps/dev.lapce.lapce.png
%changelog