add entr source package and spec file

This commit is contained in:
yaozc701 2021-05-21 13:33:37 +08:00
parent 992a8ee3ac
commit 9bf785a7b7
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