6c142ca
Name: sparse
Jeff Layton 4aadd74
Jeff Layton 4aadd74
Version: 0.6.4
Jeff Layton 4aadd74
Jeff Layton f022088
# either a rc? or %\{nil\}
Jeff Layton c25568b
%define rcver gce1a6720f69e
Jeff Layton 4aadd74
Jeff Layton 4aadd74
%if "x%{?rcver}" != "x"
Jeff Layton f022088
%define build_ver       %{version}-%{rcver}
Jeff Layton f022088
%define dotrc           .%{rcver}
Jeff Layton 4aadd74
%else
Jeff Layton f022088
%define build_ver       %{version}
Jeff Layton f022088
%define dotrc           %{nil}
Jeff Layton 4aadd74
%endif
Jeff Layton 4aadd74
565bffb
Release: 4%{dotrc}%{?dist}.2
Matt Domsch af2b6e5
Summary:    A semantic parser of source files
0979ee7
License:    MIT
84af312
URL:        https://sparse.wiki.kernel.org
fb87cd5
BuildRequires: make
Jeff Layton 9aece06
BuildRequires: gcc
53940d8
BuildRequires: libxml2-devel gtk2-devel
Jeff Layton 9aece06
BuildRequires: sqlite-devel
0cf8c5e
Jeff Layton 4aadd74
Source0:    https://www.kernel.org/pub/software/devel/sparse/dist/sparse-%{build_ver}.tar.xz
Jeff Layton 4c0a652
Patch0:	    0001-linearize.c-fix-buffer-overrun-warning-from-fortify.patch
Jeff Layton 3cfe343
Matt Domsch 075bee3
%description
Matt Domsch 075bee3
Sparse is a semantic parser of source files: it's neither a compiler
Matt Domsch 075bee3
(although it could be used as a front-end for one) nor is it a
Matt Domsch 075bee3
preprocessor (although it contains as a part of it a preprocessing
Matt Domsch 075bee3
phase).
Matt Domsch 075bee3
Matt Domsch 075bee3
It is meant to be a small - and simple - library.  Scanty and meager,
Matt Domsch 075bee3
and partly because of that easy to use.  It has one mission in life:
Matt Domsch 075bee3
create a semantic parse tree for some arbitrary user for further
Matt Domsch 075bee3
analysis.  It's not a tokenizer, nor is it some generic context-free
Matt Domsch 075bee3
parser.  In fact, context (semantics) is what it's all about - figuring
Matt Domsch 075bee3
out not just what the grouping of tokens are, but what the _types_ are
Matt Domsch 075bee3
that the grouping implies.
Matt Domsch 075bee3
Matt Domsch 075bee3
Sparse is primarily used in the development and debugging of the Linux kernel.
Matt Domsch 075bee3
Matt Domsch 075bee3
%prep
Jeff Layton ab44009
%autosetup -p1 -n sparse-%{build_ver}
Matt Domsch 075bee3
Jeff Layton f022088
%build
4ed16ad
%define make_destdir \
4ed16ad
make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" \\\
4ed16ad
     BINDIR="%{_bindir}" LIBDIR="%{_libdir}" \\\
Jeff Layton f022088
     INCLUDEDIR="%{_includedir}" PKGCONFIGDIR="%{_libdir}/pkgconfig"
