Skip to content

Commit 1f17210

Browse files
committed
Add GitHub Actions workflow for RPM and DEB build
1 parent b9afe2d commit 1f17210

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

packaging/rpm/count-files.spec

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Name: count-files
2+
Version: 1.0
3+
Release: 1%{?dist}
4+
Summary: Script to count regular files in /etc
5+
6+
License: MIT
7+
URL: https://github.com/LmaksL/linux-lab-scripts
8+
Source0: %{name}-%{version}.tar.gz
9+
BuildArch: noarch
10+
Requires: bash
11+
Requires: coreutils
12+
Requires: findutils
13+
14+
%description
15+
A Bash script that counts the number of regular files
16+
in the /etc directory, excluding directories and symbolic links.
17+
18+
%prep
19+
%setup -q
20+
21+
%build
22+
# nothing to build
23+
24+
%install
25+
mkdir -p %{buildroot}%{_bindir}
26+
install -m 755 count_files.sh %{buildroot}%{_bindir}/count_files
27+
28+
%files
29+
%{_bindir}/count_files
30+
31+
%changelog
32+
* Wed Dec 24 2025 Maks Boiko <maks38qwerty@gmail.com> - 1.0-1
33+
- Initial package release

0 commit comments

Comments
 (0)