Plug a memory leak in preprocessor handling of define directive
[splint-patched.git] / splint.spec
blobb7186724f85a5528d8075073b42929ed6d4a3f27
1 %define prefix /usr
2 %define ver 3.0.1.6
3 Summary: Splint - A tool for statically checking C programs
4 Name: splint
5 Version: %ver
6 Release: 1
7 Copyright: MIT
8 Url: http://www.splint.org
10 Packager: Heiko Abraham, abrahamh@web.de
11 Group: Development/Languages
12 Source: %{name}-%{ver}.src.tgz
14 BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
15 Requires: gcc
21 %description
22 Splint is a tool for statically checking C programs for security vulnerabilities
23 and common programming mistakes. With minimal effort, Splint can be used as a
24 better lint(1).If additional effort is invested adding annotations to programs,
25 Splint can perform stronger checks than can be done by any standard lint. For
26 full documentation, please see http://www.splint.org.
28 Please set environment variables:
29 - LARCH_PATH=%{prefix}/share/splint/lib
30 and
31 - LCLIMPORTDIR=%{prefix}/share/splint/imports
34 %prep
35 %setup -q
37 %build
38 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
39 make
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
44 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
45 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/splint/imports
46 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/splint/lib
47 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/man/man1
49 make DESTDIR=$RPM_BUILD_ROOT install
51 # now install docs, why 'make install' will not do this
52 cp README $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
53 cp doc/*.html $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
54 cp doc/*.pdf $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}
58 %post
60 %preun
64 %clean
65 rm -rf $RPM_BUILD_ROOT/*
66 rm -rf $RPM_BUILD_DIR/%{name}-%{PACKAGE_VERSION}/*
71 %files
72 %{prefix}/bin/splint
73 %{prefix}/share/splint/imports/*
74 %{prefix}/share/splint/lib/*
75 %{prefix}/share/doc/%{name}-%{PACKAGE_VERSION}/*