]> git.pld-linux.org Git - packages/clock.git/commitdiff
almost raw
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 19 Aug 1999 20:07:25 +0000 (20:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clock.spec -> 1.1

clock.spec [new file with mode: 0644]

diff --git a/clock.spec b/clock.spec
new file mode 100644 (file)
index 0000000..c186537
--- /dev/null
@@ -0,0 +1,39 @@
+Summary: A utility for querying and setting system time.
+Name: clock
+Version: 1.1
+Release: 6
+ExclusiveArch: sparc alpha
+Copyright: distributable
+Group: System Environment/Base
+Source: clock-1.1.tar.gz
+Patch0: clock-1.1-fix.patch
+Patch1: clock-1.1-fix2.patch
+BuildRoot: /var/tmp/clockroot
+
+%description
+The clock utility is used to query and set system time.
+
+The clock program is a basic system utility and should be installed
+on your system.
+
+%prep 
+%setup
+%patch0 -p1 -b .fix
+%patch1 -p1 -b .fix2
+
+%build
+gcc $RPM_OPT_FLAGS -Wall -o clock clock-$(uname -m).c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/sbin
+mkdir -p $RPM_BUILD_ROOT/usr/man/man8
+install -s -m755 clock $RPM_BUILD_ROOT/sbin
+install -m 644 clock.8 $RPM_BUILD_ROOT/usr/man/man8
+
+%files
+%attr(-,root,root) /sbin/clock
+%attr(-,root,root) /usr/man/man8/clock.8
+
+%clean
+rm -rf $RPM_BUILD_ROOT
This page took 0.083451 seconds and 4 git commands to generate.