Package init
- 初始化提交
This commit is contained in:
parent
43d8d1cded
commit
7b80430756
BIN
FeatherNotes-1.1.0.tar.xz
Normal file
BIN
FeatherNotes-1.1.0.tar.xz
Normal file
Binary file not shown.
71
feathernotes.spec
Normal file
71
feathernotes.spec
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
%global github_name FeatherNotes
|
||||||
|
|
||||||
|
%bcond_with qt6
|
||||||
|
|
||||||
|
Name: feathernotes
|
||||||
|
|
||||||
|
Version: 1.1.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Lightweight Qt hierarchical notes-manager for Linux
|
||||||
|
|
||||||
|
License: GPLv3+
|
||||||
|
URL: https://github.com/tsujan/%{github_name}
|
||||||
|
Source0: %{url}/releases/download/V%{version}/%{github_name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
%if %{with qt6}
|
||||||
|
BuildRequires: qt6-qtbase-devel >= 6.3.0
|
||||||
|
BuildRequires: qt6-qtsvg-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: cmake >= 3.0
|
||||||
|
BuildRequires: qt5-qtbase-devel >= 5.15.0
|
||||||
|
BuildRequires: qt5-qtsvg-devel
|
||||||
|
BuildRequires: qt5-qtx11extras-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: hunspell-devel
|
||||||
|
BuildRequires: shared-mime-info
|
||||||
|
|
||||||
|
Requires: hicolor-icon-theme
|
||||||
|
|
||||||
|
%description
|
||||||
|
Lightweight Qt hierarchical notes-manager for Linux
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{github_name}-%{version} -p 1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake \
|
||||||
|
%if %{without qt6}
|
||||||
|
-DENABLE_QT5:BOOL=ON \
|
||||||
|
%endif
|
||||||
|
-DWITH_HUNSPELL:BOOL=ON
|
||||||
|
|
||||||
|
%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
|
||||||
|
%{_datadir}/icons/hicolor/scalable/mimetypes/text-%{name}-fnx.svg
|
||||||
|
%{_datadir}/mime/packages/%{name}.xml
|
||||||
|
%{_metainfodir}/%{name}.metainfo.xml
|
||||||
|
#%dir %{_datadir}/%{name}/translations
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed May 24 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 1.1.0-1
|
||||||
|
- Package init
|
||||||
4
feathernotes.yaml
Normal file
4
feathernotes.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: https://github.com/tsujan/FeatherNotes
|
||||||
|
tag_prefix: "v"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user