]> git.pld-linux.org Git - packages/bsddate.git/commitdiff
- new: port of (Free)BSD date(1) with useful -f, -r, -v options master
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 28 Nov 2007 18:14:12 +0000 (18:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bsddate.spec -> 1.1

bsddate.spec [new file with mode: 0644]

diff --git a/bsddate.spec b/bsddate.spec
new file mode 100644 (file)
index 0000000..5e58c73
--- /dev/null
@@ -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*
This page took 0.070398 seconds and 4 git commands to generate.