diff --git a/tmpwatch-2.11.tar.bz2 b/tmpwatch-2.11.tar.bz2 new file mode 100644 index 0000000..51068a5 Binary files /dev/null and b/tmpwatch-2.11.tar.bz2 differ diff --git a/tmpwatch.spec b/tmpwatch.spec new file mode 100644 index 0000000..a44d5bf --- /dev/null +++ b/tmpwatch.spec @@ -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 - 2.11-14 +- Package init diff --git a/tmpwatch.yaml b/tmpwatch.yaml new file mode 100644 index 0000000..64030ec --- /dev/null +++ b/tmpwatch.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://pagure.io/tmpwatch.git +tag_prefix: "^tmpwatch-" +seperator: "."