diff --git a/FeatherPad-1.3.5.tar.gz b/FeatherPad-1.3.5.tar.gz new file mode 100644 index 0000000..96b57de Binary files /dev/null and b/FeatherPad-1.3.5.tar.gz differ diff --git a/featherpad.spec b/featherpad.spec new file mode 100644 index 0000000..63dd31c --- /dev/null +++ b/featherpad.spec @@ -0,0 +1,72 @@ +%global github_name FeatherPad + +Name: featherpad +Version: 1.3.5 +Release: 1 +Summary: Lightweight Qt5 Plain-Text Editor + +License: GPLv3+ +URL: https://github.com/tsujan/%{github_name} +Source0: %{url}/archive/V%{version}.tar.gz#/%{github_name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: desktop-file-utils +BuildRequires: gcc-c++ +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtsvg-devel +BuildRequires: qt5-qttools-devel +BuildRequires: qt5-qtx11extras-devel +BuildRequires: pkgconfig(x11-xcb) +BuildRequires: pkgconfig(hunspell) >= 1.6 +BuildRequires: pkgconfig(xext) + +Requires: hicolor-icon-theme + +%description +FeatherPad is a lightweight Qt5 plain-text editor for Linux. It is independent +of any desktop environment and has: + +* Drag-and-drop support, including tab detachment and attachment; +* X11 virtual desktop awareness (using tabs on current desktop but opening a + new window on another); +* An optionally permanent search-bar with a different search entry + for each tab; +* Instant highlighting of found matches when searching; +* A docked window for text replacement; +* Support for showing line numbers and jumping to a specific line; +* Automatic detection of text encoding as far as possible and optional saving + with encoding; +* Syntax highlighting for common programming languages; +* Printing; +* Text zooming; +* Appropriate but non-interrupting prompts; + +%prep +%autosetup -n %{github_name}-%{version} -p 1 + +%build +%cmake +%make_build + +%install +%make_install +%find_lang %{name} --with-qt + +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop + +%files -f %{name}.lang +%license COPYING +%doc ChangeLog INSTALL NEWS README.md +%{_bindir}/* +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/help +%{_datadir}/%{name}/help_* +%dir %{_datadir}/%{name}/translations +%{_datadir}/metainfo/featherpad.metainfo.xml + +%changelog +* Wed May 24 2023 wangtaozhi - 1.3.5-1 +- Package init diff --git a/featherpad.yaml b/featherpad.yaml new file mode 100644 index 0000000..d51c882 --- /dev/null +++ b/featherpad.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: https://github.com/tsujan/featherpad +tag_prefix: "v" +separator: "."