blob: ca8e3709be35b5e3aeeffc4d16ec52d9dc2f7305 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
Name: @PROGRAM_NAME@
Version: @PROGRAM_VERSION@
Release: 1%{?dist}
Summary: Simple common test judge program
Group: Applications
License: 3-clause BSD license
URL: http://www.tfcis.org/~lantw44/programs.html
Source0: sctjudge-%{version}.tar.gz
BuildRequires: gcc glibc-devel libcap libcap-devel
Requires: glibc libcap
%description
一個簡易的程式設計題目評測程式
%prep
%setup -q
%build
%configure --enable-procmon --enable-cap
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make -i install DESTDIR=$RPM_BUILD_ROOT
%post
setcap 'cap_sys_chroot,cap_setuid,cap_setgid,cap_kill+ep' %{_bindir}/sctjudge
%files
%defattr(-,root,root,-)
%doc
%{_bindir}/sctjudge
%changelog
|