aboutsummaryrefslogtreecommitdiffstats
path: root/sctjudge.spec.in
blob: f87de598376075a02e6a412ae4186fa22d6307f7 (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
Name:           @PROGRAM_NAME@
Version:        @PROGRAM_RPMVERSION@
Release:        1%{?dist}
Summary:        Simple common test judge program

Group:          Applications
License:        BSD
URL:            http://www.tfcis.org/~lantw44/programs.html
Source0:        @PROGRAM_NAME@-@PROGRAM_VERSION@.tar.gz

BuildRequires:  gcc glibc-devel libcap libcap-devel
Requires:       glibc libcap

%description
一個簡易的程式設計題目評測程式

%prep
%setup -q -n @PROGRAM_NAME@-@PROGRAM_VERSION@


%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,-)
%{_bindir}/sctjudge
%doc COPYING INSTALL README

%changelog