]> andersk Git - splint.git/blame - splint.spec
noexpand always false.
[splint.git] / splint.spec
CommitLineData
aa9c1601 1%define prefix /usr
2%define ver 3.0.1.6
3Summary: Splint - A tool for statically checking C programs
4Name: splint
5Version: %ver
6Release: 1
7Copyright: MIT
8Url: http://www.splint.org
9
10Packager: Heiko Abraham, abrahamh@web.de
11Group: Development/Languages
12Source: %{name}-%{ver}.src.tgz
13
14BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
15Requires: gcc
16
17
18
19
20
21%description
22Splint is a tool for statically checking C programs for security vulnerabilities
23and common programming mistakes. With minimal effort, Splint can be used as a
24better lint(1).If additional effort is invested adding annotations to programs,
25Splint can perform stronger checks than can be done by any standard lint. For
26full documentation, please see http://www.splint.org.
27
28Please set environment variables:
29- LARCH_PATH=%{prefix}/share/splint/lib
30 and
31- LCLIMPORTDIR=%{prefix}/share/splint/imports
32.
33
34%prep
35%setup -q
36
37%build
38CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
39make
40
41%install
42rm -rf $RPM_BUILD_ROOT
43mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
44mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
45mkdir -p $RPM_BUILD_ROOT%{prefix}/share/splint/imports
46mkdir -p $RPM_BUILD_ROOT%{prefix}/share/splint/lib
47mkdir -p $RPM_BUILD_ROOT%{prefix}/share/man/man1
48
49make DESTDIR=$RPM_BUILD_ROOT install
50
51# now install docs, why 'make install' will not do this
52cp README $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
53cp doc/*.html $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
54cp doc/*.pdf $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
55
56
57
58%post
59
60%preun
61
62
63
64%clean
65rm -rf $RPM_BUILD_ROOT/*
66rm -rf $RPM_BUILD_DIR/%{name}-%{PACKAGE_VERSION}/*
67
68
69
70
71%files
72%{prefix}/bin/splint
73%{prefix}/share/splint/imports/*
74%{prefix}/share/splint/lib/*
75%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}/*
76
77
78
79
80
81
This page took 0.088789 seconds and 5 git commands to generate.