entr/entr.spec
caodongxia 59292e56c6 add debug package to add strip
(cherry picked from commit b7b9cb3a0273530b1289c62fa3d5888e78d609c4)
2022-10-17 11:21:30 +08:00

53 lines
1.0 KiB
RPMSpec

Name: entr
Version: 5.0
Release: 2
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
A file watcher, which can run specified commands
when target files change.
%prep
%setup -q
%build
export CFLAGS="${RPM_OPT_FLAGS}"
./configure
make
%install
%make_install PREFIX=/usr
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
%{_bindir}/entr
%{_mandir}/man1/entr.1.gz
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/NEWS
%{_docdir}/%{name}/README.md
%changelog
* Wed Aug 24 2022 caodongxia <caodongxia@h-partners.com> -5.0-2
- Add debug package to add strip
* Sun Aug 29 2021 Leo <clouds@isrc.iscas.ac.cn> - 5.0-1
- first publish of version 5.0