!1 package init

Merge pull request !1 from Causeway_Bay/master
This commit is contained in:
openeuler-ci-bot 2020-07-16 19:33:26 +08:00 committed by Gitee
commit cd78c72102
3 changed files with 53 additions and 0 deletions

BIN
tmpwatch-2.11.tar.bz2 Normal file

Binary file not shown.

49
tmpwatch.spec Normal file
View File

@ -0,0 +1,49 @@
Name: tmpwatch
Version: 2.11
Release: 14
Summary: Utility to delete files based on last time they were accessed
URL: https://pagure.io/tmpwatch
Source0: https://releases.pagure.org/tmpwatch/tmpwatch-2.11.tar.bz2
License: GPLv2
Requires: psmisc
Provides: bundled(gnulib)
BuildRequires: gcc psmisc gdb
%description
The tmpwatch utility recursively searches through specified
directories and removes files which have not been accessed in a
specified period of time. Tmpwatch is normally used to clean up
directories which are used for temporarily holding files.
%package help
Summary: Help doctment for the tmpwatch package
%description help
Help doctment for the tmpwatch package
%prep
%autosetup -n tmpwatch-%{version} -p1
%build
%configure
%make_build
%install
%make_install INSTALL='install -p'
mkdir -p %{buildroot}%{_bindir}
ln -s $(echo %{_bindir} |sed 's,/[^/]\+,/..,g; s,^/,,')%{_sbindir}/tmpwatch \
%{buildroot}%{_bindir}/tmpwatch
%files
%doc COPYING
%{_bindir}/tmpwatch
%{_sbindir}/tmpwatch
%files help
%doc AUTHORS ChangeLog NEWS README
%{_mandir}/man8/tmpwatch.8*
%changelog
* Mon Apr 20 2020 songzhenyu<songzhenyu@huawei.com> - 2.11-14
- Package init

4
tmpwatch.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://pagure.io/tmpwatch.git
tag_prefix: "^tmpwatch-"
seperator: "."