From b3eefe29ba1aecb41fd4fb13d91cec4fe6a54b54 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 28 Nov 2007 18:14:12 +0000 Subject: [PATCH] - new: port of (Free)BSD date(1) with useful -f, -r, -v options Changed files: bsddate.spec -> 1.1 --- bsddate.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bsddate.spec diff --git a/bsddate.spec b/bsddate.spec new file mode 100644 index 0000000..5e58c73 --- /dev/null +++ b/bsddate.spec @@ -0,0 +1,45 @@ +Summary: BSD version of date(1) utility +Summary(pl.UTF-8): Wersja BSD narzędzia date(1) +Name: bsddate +Version: 6.2 +Release: 1 +License: BSD +Group: Applications +# taken from FreeBSD CVS +Source0: %{name}.tar.bz2 +# Source0-md5: fdd25d587e4568e5ffd2dc253b9b1117 +Patch0: %{name}-linux.patch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +BSD version of date(1) utility, ported from FreeBSD 6.2. + +%description -l pl.UTF-8 +Wersja BSD narzędzia date(1) przeniesiona z FreeBSD 6.2. + +%prep +%setup -q -n date +%patch0 -p1 + +head -n 28 date.c > COPYING + +%build +%{__make} \ + CC="%{__cc}" \ + CFLAGS="%{rpmcflags} -Wall" \ + LDFLAGS="%{rpmldflags}" + +%install +rm -rf $RPM_BUILD_ROOT + +install -D date $RPM_BUILD_ROOT%{_bindir}/bsddate +install -D date.1 $RPM_BUILD_ROOT%{_mandir}/man1/bsddate.1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc COPYING +%attr(755,root,root) %{_bindir}/bsddate +%{_mandir}/man1/bsddate.1* -- 2.43.0