entr/entr.spec
cherry530 631cabd9c2 fix build error due to glibc upgrade
Signed-off-by: cherry530 <707078654@qq.com>
2023-07-29 18:27:09 +08:00

58 lines
1.2 KiB
RPMSpec

Name: entr
Version: 5.0
Release: 3
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
Patch0: Update-copy-of-strlcpy.patch
BuildRequires: gcc
BuildRequires: make
%description
A file watcher, which can run specified commands
when target files change.
%prep
%autosetup -n %{name}-%{version} -p1
%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
* Sat Jul 29 2023 xu_ping <707078654@qq.com> -5.0-3
- fix build error due to glibc upgrade
* 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