Matt Domsch 075bee3
afdbb2f
%make_destdir %{?_smp_mflags} CFLAGS="%{optflags}" HAVE_LLVM=no
Matt Domsch 075bee3
Matt Domsch 075bee3
%install
Matt Domsch 075bee3
rm -rf %{buildroot}
Matt Domsch 075bee3
mkdir -p %{buildroot}%{_bindir}
Matt Domsch 075bee3
mkdir -p %{buildroot}%{_libdir}
8c2b39c
%make_destdir install HAVE_LLVM=no
4ed16ad
4ed16ad
%check
8c2b39c
make check HAVE_LLVM=no
Matt Domsch 075bee3
Matt Domsch 075bee3
%clean
Matt Domsch 075bee3
rm -rf %{buildroot}
4ed16ad
make clean
Matt Domsch 075bee3
Matt Domsch 075bee3
%files
Matt Domsch 075bee3
%doc LICENSE README FAQ
Matt Domsch 075bee3
%{_bindir}/sparse
Jeff Layton af5a3f4
%{_bindir}/semind
Matt Domsch af2b6e5
%{_bindir}/cgcc
0cf8c5e
%{_bindir}/c2xml
3ce8774
%{_bindir}/test-inspect
0cf8c5e
%{_mandir}/man1/*
Matt Domsch 075bee3
Matt Domsch 075bee3
%changelog
565bffb
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-4.gce1a6720f69e.2
565bffb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
565bffb
3797b0e
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-4.gce1a6720f69e.1
3797b0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
3797b0e
Jeff Layton c25568b
* Wed Feb 22 2023 Jeff Layton <jlayton@redhat.com> - 0.6.4-4.gce1a6720f69e
Jeff Layton c25568b
- Update to latest sparse git (commit ce1a6720f69e)
Jeff Layton 4c0a652
- Fix bogus snprintf length argument in linearize.c (bz2171731)
Jeff Layton c25568b
0de6369
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3.1
0de6369
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
0de6369
Jeff Layton 90d796a
* Fri Aug 19 2022 Jeff Layton <jlayton@redhat.com> - 0.6.4-3
Jeff Layton 83d78a5
- bump release to get around package version issue
Jeff Layton 83d78a5
Jeff Layton ab44009
* Wed Aug 10 2022 Jeff Layton <jlayton@redhat.com> - 0.6.4-2
Jeff Layton ab44009
- Add patch to address typeof() issues
Jeff Layton ab44009
1d17ab8
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-1.2
1d17ab8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1d17ab8
a41d6f4
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-1.1
a41d6f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a41d6f4
Jeff Layton 7235a67
* Tue Sep 07 2021 Jeff Layton <jlayton@redhat.com> - 0.6.4-1
Jeff Layton 7235a67
- Update to 0.6.4 release
Jeff Layton 7235a67
Jeff Layton ed064ad
* Wed Sep 01 2021 Jeff Layton <jlayton@redhat.com> - 0.6.4.rc1-2
Jeff Layton ed064ad
- Fix rpmlint warnings
Jeff Layton ed064ad
Jeff Layton f022088
* Wed Sep 01 2021 Jeff Layton <jlayton@redhat.com> - 0.6.4.rc1-1
Jeff Layton 4aadd74
- Update to 0.6.4-rc1 release
Jeff Layton 4aadd74
261664f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-3
261664f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
261664f
96bd4ed
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-2
96bd4ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
96bd4ed
Jeff Layton af5a3f4
* Mon Oct 19 2020 Jeff Layton <jlayton@redhat.com> - 0.6.3-1
Jeff Layton af5a3f4
- Update to 0.6.3 release
Jeff Layton af5a3f4
Jeff Layton b8b5161
* Mon Aug 17 2020 Jeff Layton <jlayton@redhat.com> - 0.6.2-3
Jeff Layton b8b5161
- Add some patches from upstream maint-v0.6.2 branch
Jeff Layton b8b5161
aa3fe3a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
aa3fe3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
aa3fe3a
Jeff Layton 2d9f617
* Sun Jun 21 2020 Jeff Layton <jlayton@redhat.com> - 0.6.2-1
Jeff Layton 2d9f617
- Update to 0.6.2 release
Jeff Layton 2d9f617
7d5281f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
7d5281f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7d5281f
Jeff Layton f322867
* Fri Nov 08 2019 Jeff Layton <jlayton@redhat.com> - 0.6.1-1
Jeff Layton f322867
- Update to 0.6.1 release
Jeff Layton f322867
1b1d14e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
1b1d14e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1b1d14e
139cf39
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
139cf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
139cf39
2b9a0a4
* Sun Jan 06 2019 Jeff Layton <jlayton@redhat.com> - 0.6.0-1
2b9a0a4
- Update to 0.6.0 release
2b9a0a4
2be4ce0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
2be4ce0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2be4ce0
f95f332
* Sat Apr 14 2018 Jeff Layton <jlayton@redhat.com> - 0.5.2-1
8a5b2ae
-  Update to v0.5.2 release
8a5b2ae
f705491
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
f705491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f705491
afdbb2f
* Wed Oct 25 2017 Jeff Layton <jlayton@redhat.com> - 0.5.1-2
afdbb2f
- Rework CFLAGS handling patch
afdbb2f
3e09a68
* Wed Oct 18 2017 Jeff Layton <jlayton@redhat.com> - 0.5.1-1
3e09a68
- Update to v0.5.1 release
3e09a68
8d7de07
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-13
8d7de07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8d7de07
7f65dec
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-12
7f65dec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7f65dec
56d81ec
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-11
56d81ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
56d81ec
ad04767
* Thu Nov 17 2016 Jeff Layton <jlayton@redhat.com> - 0.5.0-10
ad04767
- bring sparse up to the state of upstream git tree
ad04767
77275fe
* Mon Nov 14 2016 Kamil Dudka <kdudka@redhat.com> - 0.5.0-9
8c2b39c
- avoid unnecessary build failure if llvm-devel is installed (bz# 1186794)
8c2b39c
6ef19d5
* Mon Nov 14 2016 Jeff Layton <jlayton@redhat.com> - 0.5.0-8
6ef19d5
- Fix storage_modifiers handling of SForced (bz# 1109560)
6ef19d5
a9d8b11
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-7
a9d8b11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a9d8b11
62cb7cc
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-6
62cb7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
62cb7cc
6c2eaad
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5
6c2eaad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6c2eaad
Jeff Layton 3cfe343
* Thu Jul 17 2014 Jeff Layton <jlayton@primarydata.com> - 0.5.0-4
Jeff Layton 3cfe343
- Fix handling of boolean sizes
Jeff Layton 3cfe343
Jeff Layton b523d08
* Sun Jun 15 2014 Jeff Layton <jlayton@primarydata.com> - 0.5.0-3
Jeff Layton b523d08
- Remove -fpic and -fPIC from CFLAGS. Seems to be causing weird effects with
Jeff Layton b523d08
  -O2. (bz# 1109560)
Jeff Layton b523d08
8a0d1e9
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
8a0d1e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8a0d1e9
0979ee7
* Wed Feb 26 2014 Jeff Layton <jlayton@redhat.com> - 0.5.0-1
0979ee7
- update to v0.5.0
0979ee7
be9fe87
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.5.rc1-3
be9fe87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
be9fe87
1965f7c
* Fri Jul 19 2013 Jeff Layton <jlayton@redhat.com> - 0.4.5.rc1-2
1965f7c
- add test patch to silence warnings about __builtin_va_arg_pack() and
1965f7c
  __builtin_va_arg_pack_len()
1965f7c
4ba8eaa
* Tue Jul 09 2013 Jeff Layton <jlayton@redhat.com> - 0.4.5.rc1-1
4ba8eaa
- update to upstream rc1 release
4ba8eaa
d256291
* Thu Jun 27 2013 Jeff Layton <jlayton@redhat.com> - 0.4.4-6
d256291
- add built-in byte swap identifiers
d256291
36bb81b
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-5
36bb81b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
36bb81b
85ab9b7
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-4
85ab9b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
85ab9b7
8ad7b7c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-3
8ad7b7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8ad7b7c
84af312
* Wed Nov 30 2011 Jeff Layton <jlayton@redhat.com> - 0.4.4-2
84af312
- fix project URL in specfile (again) (bz#732529)
84af312
3ce8774
* Wed Nov 30 2011 Jeff Layton <jlayton@redhat.com> - 0.4.4-1
3ce8774
- update to new upstream release (bz#757482)
3ce8774
dd4a1b1
* Mon Aug 29 2011 Jeff Layton <jlayton@redhat.com> - 0.4.3-4
dd4a1b1
- fix project URL in specfile (bz#732529)
dd4a1b1
09e899c
* Thu Jun 23 2011 Jeff Layton <jlayton@redhat.com> - 0.4.3-3
09e899c
- fix build with gcc 4.6 (bz#716105)
09e899c
c8a279d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-2
c8a279d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c8a279d
ba436cd
* Mon Nov 08 2010 Jeff Layton <jlayton@redhat.com> - 0.4.3-1
ba436cd
- Update to 0.4.3
ba436cd
ba436cd
* Sun Oct 18 2009 Jeff Layton <jlayton@redhat.com> - 0.4.2-1
ff21ab6
- Update to 0.4.2
ff21ab6
0ef9448
* Tue Sep 29 2009 Jeff Layton <jlayton@redhat.com> - 0.4.2rc1-1
0ef9448
- Update to 0.4.2rc1
0ef9448
27ca26e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
27ca26e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
27ca26e
865f7d9
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
865f7d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
865f7d9
2928690
* Sun Jun  1 2008 Tom "spot" Callaway 
2928690
- use fPIC on sparcv9/sparc64
2928690
291273e
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.1-2
291273e
- Autorebuild for GCC 4.3
291273e
92f0b21
* Tue Nov 13 2007 Roland McGrath <roland@redhat.com> - 0.4.1-1
92f0b21
- Upgrade to 0.4.1
92f0b21
4ed16ad
* Thu Nov  1 2007 Roland McGrath <roland@redhat.com> - 0.4-2
0cf8c5e
- Upgrade to 0.4
0cf8c5e
- Install man pages, c2xml.
4ed16ad
- Run make check in rpmbuild.
0cf8c5e
16e8b4c
* Tue Aug 28 2007 Roland McGrath <roland@redhat.com> - 0.3-2
16e8b4c
- Canonicalize License: tag.
16e8b4c
6c142ca
* Thu May  3 2007 Roland McGrath <roland@redhat.com> - 0.3-1
6c142ca
- Upgrade to 0.3
6c142ca
Matt Domsch 2cf2e42
* Tue Dec 05 2006 Matt Domsch <Matt_Domsch@dell.com> 0.2-1
Matt Domsch 2cf2e42
- Upgrade to 0.2, add -devel package
Matt Domsch 2cf2e42
Matt Domsch af2b6e5
* Thu Nov 09 2006 Matt Domsch <Matt_Domsch@dell.com> 0.1-1
Matt Domsch af2b6e5
- Upgrade to 0.1, no need for snapshots, yea!  New upstream maintainer.
Matt Domsch af2b6e5
- cgcc now installed
Matt Domsch af2b6e5
Matt Domsch 075bee3
* Thu Oct 26 2006 Matt Domsch <Matt_Domsch@dell.com> 0-0.1.20061026git
Matt Domsch 075bee3
- Initial packaging for Fedora Extras