Skip to content

Commit

Permalink
yaks
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed May 16, 2024
1 parent 4d1aef9 commit 8b3e9cf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/vendor
/cosmic-clipboard-manager-0.1.0-vendor.tar.xz
32 changes: 16 additions & 16 deletions cosmic-clipboard-manager.spec
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
# Generated by rust2rpm 26
%bcond_without check

# prevent library files from being installed
%global cargo_install_lib 0

%global ver 0.1.0
%global commit 876c73d228c24e7a85e1e39ef7265e1e81d106ca
%global commit 4d1aef9ec8ca51da115cad9766459d8eb709b29d
%global date 20240426.18

Name: cosmic-clipboard-manager
Version: %{ver}~git%{date}.%{sub %{commit} 1 7}
Release: %autorelease
Summary: Clipboard manager for the COSMIC Desktop Environment

SourceLicense: MIT
License: MIT

URL: https://github.com/wiiznokes/cosmic-clipboard-manager
Summary: Clipboard manager for wayland

SourceLicense: MIT
License: MIT
URL: https://github.com/wiiznokes/cosmic-clipboard-manager.git

Source: https://github.com/wiiznokes/cosmic-clipboard-manager/archive/%{commit}.tar.gz

BuildRequires: cargo-rpm-macros >= 25
BuildRequires: rustc
BuildRequires: lld
BuildRequires: cargo
Source: cosmic-clipboard-manager-0.1.0-vendor.tar.xz

BuildRequires: cargo-rpm-macros >= 26

%global _description %{expand:
%{summary}.}

%description %{_description}

%prep
%autosetup -n cosmic-comp-%{commit} -p1 -a1
%cargo_prep -N
cat .vendor/config.toml >> .cargo/config
%autosetup -n %{crate}-%{version} -p1 -a1
%cargo_prep -v vendor

%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%{cargo_vendor_manifest}
sed 's/\(.*\) (.*#\(.*\))/\1+git\2/' -i cargo-vendor.txt

%install
just rootdir=%{buildroot} prefix=%{_prefix} install
%cargo_install

%if %{with check}
%check
Expand All @@ -52,6 +50,8 @@ just rootdir=%{buildroot} prefix=%{_prefix} install
%license LICENSE
%license LICENSE.dependencies
%license cargo-vendor.txt
%doc DEV.md
%doc README.md
%{_bindir}/cosmic-clipboard-manager
%{_datadir}/applications/io.github.wiiznokes.cosmic-clipboard-manager.desktop
%{_datadir}/share/icons/hicolor/scalable/apps/io.github.wiiznokes.cosmic-clipboard-manager.svg
Expand Down

0 comments on commit 8b3e9cf

Please sign in to comment.