]>
Commit | Line | Data |
---|---|---|
efd472d0 ER |
1 | # skeleton for rpm testing. |
2 | # create your own test in separate branch, keep master branch clean | |
bfa51a85 ER |
3 | # |
4 | # git checkout -b test/feature | |
5 | # git push origin -u test/feature | |
efd472d0 ER |
6 | Summary: testing something |
7 | Name: test | |
9d98269a | 8 | Version: 1 |
b1247bf1 | 9 | Release: 7 |
9d98269a KK |
10 | License: GPL |
11 | Group: Applications/System | |
12 | URL: http://www.pld-linux.org/ | |
9d98269a KK |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
efd472d0 | 16 | testing something |
9d98269a KK |
17 | |
18 | %prep | |
19 | %setup -qcT | |
f30ddab9 JP |
20 | cat > test.c <<EOF |
21 | #include <stdio.h> | |
22 | #include <sys/auxv.h> | |
23 | ||
24 | int main() { | |
25 | printf("%lu\n", getauxval(AT_SECURE)); | |
26 | } | |
27 | EOF | |
28 | %{__cc} test.c -o test | |
29 | ./test | |
9d98269a KK |
30 | |
31 | %install | |
efd472d0 | 32 | rm -rf $RPM_BUILD_ROOT |
bfa51a85 | 33 | install -d $RPM_BUILD_ROOT |
9d98269a KK |
34 | |
35 | %clean | |
bfa51a85 | 36 | rm -rf $RPM_BUILD_ROOT |
9d98269a KK |
37 | |
38 | %files | |
39 | %defattr(644,root,root,755) |