LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sparse.spec of Package sparse (Project home:janblunck)

#
# spec file for package sparse (Version 0.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           sparse
Summary:        A semantic parser of source files
License:        Open Software License
Group:          Development/Tools/Building
Version:        0.4.1
Release:        1
Autoreqprov:    on
Source:         %{name}-%{version}.tar.gz
URL:            http://kernel.org/pub/linux/kernel/people/josh/sparse/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Sparse is a semantic parser of source files: it's neither a compiler
(although it could be used as a front-end for one) nor is it a
preprocessor (although it contains as a part of it a preprocessing
phase).

It is meant to be a small - and simple - library.  Scanty and meager,
and partly because of that easy to use.  It has one mission in life:
create a semantic parse tree for some arbitrary user for further
analysis.  It's not a tokenizer, nor is it some generic context-free
parser.  In fact, context (semantics) is what it's all about - figuring
out not just what the grouping of tokens are, but what the _types_ are
that the grouping implies.

Sparse is primarily used in the development and debugging of the Linux
kernel.



Authors:
--------
    Linus Torvalds
    Josh Triplett

%package devel
Summary:        A semantic parser of source files
License:        Open Software License
Group:          Development/Tools/Building

%description devel
Sparse is a semantic parser of source files: it's neither a compiler
(although it could be used as a front-end for one) nor is it a
preprocessor (although it contains as a part of it a preprocessing
phase).


%prep
%setup -q

%build
make PREFIX="%{_prefix}" CFLAGS="%{optflags} -Wwrite-strings -fpic"

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
make PREFIX=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} install

%files
%defattr(-,root,root)
%doc LICENSE README FAQ
%{_bindir}/sparse
%{_bindir}/cgcc
%doc %{_mandir}/man?/*

%files devel
%defattr(-,root,root)
%{_prefix}/include/sparse/
%{_libdir}/libsparse.a
%{_libdir}/pkgconfig/sparse.pc

%changelog -n sparse
* Sun Feb 17 2008 - jblunck@suse.de
- Update to Sparse 0.4.1
* Tue Nov 14 2006 - agruen@suse.de
- Initial package.