summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-18 11:17:15 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-18 11:17:15 +0000
commitfcff7e5122d434c488e4712f4fd5388497e9338b (patch)
treebdb701d7e13d0c8341ebaca2965a3b3f3e958301
parent43a9399b5bef69437505e67db3cca87e077090d7 (diff)
automatic import of i3blocks-contribopeneuler22.09
-rw-r--r--.gitignore1
-rw-r--r--i3blocks-contrib.spec55
-rw-r--r--sources1
3 files changed, 57 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4abb2e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fc2c105.tar.gz
diff --git a/i3blocks-contrib.spec b/i3blocks-contrib.spec
new file mode 100644
index 0000000..e44f7ba
--- /dev/null
+++ b/i3blocks-contrib.spec
@@ -0,0 +1,55 @@
+%global commit fc2c10551c32558be44226c6924d64bae611e32c
+%global shortcommit fc2c105
+%global date 2023
+
+Name: i3blocks-contrib
+Version: 2.0.0
+Release: 1.%{date}git%{shortcommit}%{?dist}
+Summary: Community contributed blocklets for i3blocks.
+
+License: GPLv3+
+URL: https://github.com/vivien/i3blocks-contrib
+Source0: %{url}/archive/%{shortcommit}.tar.gz
+
+BuildRequires: gcc
+# we do not list all the optional requires here
+# if user want to use some `plugins`, he/she should
+# read the README in blocklet dir and install it manually
+Requires: i3blocks
+
+# remove some depends we do not have
+%global opt Data::Validate::URI
+%global opt %{opt}|JSON::Parse
+
+%global __requires_exclude ^perl[(](%{opt})[)]
+
+%description
+This repository contains a set of scripts (a.k.a. blocklets) for i3blocks, contributed by the community.
+
+%prep
+%autosetup -n %{name}-%{commit}
+
+%build
+sed -i 's|/bin/perl|/usr/bin/perl|' purpleair/purpleair
+make
+
+%install
+make DESTDIR=%{buildroot} PREFIX=%{_usr} install
+install -d %{buildroot}%{_docdir}/%{name}
+cp --parents */README* -t %{buildroot}%{_docdir}/%{name}/
+cp --parents */LICENSE* -t %{buildroot}%{_docdir}/%{name}/
+cp --parents */i3blocks.conf -t %{buildroot}%{_docdir}/%{name}/
+cp --parents */*{,/}*.png -t %{buildroot}%{_docdir}/%{name}/
+
+%files
+%{_libexecdir}/i3blocks
+%license LICENSE.md
+%doc README.adoc
+%doc ISSUE_TEMPLATE.md
+%doc config.example
+%doc CONTRIBUTING.md
+%doc %{_docdir}/%{name}
+
+%changelog
+* Thu Feb 16 2023 lichaoran <pkwarcraft@hotmail.com> 2.0.0-1
+- Initial build
diff --git a/sources b/sources
new file mode 100644
index 0000000..9eee511
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b73f6a3171df9d15adfc6e8733362912 fc2c105.tar.gz