-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from miguelbaldi/linux-native-packaging
Linux native packaging.
- Loading branch information
Showing
55 changed files
with
1,178 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,5 @@ krust-setup.exe | |
libs/ | ||
package.zip | ||
*.log | ||
LICENSE-win.md | ||
LICENSE | ||
*.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Regexes which if matched by a file path will always be excluded from | ||
# getting a license header | ||
excludes: | ||
- \.gitignore | ||
- .*lock | ||
- \.github/.* | ||
- \.vscode/.* | ||
- \.cargo/.* | ||
- \.git/.* | ||
- \.rpm/.* | ||
- \.licensure\.yml | ||
- \.editorconfig | ||
- README.* | ||
- LICENSE.* | ||
- COPYING | ||
- gtksourceview-5 | ||
- package | ||
- target | ||
- libs | ||
- docker-*.yml | ||
- data | ||
- setup.iss | ||
- .*\.(md|rst|txt|iss|desktop|svg|toml) | ||
change_in_place: true | ||
|
||
licenses: | ||
- files: any | ||
ident: GPL-3.0 | ||
unwrap_text: false | ||
authors: | ||
- name: Miguel A. Baldi Hörlle | ||
email: miguel.horlle@gmail.com | ||
template: | | ||
Copyright (c) [year], [name of author]. All rights reserved. Use of | ||
this source code is governed by the [ident] license that can be | ||
found in the COPYING file. | ||
# Define type of comment characters to apply based on file extensions. | ||
comments: | ||
# The extensions (or singular extension) field defines which file | ||
# extensions to apply the commenter to. | ||
- extensions: | ||
- rs | ||
commenter: | ||
type: line | ||
comment_char: "//" | ||
trailing_lines: 1 | ||
- extensions: | ||
- css | ||
- cpp | ||
- c | ||
- less | ||
commenter: | ||
type: block | ||
start_block_char: "/*\n" | ||
end_block_char: "*/" | ||
per_line_char: "*" | ||
trailing_lines: 1 | ||
- extension: any | ||
commenter: | ||
type: line | ||
comment_char: "#" | ||
trailing_lines: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
%define __spec_install_post %{nil} | ||
%define __os_install_post %{_dbpath}/brp-compress | ||
%define debug_package %{nil} | ||
|
||
Name: krust | ||
Summary: Kafka desktop client | ||
Version: @@VERSION@@ | ||
Release: @@RELEASE@@%{?dist} | ||
License: GPL-3.0-or-later | ||
Group: Development/Tools | ||
Source0: %{name}-%{version}.tar.gz | ||
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | ||
|
||
Requires: gtksourceview5 | ||
Requires: libadwaita | ||
Requires: cyrus-sasl-devel | ||
Requires: openssl-devel | ||
|
||
%description | ||
%{summary} | ||
|
||
%prep | ||
%setup -q | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
mkdir -p %{buildroot} | ||
cp -a * %{buildroot} | ||
mkdir -p %{buildroot}/usr/share/applications | ||
mkdir -p %{buildroot}/usr/share/pixmaps | ||
cp -a ../../../../../data/images/io.miguelbaldi.KRust* %{buildroot}/usr/share/pixmaps/ | ||
cp -a ../../../../../data/images/krust.png %{buildroot}/usr/share/pixmaps/ | ||
cp -a ../../../../../data/images/krust.svg %{buildroot}/usr/share/pixmaps/ | ||
cp -a ../../../../../*.desktop %{buildroot}/usr/share/applications/ | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{_bindir}/* | ||
%{_datadir}/applications/%{name}.desktop | ||
%{_datadir}/pixmaps/%{name}.svg | ||
%{_datadir}/pixmaps/%{name}.png | ||
%{_datadir}/pixmaps/io.miguelbaldi.KRust.png | ||
%{_datadir}/pixmaps/io.miguelbaldi.KRust.svg | ||
%{_datadir}/pixmaps/io.miguelbaldi.KRust-symbolic.svg | ||
%{_datadir}/pixmaps/io.miguelbaldi.KRust-symbolic.png |
Oops, something went wrong.