entr/entr.spec

53 lines
1.0 KiB
RPMSpec
Raw Normal View History

2021-05-21 13:33:37 +08:00
Name: entr
Version: 5.0
Release: 2
2021-05-21 13:33:37 +08:00
Summary: Run arbitrary commands when files change
2021-05-21 13:33:37 +08:00
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.
2021-05-21 13:33:37 +08:00
%prep
%setup -q
%build
export CFLAGS="${RPM_OPT_FLAGS}"
2021-05-21 13:33:37 +08:00
./configure
make
%install
%make_install PREFIX=/usr
2021-05-21 13:33:37 +08:00
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
2021-05-21 13:33:37 +08:00
%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
2021-05-21 13:33:37 +08:00