!4 add entr source package and spec file

From: @yaozc701
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-05-25 15:49:58 +08:00 committed by Gitee
commit 08d2b7e2dc
2 changed files with 47 additions and 0 deletions

BIN
entr-4.5.tar.gz Normal file

Binary file not shown.

47
entr.spec Normal file
View File

@ -0,0 +1,47 @@
Name: entr
Version: 4.5
Release: 1
Summary: Run arbitrary commands when files change
License: ISC
URL: http://eradman.com/%{name}project/
Source0: http://eradman.com/%{name}project/code/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: make
%description
entr is a file watcher runs specified commands when target files change
%global debug_package %{nil}
%prep
%setup -q
%build
./configure
make
%install
%make_install
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp LICENSE %{buildroot}/%{_docdir}/%{name}/
cp README.md %{buildroot}/%{_docdir}/%{name}/
cp NEWS %{buildroot}/%{_docdir}/%{name}
%check
make test
%files
/usr/local/bin/entr
/usr/local/share/man/man1/entr.1
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/NEWS
%{_docdir}/%{name}/README.md
%changelog
* Fri May 21 2021 yaozc7 <yaozc7@foxmail.com>
- add source package and spec file