From 1e89e1b2436127169060b1bd4ecb2a8bb85e3dbe Mon Sep 17 00:00:00 2001
From: CoprDistGit <copr-devel@lists.fedorahosted.org>
Date: Tue, 21 Feb 2023 06:31:22 +0000
Subject: automatic import of i3blocks-contrib

---
 .gitignore            |  1 +
 i3blocks-contrib.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |  1 +
 3 files changed, 57 insertions(+)
 create mode 100644 i3blocks-contrib.spec
 create mode 100644 sources

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
-- 
cgit v1.2.3