The package rpms/iwyu.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/iwyu.git/commit/?id=3cfc074af771c44e... https://src.fedoraproject.org/cgit/rpms/iwyu.git/commit/?id=423431ccec339e40... https://src.fedoraproject.org/cgit/rpms/iwyu.git/commit/?id=d1b9a4c378e557e9... https://src.fedoraproject.org/cgit/rpms/iwyu.git/commit/?id=72ccb5880e99e0ff... https://src.fedoraproject.org/cgit/rpms/iwyu.git/commit/?id=2f519d1e93e85538... https://src.fedoraproject.org/cgit/rpms/iwyu.git/commit/?id=90f6f4162f2ec894... https://src.fedoraproject.org/cgit/rpms/iwyu.git/commit/?id=ec41659f7b09f9c5....
Change: -ExclusiveArch: %{ix86} x86_64 +ExclusiveArch: %{ix86} x86_64 -ExclusiveArch: %{ix86} x86_64 +ExclusiveArch: %{ix86} x86_64 -ExclusiveArch: %{ix86} x86_64 +ExclusiveArch: %{ix86} x86_64 +ExcludeArch: %{arm}
Thanks.
Full change: ============
commit 3cfc074af771c44e64759fc389f388a1110dde94 Author: Vitaly Zaitsev vitaly@easycoding.org Date: Mon Mar 27 14:06:00 2023 +0200
Resurrected package and updated to version 0.19.
diff --git a/.gitignore b/.gitignore index 7ec4b9a..5053225 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1 @@ -/include-what-you-use-3.4.src.tar.gz -/include-what-you-use-3.5.src.tar.gz -/include-what-you-use-0.4.src.tar.gz -/include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz -/include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz -/include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz -/include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz -/iwyu-23253ec.tar.gz -/include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz -/include-what-you-use-c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f.tar.gz -/include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz +/include-what-you-use-*.tar.gz diff --git a/iwyu.spec b/iwyu.spec index 20b0717..cac45c6 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,93 +1,78 @@ -%global longname include-what-you-use -%global owner %{longname} -%global commit 576e80f7f37ce2daa59120c40f38735b3fbc7422 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - -Name: iwyu -Version: 0.9 -Release: 0.5.20171001git%{shortcommit}%{?dist} -Summary: C/C++ source files #include analyzer based on clang - -License: NCSA -URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D -Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit%7D.tar.gz... - -BuildRequires: cmake -BuildRequires: clang-devel >= 4.0 -# NOTE: This should probably listed as a dependency for clang-devel but it's -# not, so make it explicit here -BuildRequires: llvm-devel -# Some of the Clang libraries are only available statically and the use of the -# static library was approved (see https://fedorahosted.org/fesco/ticket/1370 ) -BuildRequires: llvm-static -BuildRequires: zlib-devel -# Scripts are Python 2 -BuildRequires: python2-devel -BuildRequires: ncurses-devel - -# Virtual provide the long name -Provides: include-what-you-use = %{version}-%{release} -Provides: include-what-you-use%{?_isa} = %{version}-%{release} - -# It isn't building on ARM, so just exclude it for now (see https://bugzilla.redhat.com/show_bug.cgi?id=1192713 ) -# Also, the tests use x86 assembly right now (see https://groups.google.com/forum/#!topic/include-what-you-use/lEuN5tr-0y0 ) -ExclusiveArch: %{ix86} x86_64 +%global appname include-what-you-use +%global toolchain clang
+Name: iwyu +Version: 0.19 +Release: 1%{?dist} + +License: NCSA +Summary: C/C++ source files #include analyzer based on clang +URL: https://github.com/%%7Bappname%7D/%%7Bappname%7D +Source0: %{url}/archive/%{version}/%{appname}-%{version}.tar.gz + +BuildRequires: clang-devel +BuildRequires: libcxx-devel +BuildRequires: llvm-devel +BuildRequires: llvm-static +BuildRequires: ncurses-devel +BuildRequires: python3-devel +BuildRequires: zlib-devel + +BuildRequires: clang +BuildRequires: cmake +BuildRequires: ninja-build + +Provides: %{appname} = %{?epoch:%{epoch}:}%{version}-%{release} +Provides: %{appname}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description "Include what you use" means this: for every symbol (type, function, variable, -or macro) that you use in foo.cc (or foo.cpp), either foo.cc or foo.h -should #include a .h file that exports the declaration of that symbol. The -include-what-you-use tool is a program that can be built with the clang -libraries in order to analyze #includes of source files to find -include-what-you-use violations, and suggest fixes for them. - +or macro) that you use in foo.cc (or foo.cpp), either foo.cc or foo.h should +include a .h file that exports the declaration of that symbol. (Similarly, for +foo_test.cc, either foo_test.cc or foo.h should do the including.) Obviously +symbols defined in foo.cc itself are excluded from this requirement. + +This puts us in a state where every file includes the headers it needs to +declare the symbols that it uses. When every file includes what it uses, +then it is possible to edit any file and remove unused headers, without fear +of accidentally breaking the upwards dependencies of that file. It also +becomes easy to automatically track and update dependencies in the source +code.
%prep -%autosetup -n %{longname}-%{commit} - +%autosetup -n %{appname}-%{version} -p1 +sed -e s@lib/@lib${LLVM_LIBDIR_SUFFIX}/@g -i CMakeLists.txt +%py3_shebang_fix *.py
%build -mkdir build -cd build -# NOTE: Have to specify both lib and include dir for it to work -%cmake -DIWYU_LLVM_LIB_PATH=%{_libdir}/llvm -DIWYU_LLVM_INCLUDE_PATH=%{_includedir} .. -%make_build - +%cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \ + -DIWYU_LLVM_ROOT_PATH=%{_libdir} +%cmake_build
%install -%make_install -C build -cd %{buildroot}%{_bindir} -ln -s include-what-you-use iwyu -ln -s fix_includes.py fix_includes -ln -s iwyu_tool.py iwyu_tool - +%cmake_install
%check -# Need to have the clang header's at the correct relative path (see https://github.com/include-what-you-use/include-what-you-use/issues/100 ) -ln -s %{_libdir} %{_lib} -cd build -PATH=$PWD:$PATH -ln -s ../fix_includes.py -ln -s ../fix_includes_test.py -ln -s ../iwyu_test_util.py -ln -s ../run_iwyu_tests.py -ln -s ../tests -%{__python2} run_iwyu_tests.py -%{__python2} fix_includes_test.py - +%ctest --exclude-regex "cxx.test_(badinc|ms_inline_asm)"
%files -%{_bindir}/include-what-you-use -%{_bindir}/iwyu -%{_bindir}/fix_includes +%doc docs/* README.md +%license LICENSE.TXT +%{_bindir}/%{appname} %{_bindir}/fix_includes.py -%{_bindir}/iwyu_tool %{_bindir}/iwyu_tool.py -%dir %{_datadir}/include-what-you-use -%{_datadir}/include-what-you-use/*.imp +%{_datadir}/%{appname}/ +%{_mandir}/man1/%{appname}.1*
%changelog +* Sun Mar 19 2023 Vitaly Zaitsev vitaly@easycoding.org - 0.19-1 +- Resurrected package. +- Updated to version 0.19. +- Performed major SPEC cleanup. +- Fixed issues with tests. + * Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.5.20171001git576e80f - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
diff --git a/sources b/sources index f0ba466..1979f41 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz) = 254f3f98aa40f2d7107d5cf06e6b783e8295d4c4b91751fcf0c998b16b1a330119b2c3e2d232e4c9083029b2c4ec5297c9ea0074e52726346385fb15f31c0e28 +SHA512 (include-what-you-use-0.19.tar.gz) = 0847ae898696b51540ab9f5715e69bae67db42409d60205227d543ba6597b12cc2ea5bf68a3315c31f22e7186e05c06a86f5ae5b893c23bfe4cd9ef6f06ccddc
commit 423431ccec339e4093f441b304ff8d2613f74826 Author: Tomas Hrcka thrcka@redhat.com Date: Mon Mar 27 12:25:38 2023 +0200
Unretirement request: https://pagure.io/releng/issue/11348
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ec4b9a --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +/include-what-you-use-3.4.src.tar.gz +/include-what-you-use-3.5.src.tar.gz +/include-what-you-use-0.4.src.tar.gz +/include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz +/include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz +/include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz +/include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz +/iwyu-23253ec.tar.gz +/include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz +/include-what-you-use-c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f.tar.gz +/include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 9ca25d5..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -iwyu fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675163 diff --git a/iwyu.spec b/iwyu.spec new file mode 100644 index 0000000..20b0717 --- /dev/null +++ b/iwyu.spec @@ -0,0 +1,158 @@ +%global longname include-what-you-use +%global owner %{longname} +%global commit 576e80f7f37ce2daa59120c40f38735b3fbc7422 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: iwyu +Version: 0.9 +Release: 0.5.20171001git%{shortcommit}%{?dist} +Summary: C/C++ source files #include analyzer based on clang + +License: NCSA +URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D +Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit%7D.tar.gz... + +BuildRequires: cmake +BuildRequires: clang-devel >= 4.0 +# NOTE: This should probably listed as a dependency for clang-devel but it's +# not, so make it explicit here +BuildRequires: llvm-devel +# Some of the Clang libraries are only available statically and the use of the +# static library was approved (see https://fedorahosted.org/fesco/ticket/1370 ) +BuildRequires: llvm-static +BuildRequires: zlib-devel +# Scripts are Python 2 +BuildRequires: python2-devel +BuildRequires: ncurses-devel + +# Virtual provide the long name +Provides: include-what-you-use = %{version}-%{release} +Provides: include-what-you-use%{?_isa} = %{version}-%{release} + +# It isn't building on ARM, so just exclude it for now (see https://bugzilla.redhat.com/show_bug.cgi?id=1192713 ) +# Also, the tests use x86 assembly right now (see https://groups.google.com/forum/#!topic/include-what-you-use/lEuN5tr-0y0 ) +ExclusiveArch: %{ix86} x86_64 + + +%description +"Include what you use" means this: for every symbol (type, function, variable, +or macro) that you use in foo.cc (or foo.cpp), either foo.cc or foo.h +should #include a .h file that exports the declaration of that symbol. The +include-what-you-use tool is a program that can be built with the clang +libraries in order to analyze #includes of source files to find +include-what-you-use violations, and suggest fixes for them. + + +%prep +%autosetup -n %{longname}-%{commit} + + +%build +mkdir build +cd build +# NOTE: Have to specify both lib and include dir for it to work +%cmake -DIWYU_LLVM_LIB_PATH=%{_libdir}/llvm -DIWYU_LLVM_INCLUDE_PATH=%{_includedir} .. +%make_build + + +%install +%make_install -C build +cd %{buildroot}%{_bindir} +ln -s include-what-you-use iwyu +ln -s fix_includes.py fix_includes +ln -s iwyu_tool.py iwyu_tool + + +%check +# Need to have the clang header's at the correct relative path (see https://github.com/include-what-you-use/include-what-you-use/issues/100 ) +ln -s %{_libdir} %{_lib} +cd build +PATH=$PWD:$PATH +ln -s ../fix_includes.py +ln -s ../fix_includes_test.py +ln -s ../iwyu_test_util.py +ln -s ../run_iwyu_tests.py +ln -s ../tests +%{__python2} run_iwyu_tests.py +%{__python2} fix_includes_test.py + + +%files +%{_bindir}/include-what-you-use +%{_bindir}/iwyu +%{_bindir}/fix_includes +%{_bindir}/fix_includes.py +%{_bindir}/iwyu_tool +%{_bindir}/iwyu_tool.py +%dir %{_datadir}/include-what-you-use +%{_datadir}/include-what-you-use/*.imp + +%changelog +* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.5.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.4.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.3.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.2.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Oct 04 2017 Tom Stellard tstellar@redhat.com - 0.9-0.1.20171001git576e80f +- Update to git snapshot that works with LLVM 5 + +* Wed Aug 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-4 +- Official 0.8/LLVM 4.0 release + +* Wed Aug 02 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jul 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-1 +- Use 0.8 to work with LLVM 4.0 + +* Thu Mar 30 2017 Tom Stellard tstellar@redhat.com - 0.7-3.20130330git.23253ec +- Update to git snapshot that works with LLVM4 + +* Fri Feb 10 2017 Fedora Release Engineering releng@fedoraproject.org - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 05 2016 Dave Johansen davejohansen@gmail.com - 0.7-1 +- Upstream release + +* Thu May 12 2016 Dave Johansen davejohansen@gmail.com - 0.6-1 +- Upstream release + +* Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.2 +- Remove use of rand() in badinc test + +* Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.1 +- Test build against 3.8 + +* Thu Feb 04 2016 Dave Johansen davejohansen@gmail.com - 0.5-3 +- Changes for new llvm cmake build system + +* Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Sep 30 2015 Dave Johansen davejohansen@gmail.com - 0.5-1 +- Upstream release + +* Wed Jun 17 2015 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 04 2015 Dave Johansen davejohansen@gmail.com - 0.4-2 +- Added iwyu_tool + +* Mon Jun 01 2015 Dave Johansen davejohansen@gmail.com - 0.4-1 +- Update to 0.4 based on clang 3.6.0 + +* Tue Jan 27 2015 Dave Johansen davejohansen@gmail.com - 0.3-1 +- Update to 0.3 based on clang 3.5.0 + +* Fri Apr 25 2014 Dave Johansen davejohansen@gmail.com - 0.2-1 +- Initial RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..f0ba466 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz) = 254f3f98aa40f2d7107d5cf06e6b783e8295d4c4b91751fcf0c998b16b1a330119b2c3e2d232e4c9083029b2c4ec5297c9ea0074e52726346385fb15f31c0e28
commit d1b9a4c378e557e91c7363b6900ad32ca84fb9df Author: Fedora Release Engineering releng@fedoraproject.org Date: Thu Aug 8 13:55:20 2019 +0000
iwyu fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675163
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 7ec4b9a..0000000 --- a/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -/include-what-you-use-3.4.src.tar.gz -/include-what-you-use-3.5.src.tar.gz -/include-what-you-use-0.4.src.tar.gz -/include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz -/include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz -/include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz -/include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz -/iwyu-23253ec.tar.gz -/include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz -/include-what-you-use-c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f.tar.gz -/include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..9ca25d5 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +iwyu fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675163 diff --git a/iwyu.spec b/iwyu.spec deleted file mode 100644 index 20b0717..0000000 --- a/iwyu.spec +++ /dev/null @@ -1,158 +0,0 @@ -%global longname include-what-you-use -%global owner %{longname} -%global commit 576e80f7f37ce2daa59120c40f38735b3fbc7422 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - -Name: iwyu -Version: 0.9 -Release: 0.5.20171001git%{shortcommit}%{?dist} -Summary: C/C++ source files #include analyzer based on clang - -License: NCSA -URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D -Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit%7D.tar.gz... - -BuildRequires: cmake -BuildRequires: clang-devel >= 4.0 -# NOTE: This should probably listed as a dependency for clang-devel but it's -# not, so make it explicit here -BuildRequires: llvm-devel -# Some of the Clang libraries are only available statically and the use of the -# static library was approved (see https://fedorahosted.org/fesco/ticket/1370 ) -BuildRequires: llvm-static -BuildRequires: zlib-devel -# Scripts are Python 2 -BuildRequires: python2-devel -BuildRequires: ncurses-devel - -# Virtual provide the long name -Provides: include-what-you-use = %{version}-%{release} -Provides: include-what-you-use%{?_isa} = %{version}-%{release} - -# It isn't building on ARM, so just exclude it for now (see https://bugzilla.redhat.com/show_bug.cgi?id=1192713 ) -# Also, the tests use x86 assembly right now (see https://groups.google.com/forum/#!topic/include-what-you-use/lEuN5tr-0y0 ) -ExclusiveArch: %{ix86} x86_64 - - -%description -"Include what you use" means this: for every symbol (type, function, variable, -or macro) that you use in foo.cc (or foo.cpp), either foo.cc or foo.h -should #include a .h file that exports the declaration of that symbol. The -include-what-you-use tool is a program that can be built with the clang -libraries in order to analyze #includes of source files to find -include-what-you-use violations, and suggest fixes for them. - - -%prep -%autosetup -n %{longname}-%{commit} - - -%build -mkdir build -cd build -# NOTE: Have to specify both lib and include dir for it to work -%cmake -DIWYU_LLVM_LIB_PATH=%{_libdir}/llvm -DIWYU_LLVM_INCLUDE_PATH=%{_includedir} .. -%make_build - - -%install -%make_install -C build -cd %{buildroot}%{_bindir} -ln -s include-what-you-use iwyu -ln -s fix_includes.py fix_includes -ln -s iwyu_tool.py iwyu_tool - - -%check -# Need to have the clang header's at the correct relative path (see https://github.com/include-what-you-use/include-what-you-use/issues/100 ) -ln -s %{_libdir} %{_lib} -cd build -PATH=$PWD:$PATH -ln -s ../fix_includes.py -ln -s ../fix_includes_test.py -ln -s ../iwyu_test_util.py -ln -s ../run_iwyu_tests.py -ln -s ../tests -%{__python2} run_iwyu_tests.py -%{__python2} fix_includes_test.py - - -%files -%{_bindir}/include-what-you-use -%{_bindir}/iwyu -%{_bindir}/fix_includes -%{_bindir}/fix_includes.py -%{_bindir}/iwyu_tool -%{_bindir}/iwyu_tool.py -%dir %{_datadir}/include-what-you-use -%{_datadir}/include-what-you-use/*.imp - -%changelog -* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.5.20171001git576e80f -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.4.20171001git576e80f -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.3.20171001git576e80f -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.2.20171001git576e80f -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Oct 04 2017 Tom Stellard tstellar@redhat.com - 0.9-0.1.20171001git576e80f -- Update to git snapshot that works with LLVM 5 - -* Wed Aug 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-4 -- Official 0.8/LLVM 4.0 release - -* Wed Aug 02 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sun Jul 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-1 -- Use 0.8 to work with LLVM 4.0 - -* Thu Mar 30 2017 Tom Stellard tstellar@redhat.com - 0.7-3.20130330git.23253ec -- Update to git snapshot that works with LLVM4 - -* Fri Feb 10 2017 Fedora Release Engineering releng@fedoraproject.org - 0.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Dec 05 2016 Dave Johansen davejohansen@gmail.com - 0.7-1 -- Upstream release - -* Thu May 12 2016 Dave Johansen davejohansen@gmail.com - 0.6-1 -- Upstream release - -* Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.2 -- Remove use of rand() in badinc test - -* Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.1 -- Test build against 3.8 - -* Thu Feb 04 2016 Dave Johansen davejohansen@gmail.com - 0.5-3 -- Changes for new llvm cmake build system - -* Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.5-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Sep 30 2015 Dave Johansen davejohansen@gmail.com - 0.5-1 -- Upstream release - -* Wed Jun 17 2015 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Thu Jun 04 2015 Dave Johansen davejohansen@gmail.com - 0.4-2 -- Added iwyu_tool - -* Mon Jun 01 2015 Dave Johansen davejohansen@gmail.com - 0.4-1 -- Update to 0.4 based on clang 3.6.0 - -* Tue Jan 27 2015 Dave Johansen davejohansen@gmail.com - 0.3-1 -- Update to 0.3 based on clang 3.5.0 - -* Fri Apr 25 2014 Dave Johansen davejohansen@gmail.com - 0.2-1 -- Initial RPM release diff --git a/sources b/sources deleted file mode 100644 index f0ba466..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz) = 254f3f98aa40f2d7107d5cf06e6b783e8295d4c4b91751fcf0c998b16b1a330119b2c3e2d232e4c9083029b2c4ec5297c9ea0074e52726346385fb15f31c0e28
commit e9102b24b0c40a3ff6f8d7e14b1df11b70ef54e1 Author: Fedora Release Engineering releng@fedoraproject.org Date: Thu Jul 25 09:49:52 2019 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/iwyu.spec b/iwyu.spec index 2832368..20b0717 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -5,7 +5,7 @@
Name: iwyu Version: 0.9 -Release: 0.4.20171001git%{shortcommit}%{?dist} +Release: 0.5.20171001git%{shortcommit}%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -88,6 +88,9 @@ ln -s ../tests %{_datadir}/include-what-you-use/*.imp
%changelog +* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.5.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.4.20171001git576e80f - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
commit 84f95b416e6173436710ced8e36120d77f535dc3 Author: Fedora Release Engineering releng@fedoraproject.org Date: Fri Feb 1 03:40:24 2019 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/iwyu.spec b/iwyu.spec index 91b1e30..2832368 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -5,7 +5,7 @@
Name: iwyu Version: 0.9 -Release: 0.3.20171001git%{shortcommit}%{?dist} +Release: 0.4.20171001git%{shortcommit}%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -88,6 +88,9 @@ ln -s ../tests %{_datadir}/include-what-you-use/*.imp
%changelog +* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.4.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.3.20171001git576e80f - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
commit a4ab7ee8e05a72a560ad23828cdc40654c101ff5 Author: Fedora Release Engineering releng@fedoraproject.org Date: Fri Jul 13 05:55:33 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/iwyu.spec b/iwyu.spec index a6a3f1b..91b1e30 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -5,7 +5,7 @@
Name: iwyu Version: 0.9 -Release: 0.2.20171001git%{shortcommit}%{?dist} +Release: 0.3.20171001git%{shortcommit}%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -88,6 +88,9 @@ ln -s ../tests %{_datadir}/include-what-you-use/*.imp
%changelog +* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.3.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.2.20171001git576e80f - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit 9409116325a6eca391c794dcc0487b23cc474b0f Author: Fedora Release Engineering releng@fedoraproject.org Date: Wed Feb 7 17:47:42 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/iwyu.spec b/iwyu.spec index d119dc5..a6a3f1b 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -5,7 +5,7 @@
Name: iwyu Version: 0.9 -Release: 0.1.20171001git%{shortcommit}%{?dist} +Release: 0.2.20171001git%{shortcommit}%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -88,6 +88,9 @@ ln -s ../tests %{_datadir}/include-what-you-use/*.imp
%changelog +* Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0.9-0.2.20171001git576e80f +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Oct 04 2017 Tom Stellard tstellar@redhat.com - 0.9-0.1.20171001git576e80f - Update to git snapshot that works with LLVM 5
commit 2f3668490637882c3428a9abd308372332704da6 Author: Tom Stellard tstellar@redhat.com Date: Wed Oct 4 13:51:30 2017 +0000
Update to git snapshot that works with LLVM 5
diff --git a/.gitignore b/.gitignore index 5682906..7ec4b9a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /iwyu-23253ec.tar.gz /include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz /include-what-you-use-c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f.tar.gz +/include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz diff --git a/iwyu.spec b/iwyu.spec index 80fdd75..d119dc5 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,11 +1,11 @@ %global longname include-what-you-use %global owner %{longname} -%global commit c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f +%global commit 576e80f7f37ce2daa59120c40f38735b3fbc7422 %global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: iwyu -Version: 0.8 -Release: 4%{?dist} +Version: 0.9 +Release: 0.1.20171001git%{shortcommit}%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -87,8 +87,10 @@ ln -s ../tests %dir %{_datadir}/include-what-you-use %{_datadir}/include-what-you-use/*.imp
- %changelog +* Wed Oct 04 2017 Tom Stellard tstellar@redhat.com - 0.9-0.1.20171001git576e80f +- Update to git snapshot that works with LLVM 5 + * Wed Aug 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-4 - Official 0.8/LLVM 4.0 release
diff --git a/sources b/sources index fdb8fb2..f0ba466 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (include-what-you-use-c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f.tar.gz) = b75105317e791885be6052811a7410b25f6c4c3e0ca27759f26875aca8402b2fae4e5cb7b24557a58879dc154cf17e8d30e59d8952615928e76134ade73ee0c7 +SHA512 (include-what-you-use-576e80f7f37ce2daa59120c40f38735b3fbc7422.tar.gz) = 254f3f98aa40f2d7107d5cf06e6b783e8295d4c4b91751fcf0c998b16b1a330119b2c3e2d232e4c9083029b2c4ec5297c9ea0074e52726346385fb15f31c0e28
commit 03f1f10a5db907c3fe189d10372f3c6e939dffb7 Author: Dave Johansen davejohansen@gmail.com Date: Sat Aug 5 07:40:06 2017 -0600
Update to official 0.8/clang 4.0 release
diff --git a/.gitignore b/.gitignore index 0e9014e..5682906 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz /iwyu-23253ec.tar.gz /include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz +/include-what-you-use-c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f.tar.gz diff --git a/iwyu.spec b/iwyu.spec index 7134675..80fdd75 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,17 +1,16 @@ %global longname include-what-you-use %global owner %{longname} -%global commit 953970c487b004050d44925bfcc5133be9fa0d7f +%global commit c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f %global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: iwyu Version: 0.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit%7D.tar.gz... -Patch0: iwyu_map_file_stdio.patch
BuildRequires: cmake BuildRequires: clang-devel >= 4.0 @@ -90,6 +89,9 @@ ln -s ../tests
%changelog +* Wed Aug 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-4 +- Official 0.8/LLVM 4.0 release + * Wed Aug 02 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
diff --git a/iwyu_map_file_stdio.patch b/iwyu_map_file_stdio.patch deleted file mode 100644 index 74a38be..0000000 --- a/iwyu_map_file_stdio.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 243a9ac5311de81041e599af1270cf4ade5e3430 Mon Sep 17 00:00:00 2001 -From: Kim Grasman kim.grasman@gmail.com -Date: Mon, 26 Jun 2017 14:11:47 +0200 -Subject: [PATCH] Map FILE to <stdio.h> - -Newer glibc has FILE in a separate header. - -Fix for issue #447. ---- - gcc.symbols.imp | 1 + - iwyu_include_picker.cc | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/gcc.symbols.imp b/gcc.symbols.imp -index d3d3fa3..4ab9c57 100644 ---- a/gcc.symbols.imp -+++ b/gcc.symbols.imp -@@ -104,6 +104,7 @@ - # add them in by hand as I discover them. - { symbol: [ "EOF", private, "<stdio.h>", public ] }, - { symbol: [ "EOF", private, "<libio.h>", public ] }, -+ { symbol: [ "FILE", private, "<stdio.h>", public ] }, - { symbol: [ "va_list", private, "<stdarg.h>", public ] }, - # These are symbols that could be defined in either stdlib.h or - # malloc.h, but we always want the stdlib location. -diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc -index 2436076..840057f 100644 ---- a/iwyu_include_picker.cc -+++ b/iwyu_include_picker.cc -@@ -186,6 +186,7 @@ const IncludeMapEntry libc_symbol_map[] = { - // add them in by hand as I discover them. - { "EOF", kPrivate, "<stdio.h>", kPublic }, - { "EOF", kPrivate, "<libio.h>", kPublic }, -+ { "FILE", kPrivate, "<stdio.h>", kPublic }, - { "va_list", kPrivate, "<stdarg.h>", kPublic }, - // These are symbols that could be defined in either stdlib.h or - // malloc.h, but we always want the stdlib location. diff --git a/sources b/sources index e3f5928..fdb8fb2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz) = 5bb22e4aea1da533c1d6047068220a7c4cbfa82b86137679fa343a69cd014c072fd1b13d59c7b76f930c54246af243ee72926c070bc3228a970bd5190e08d1bf +SHA512 (include-what-you-use-c6c4520c0b0a0ad2ba22218ef2aa3f0b81ecbc6f.tar.gz) = b75105317e791885be6052811a7410b25f6c4c3e0ca27759f26875aca8402b2fae4e5cb7b24557a58879dc154cf17e8d30e59d8952615928e76134ade73ee0c7
commit cc4e70ef87cf9005b3d55f9e6c7cb03d2bd809e3 Author: Fedora Release Engineering releng@fedoraproject.org Date: Wed Aug 2 23:55:28 2017 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
diff --git a/iwyu.spec b/iwyu.spec index 3a1b83f..7134675 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -5,7 +5,7 @@
Name: iwyu Version: 0.8 -Release: 2%{?dist} +Release: 3%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -90,6 +90,9 @@ ln -s ../tests
%changelog +* Wed Aug 02 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
commit 94ea3c53dbf9694d8af173873e1795ac9a33a9af Author: Fedora Release Engineering releng@fedoraproject.org Date: Wed Jul 26 13:49:04 2017 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
diff --git a/iwyu.spec b/iwyu.spec index 84ffc62..3a1b83f 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -5,7 +5,7 @@
Name: iwyu Version: 0.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -90,6 +90,9 @@ ln -s ../tests
%changelog +* Wed Jul 26 2017 Fedora Release Engineering releng@fedoraproject.org - 0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sun Jul 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-1 - Use 0.8 to work with LLVM 4.0
commit 673fc4a63cdd3f96acf0acdff2940661fc1e10c7 Author: Dave Johansen davejohansen@gmail.com Date: Sun Jul 2 21:35:34 2017 -0600
Use 0.8 to work with LLVM 4.0
diff --git a/.gitignore b/.gitignore index aeadc74..0e9014e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz /include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz /iwyu-23253ec.tar.gz +/include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz diff --git a/iwyu.spec b/iwyu.spec index fb409fe..84ffc62 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,19 +1,20 @@ %global longname include-what-you-use %global owner %{longname} -%global commit 23253ec2e8c6b84a9b1a45329b7a1c1a81233fd8 +%global commit 953970c487b004050d44925bfcc5133be9fa0d7f %global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: iwyu -Version: 0.7 -Release: 3.20130330git.%{shortcommit}%{?dist} +Version: 0.8 +Release: 1%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA -URL: https://github.com/include-what-you-use/include-what-you-use -Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz +URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D +Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit%7D.tar.gz... +Patch0: iwyu_map_file_stdio.patch
BuildRequires: cmake -BuildRequires: clang-devel >= 3.8 +BuildRequires: clang-devel >= 4.0 # NOTE: This should probably listed as a dependency for clang-devel but it's # not, so make it explicit here BuildRequires: llvm-devel @@ -89,6 +90,9 @@ ln -s ../tests
%changelog +* Sun Jul 02 2017 Dave Johansen davejohansen@gmail.com - 0.8-1 +- Use 0.8 to work with LLVM 4.0 + * Thu Mar 30 2017 Tom Stellard tstellar@redhat.com - 0.7-3.20130330git.23253ec - Update to git snapshot that works with LLVM4
diff --git a/iwyu_map_file_stdio.patch b/iwyu_map_file_stdio.patch new file mode 100644 index 0000000..74a38be --- /dev/null +++ b/iwyu_map_file_stdio.patch @@ -0,0 +1,37 @@ +From 243a9ac5311de81041e599af1270cf4ade5e3430 Mon Sep 17 00:00:00 2001 +From: Kim Grasman kim.grasman@gmail.com +Date: Mon, 26 Jun 2017 14:11:47 +0200 +Subject: [PATCH] Map FILE to <stdio.h> + +Newer glibc has FILE in a separate header. + +Fix for issue #447. +--- + gcc.symbols.imp | 1 + + iwyu_include_picker.cc | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/gcc.symbols.imp b/gcc.symbols.imp +index d3d3fa3..4ab9c57 100644 +--- a/gcc.symbols.imp ++++ b/gcc.symbols.imp +@@ -104,6 +104,7 @@ + # add them in by hand as I discover them. + { symbol: [ "EOF", private, "<stdio.h>", public ] }, + { symbol: [ "EOF", private, "<libio.h>", public ] }, ++ { symbol: [ "FILE", private, "<stdio.h>", public ] }, + { symbol: [ "va_list", private, "<stdarg.h>", public ] }, + # These are symbols that could be defined in either stdlib.h or + # malloc.h, but we always want the stdlib location. +diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc +index 2436076..840057f 100644 +--- a/iwyu_include_picker.cc ++++ b/iwyu_include_picker.cc +@@ -186,6 +186,7 @@ const IncludeMapEntry libc_symbol_map[] = { + // add them in by hand as I discover them. + { "EOF", kPrivate, "<stdio.h>", kPublic }, + { "EOF", kPrivate, "<libio.h>", kPublic }, ++ { "FILE", kPrivate, "<stdio.h>", kPublic }, + { "va_list", kPrivate, "<stdarg.h>", kPublic }, + // These are symbols that could be defined in either stdlib.h or + // malloc.h, but we always want the stdlib location. diff --git a/sources b/sources index 32ed332..e3f5928 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (iwyu-23253ec.tar.gz) = 3df66c2c2cfabcc418b2a943faa0f8bdd32bb6dfc1c90b7117b87ca9a3b5521dcb9e55abc4ca8c4a8b69444f18097aa1659e986c5d0d9762f4afea6234dcfd6d +SHA512 (include-what-you-use-953970c487b004050d44925bfcc5133be9fa0d7f.tar.gz) = 5bb22e4aea1da533c1d6047068220a7c4cbfa82b86137679fa343a69cd014c072fd1b13d59c7b76f930c54246af243ee72926c070bc3228a970bd5190e08d1bf
commit 5a1ec4449af93e890c3cd0f700e7f396c117ebe4 Author: Tom Stellard tstellar@redhat.com Date: Thu Mar 30 16:53:08 2017 +0200
Update to git snapshot that works with LLVM4
Signed-off-by: Igor Gnatenko ignatenko@redhat.com
diff --git a/.gitignore b/.gitignore index ad01ef2..aeadc74 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz /include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz /include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz +/iwyu-23253ec.tar.gz diff --git a/iwyu.spec b/iwyu.spec index 3934b12..fb409fe 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,15 +1,16 @@ %global longname include-what-you-use %global owner %{longname} -%global commit0 136736fca90ad10e20b2ef728f0d52286e93ca46 +%global commit 23253ec2e8c6b84a9b1a45329b7a1c1a81233fd8 +%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: iwyu Version: 0.7 -Release: 2%{?dist} +Release: 3.20130330git.%{shortcommit}%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA -URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D -Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit0%7D.tar.g... +URL: https://github.com/include-what-you-use/include-what-you-use +Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires: cmake BuildRequires: clang-devel >= 3.8 @@ -43,7 +44,7 @@ include-what-you-use violations, and suggest fixes for them.
%prep -%setup -q -n %{longname}-%{commit0} +%autosetup -n %{longname}-%{commit}
%build @@ -51,11 +52,11 @@ mkdir build cd build # NOTE: Have to specify both lib and include dir for it to work %cmake -DIWYU_LLVM_LIB_PATH=%{_libdir}/llvm -DIWYU_LLVM_INCLUDE_PATH=%{_includedir} .. -make %{?_smp_mflags} +%make_build
%install -%make_install DESTDIR=%{buildroot} -C build +%make_install -C build cd %{buildroot}%{_bindir} ln -s include-what-you-use iwyu ln -s fix_includes.py fix_includes @@ -83,10 +84,14 @@ ln -s ../tests %{_bindir}/fix_includes.py %{_bindir}/iwyu_tool %{_bindir}/iwyu_tool.py +%dir %{_datadir}/include-what-you-use %{_datadir}/include-what-you-use/*.imp
%changelog +* Thu Mar 30 2017 Tom Stellard tstellar@redhat.com - 0.7-3.20130330git.23253ec +- Update to git snapshot that works with LLVM4 + * Fri Feb 10 2017 Fedora Release Engineering releng@fedoraproject.org - 0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
diff --git a/sources b/sources index c2fd5d5..32ed332 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ffa20d581f66f6e28c67dd62be18c8bd include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz +SHA512 (iwyu-23253ec.tar.gz) = 3df66c2c2cfabcc418b2a943faa0f8bdd32bb6dfc1c90b7117b87ca9a3b5521dcb9e55abc4ca8c4a8b69444f18097aa1659e986c5d0d9762f4afea6234dcfd6d
commit e5bcb152f776589638bb9915635884964dc1f906 Author: Fedora Release Engineering releng@fedoraproject.org Date: Fri Feb 10 16:38:39 2017 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
diff --git a/iwyu.spec b/iwyu.spec index 9ffe012..3934b12 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -4,7 +4,7 @@
Name: iwyu Version: 0.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -87,6 +87,9 @@ ln -s ../tests
%changelog +* Fri Feb 10 2017 Fedora Release Engineering releng@fedoraproject.org - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Mon Dec 05 2016 Dave Johansen davejohansen@gmail.com - 0.7-1 - Upstream release
commit 8b9cf2d5cc7b2901ac4560a75738a1b714585eee Author: Dave Johansen davejohansen@gmail.com Date: Mon Dec 5 21:01:13 2016 -0700
Update to 0.7
diff --git a/.gitignore b/.gitignore index 0e484bd..ad01ef2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz /include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz /include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz +/include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz diff --git a/iwyu.spec b/iwyu.spec index d4d82f0..9ffe012 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,9 +1,9 @@ %global longname include-what-you-use %global owner %{longname} -%global commit0 f09b88aaa0b7bb88a7b36da2ba1cab233659df6e +%global commit0 136736fca90ad10e20b2ef728f0d52286e93ca46
Name: iwyu -Version: 0.6 +Version: 0.7 Release: 1%{?dist} Summary: C/C++ source files #include analyzer based on clang
@@ -83,9 +83,13 @@ ln -s ../tests %{_bindir}/fix_includes.py %{_bindir}/iwyu_tool %{_bindir}/iwyu_tool.py +%{_datadir}/include-what-you-use/*.imp
%changelog +* Mon Dec 05 2016 Dave Johansen davejohansen@gmail.com - 0.7-1 +- Upstream release + * Thu May 12 2016 Dave Johansen davejohansen@gmail.com - 0.6-1 - Upstream release
diff --git a/sources b/sources index 0e755be..c2fd5d5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cdd101f903b40488d43375f64dc9c99f include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz +ffa20d581f66f6e28c67dd62be18c8bd include-what-you-use-136736fca90ad10e20b2ef728f0d52286e93ca46.tar.gz
commit 35c9839ca796491521200a98225df31a87e76011 Author: Dave Johansen davejohansen@gmail.com Date: Thu May 12 18:27:27 2016 -0700
Upstream release of 0.6
diff --git a/.gitignore b/.gitignore index 9ba5e14..0e484bd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /include-what-you-use-0.4.src.tar.gz /include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz /include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz +/include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz diff --git a/iwyu.spec b/iwyu.spec index e2beed5..d4d82f0 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,16 +1,15 @@ %global longname include-what-you-use %global owner %{longname} -%global commit0 e1fc7722673fd665c105d0aaed1dab1aeefce8c1 +%global commit0 f09b88aaa0b7bb88a7b36da2ba1cab233659df6e
Name: iwyu Version: 0.6 -Release: 0.2%{?dist} +Release: 1%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit0%7D.tar.g... -Patch0: iwyu_badinc_norand.patch
BuildRequires: cmake BuildRequires: clang-devel >= 3.8 @@ -45,7 +44,6 @@ include-what-you-use violations, and suggest fixes for them.
%prep %setup -q -n %{longname}-%{commit0} -%patch0 -p1
%build @@ -88,6 +86,9 @@ ln -s ../tests
%changelog +* Thu May 12 2016 Dave Johansen davejohansen@gmail.com - 0.6-1 +- Upstream release + * Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.2 - Remove use of rand() in badinc test
diff --git a/iwyu_badinc_norand.patch b/iwyu_badinc_norand.patch deleted file mode 100644 index 482ab79..0000000 --- a/iwyu_badinc_norand.patch +++ /dev/null @@ -1,48 +0,0 @@ -From f6386d3d0e50dd124d34064c7b32eea6569b35eb Mon Sep 17 00:00:00 2001 -From: Kim Grasman kim.grasman@gmail.com -Date: Tue, 23 Feb 2016 20:36:53 +0100 -Subject: [PATCH] Remove test dependency on <stdlib.h> - ---- - tests/cxx/badinc.cc | 7 ++----- - 1 file changed, 2 insertions(+), 5 deletions(-) - -diff --git a/tests/cxx/badinc.cc b/tests/cxx/badinc.cc -index ce0b21a..de3fb18 100644 ---- a/tests/cxx/badinc.cc -+++ b/tests/cxx/badinc.cc -@@ -1066,7 +1066,7 @@ class CC_TemplateClass { - typedef I1_TemplateClass<A> i1_typedef; - - // Let's throw in per-class operator new/delete. -- // IWYU: size_t is...*((<stddef.h>)|(stdio.h)|(stdlib.h)|(string.h)|(time.h)|(wchar.h)) -+ // IWYU: size_t is...*((<stddef.h>)|(stdio.h)|(string.h)|(time.h)|(wchar.h)) - void* operator new(size_t size) { - B b; - (void)b; -@@ -1944,8 +1944,7 @@ int main() { - int i2_macro_var = kI1ConstInt; - #endif - -- // IWYU: rand is...*<stdlib.h> -- return rand(); // use a function from stdlib.h -+ return 0; - } - - // TODO(csilvers): the delete of <locale> should be line 56, not 35 -@@ -1961,7 +1960,6 @@ tests/cxx/badinc.cc should add these lines: - #include <ctype.h> - #include <stdarg.h> - #include <stddef.h> --#include <stdlib.h> - #include <list> - #include <new> - #include "tests/cxx/badinc-i1.h" -@@ -1993,7 +1991,6 @@ The full include-list for tests/cxx/badinc.cc: - #include <setjmp.h> - #include <stdarg.h> // for va_list - #include <stddef.h> // for offsetof --#include <stdlib.h> // for rand - #include <algorithm> // for find - #include <fstream> // for fstream - #include <list> // for list diff --git a/sources b/sources index 50601f3..0e755be 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -35c30f5ce910956e77639a5fe1a61d66 include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz +cdd101f903b40488d43375f64dc9c99f include-what-you-use-f09b88aaa0b7bb88a7b36da2ba1cab233659df6e.tar.gz
commit 4290eda6233b8a4187c270384d36a29d18e2e573 Author: Dave Johansen davejohansen@gmail.com Date: Thu Feb 25 06:53:58 2016 -0700
Forgot to upload the source
diff --git a/.gitignore b/.gitignore index 4cb8311..9ba5e14 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /include-what-you-use-3.5.src.tar.gz /include-what-you-use-0.4.src.tar.gz /include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz +/include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz diff --git a/sources b/sources index 159c6cc..50601f3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6107250cd8614027b698900812d42b7e include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz +35c30f5ce910956e77639a5fe1a61d66 include-what-you-use-e1fc7722673fd665c105d0aaed1dab1aeefce8c1.tar.gz
commit db406ebedba5111c963a6356fa20cd14b7cbbb61 Author: Dave Johansen davejohansen@gmail.com Date: Wed Feb 24 09:02:33 2016 -0700
Removing used of rand() in badinc test so tests will pass with gcc/glibc update
diff --git a/iwyu.spec b/iwyu.spec index 616f8a0..e2beed5 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -4,12 +4,13 @@
Name: iwyu Version: 0.6 -Release: 0.1%{?dist} +Release: 0.2%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit0%7D.tar.g... +Patch0: iwyu_badinc_norand.patch
BuildRequires: cmake BuildRequires: clang-devel >= 3.8 @@ -44,6 +45,7 @@ include-what-you-use violations, and suggest fixes for them.
%prep %setup -q -n %{longname}-%{commit0} +%patch0 -p1
%build @@ -86,6 +88,9 @@ ln -s ../tests
%changelog +* Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.2 +- Remove use of rand() in badinc test + * Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.1 - Test build against 3.8
diff --git a/iwyu_badinc_norand.patch b/iwyu_badinc_norand.patch new file mode 100644 index 0000000..482ab79 --- /dev/null +++ b/iwyu_badinc_norand.patch @@ -0,0 +1,48 @@ +From f6386d3d0e50dd124d34064c7b32eea6569b35eb Mon Sep 17 00:00:00 2001 +From: Kim Grasman kim.grasman@gmail.com +Date: Tue, 23 Feb 2016 20:36:53 +0100 +Subject: [PATCH] Remove test dependency on <stdlib.h> + +--- + tests/cxx/badinc.cc | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/tests/cxx/badinc.cc b/tests/cxx/badinc.cc +index ce0b21a..de3fb18 100644 +--- a/tests/cxx/badinc.cc ++++ b/tests/cxx/badinc.cc +@@ -1066,7 +1066,7 @@ class CC_TemplateClass { + typedef I1_TemplateClass<A> i1_typedef; + + // Let's throw in per-class operator new/delete. +- // IWYU: size_t is...*((<stddef.h>)|(stdio.h)|(stdlib.h)|(string.h)|(time.h)|(wchar.h)) ++ // IWYU: size_t is...*((<stddef.h>)|(stdio.h)|(string.h)|(time.h)|(wchar.h)) + void* operator new(size_t size) { + B b; + (void)b; +@@ -1944,8 +1944,7 @@ int main() { + int i2_macro_var = kI1ConstInt; + #endif + +- // IWYU: rand is...*<stdlib.h> +- return rand(); // use a function from stdlib.h ++ return 0; + } + + // TODO(csilvers): the delete of <locale> should be line 56, not 35 +@@ -1961,7 +1960,6 @@ tests/cxx/badinc.cc should add these lines: + #include <ctype.h> + #include <stdarg.h> + #include <stddef.h> +-#include <stdlib.h> + #include <list> + #include <new> + #include "tests/cxx/badinc-i1.h" +@@ -1993,7 +1991,6 @@ The full include-list for tests/cxx/badinc.cc: + #include <setjmp.h> + #include <stdarg.h> // for va_list + #include <stddef.h> // for offsetof +-#include <stdlib.h> // for rand + #include <algorithm> // for find + #include <fstream> // for fstream + #include <list> // for list
commit 97127951980471f0e676d44408043e4262564363 Author: Dave Johansen davejohansen@gmail.com Date: Wed Feb 24 08:51:47 2016 -0700
Using trunk to build since llvm was updated to 3.8
diff --git a/iwyu.spec b/iwyu.spec index 3a96d94..616f8a0 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,10 +1,10 @@ %global longname include-what-you-use %global owner %{longname} -%global commit0 98f3e62d371ae602061951115efc3b75ff255824 +%global commit0 e1fc7722673fd665c105d0aaed1dab1aeefce8c1
Name: iwyu -Version: 0.5 -Release: 3%{?dist} +Version: 0.6 +Release: 0.1%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -12,7 +12,7 @@ URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit0%7D.tar.g...
BuildRequires: cmake -BuildRequires: clang-devel >= 3.7 +BuildRequires: clang-devel >= 3.8 # NOTE: This should probably listed as a dependency for clang-devel but it's # not, so make it explicit here BuildRequires: llvm-devel @@ -86,6 +86,9 @@ ln -s ../tests
%changelog +* Wed Feb 24 2016 Dave Johansen davejohansen@gmail.com - 0.6-0.1 +- Test build against 3.8 + * Thu Feb 04 2016 Dave Johansen davejohansen@gmail.com - 0.5-3 - Changes for new llvm cmake build system
commit ae023bcfffe81cfbceae80a383d81c14749b0259 Author: Dave Johansen davejohansen@gmail.com Date: Wed Feb 24 08:50:19 2016 -0700
Building against llvm-static again because of the changes made to llvm's use of cmake
diff --git a/iwyu.spec b/iwyu.spec index 5bee715..3a96d94 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -16,6 +16,9 @@ BuildRequires: clang-devel >= 3.7 # NOTE: This should probably listed as a dependency for clang-devel but it's # not, so make it explicit here BuildRequires: llvm-devel +# Some of the Clang libraries are only available statically and the use of the +# static library was approved (see https://fedorahosted.org/fesco/ticket/1370 ) +BuildRequires: llvm-static BuildRequires: zlib-devel # Scripts are Python 2 BuildRequires: python2-devel
commit 14ddafb7dbae0fadf94664bd43e1b38dbd6d41a3 Author: Dave Johansen davejohansen@gmail.com Date: Thu Feb 4 18:33:58 2016 -0700
Changes for new llvm cmake build system
diff --git a/iwyu.spec b/iwyu.spec index 59abc8a..5bee715 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -4,7 +4,7 @@
Name: iwyu Version: 0.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -16,9 +16,6 @@ BuildRequires: clang-devel >= 3.7 # NOTE: This should probably listed as a dependency for clang-devel but it's # not, so make it explicit here BuildRequires: llvm-devel -# Some of the Clang libraries are only available statically and the use of the -# static library was approved (see https://fedorahosted.org/fesco/ticket/1370 ) -BuildRequires: llvm-static BuildRequires: zlib-devel # Scripts are Python 2 BuildRequires: python2-devel @@ -64,7 +61,7 @@ ln -s iwyu_tool.py iwyu_tool
%check # Need to have the clang header's at the correct relative path (see https://github.com/include-what-you-use/include-what-you-use/issues/100 ) -ln -s /usr/lib lib +ln -s %{_libdir} %{_lib} cd build PATH=$PWD:$PATH ln -s ../fix_includes.py @@ -86,6 +83,9 @@ ln -s ../tests
%changelog +* Thu Feb 04 2016 Dave Johansen davejohansen@gmail.com - 0.5-3 +- Changes for new llvm cmake build system + * Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
commit 92b867196b7be3fdb83389d2e11d5d3030a5cb68 Author: Dennis Gilmore dennis@ausil.us Date: Thu Feb 4 00:44:05 2016 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
diff --git a/iwyu.spec b/iwyu.spec index baa3732..59abc8a 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -4,7 +4,7 @@
Name: iwyu Version: 0.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -86,6 +86,9 @@ ln -s ../tests
%changelog +* Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Wed Sep 30 2015 Dave Johansen davejohansen@gmail.com - 0.5-1 - Upstream release
commit b101d83a8eaa15e494cb8eb4c6295680ede4217e Author: Dave Johansen davejohansen@gmail.com Date: Sat Jan 23 20:38:21 2016 -0700
Adding BuildRequires for ncurses-devel
diff --git a/iwyu.spec b/iwyu.spec index f129984..baa3732 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -22,6 +22,7 @@ BuildRequires: llvm-static BuildRequires: zlib-devel # Scripts are Python 2 BuildRequires: python2-devel +BuildRequires: ncurses-devel
# Virtual provide the long name Provides: include-what-you-use = %{version}-%{release}
commit d3da081466b844c86d0a522bc80ad4bf63db5bab Author: Dave Johansen davejohansen@gmail.com Date: Sat Jan 23 14:41:39 2016 -0700
Simplifying the symlinking to the clang system headers
diff --git a/iwyu.spec b/iwyu.spec index e0a05e5..f129984 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -63,9 +63,7 @@ ln -s iwyu_tool.py iwyu_tool
%check # Need to have the clang header's at the correct relative path (see https://github.com/include-what-you-use/include-what-you-use/issues/100 ) -%global clang_version %(ls -t /usr/lib/clang/ | head -n 1 || echo "666") -mkdir -p lib/clang/%{clang_version}/ -ln -s /usr/lib/clang/%{clang_version}/include lib/clang/%{clang_version} +ln -s /usr/lib lib cd build PATH=$PWD:$PATH ln -s ../fix_includes.py
commit 1c9f706820ffaacb73a77440cf82e71372ea0978 Author: Dave Johansen davejohansen@gmail.com Date: Thu Dec 10 20:09:32 2015 -0700
Updating to 0.5 (for clang 3.7)
diff --git a/.gitignore b/.gitignore index 3d6b510..4cb8311 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /include-what-you-use-3.4.src.tar.gz /include-what-you-use-3.5.src.tar.gz /include-what-you-use-0.4.src.tar.gz +/include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz diff --git a/iwyu.spec b/iwyu.spec index 88daa8a..e0a05e5 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,10 +1,10 @@ %global longname include-what-you-use %global owner %{longname} -%global commit0 a18b71320eaa6ca620558b87e0503cd2895efbcc +%global commit0 98f3e62d371ae602061951115efc3b75ff255824
Name: iwyu -Version: 0.4 -Release: 3%{?dist} +Version: 0.5 +Release: 1%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -12,7 +12,7 @@ URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit0%7D.tar.g...
BuildRequires: cmake -BuildRequires: clang-devel >= 3.6 +BuildRequires: clang-devel >= 3.7 # NOTE: This should probably listed as a dependency for clang-devel but it's # not, so make it explicit here BuildRequires: llvm-devel @@ -55,13 +55,17 @@ make %{?_smp_mflags}
%install %make_install DESTDIR=%{buildroot} -C build -install -pDm755 fix_includes.py %{buildroot}%{_bindir}/fix_includes -install -pDm755 iwyu_tool.py %{buildroot}%{_bindir}/iwyu_tool cd %{buildroot}%{_bindir} ln -s include-what-you-use iwyu +ln -s fix_includes.py fix_includes +ln -s iwyu_tool.py iwyu_tool
%check +# Need to have the clang header's at the correct relative path (see https://github.com/include-what-you-use/include-what-you-use/issues/100 ) +%global clang_version %(ls -t /usr/lib/clang/ | head -n 1 || echo "666") +mkdir -p lib/clang/%{clang_version}/ +ln -s /usr/lib/clang/%{clang_version}/include lib/clang/%{clang_version} cd build PATH=$PWD:$PATH ln -s ../fix_includes.py @@ -77,10 +81,15 @@ ln -s ../tests %{_bindir}/include-what-you-use %{_bindir}/iwyu %{_bindir}/fix_includes +%{_bindir}/fix_includes.py %{_bindir}/iwyu_tool +%{_bindir}/iwyu_tool.py
%changelog +* Wed Sep 30 2015 Dave Johansen davejohansen@gmail.com - 0.5-1 +- Upstream release + * Wed Jun 17 2015 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/sources b/sources index 87b64e9..159c6cc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0140dcc30f5b4117381fb6f5948bee6f include-what-you-use-0.4.src.tar.gz +6107250cd8614027b698900812d42b7e include-what-you-use-98f3e62d371ae602061951115efc3b75ff255824.tar.gz
commit e9c0f036a9952f2e1936c30bb1c57c66e85daf26 Author: Dave Johansen davejohansen@gmail.com Date: Thu Dec 10 19:57:51 2015 -0700
Moving things over to github
diff --git a/iwyu.spec b/iwyu.spec index cdc67fb..88daa8a 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,11 +1,15 @@ +%global longname include-what-you-use +%global owner %{longname} +%global commit0 a18b71320eaa6ca620558b87e0503cd2895efbcc + Name: iwyu Version: 0.4 Release: 3%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA -URL: https://code.google.com/p/include-what-you-use/ -Source0: http://include-what-you-use.org/downloads/include-what-you-use-%%7Bversion%7... +URL: https://github.com/%%7Bowner%7D/%%7Blongname%7D +Source0: https://github.com/%%7Bowner%7D/%%7Blongname%7D/archive/%%7Bcommit0%7D.tar.g...
BuildRequires: cmake BuildRequires: clang-devel >= 3.6 @@ -38,7 +42,7 @@ include-what-you-use violations, and suggest fixes for them.
%prep -%setup -q -n include-what-you-use +%setup -q -n %{longname}-%{commit0}
%build
commit b1924804c8601c502cb41f4035823b680905b2af Author: Dennis Gilmore dennis@ausil.us Date: Wed Jun 17 11:40:29 2015 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/iwyu.spec b/iwyu.spec index e8c8401..cdc67fb 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,6 +1,6 @@ Name: iwyu Version: 0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -77,6 +77,9 @@ ln -s ../tests
%changelog +* Wed Jun 17 2015 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Thu Jun 04 2015 Dave Johansen davejohansen@gmail.com - 0.4-2 - Added iwyu_tool
commit f2cfbc8863b0409c0f2fdbe738aaa231ef937b09 Author: Dave Johansen davejohansen@gmail.com Date: Thu Jun 4 19:34:44 2015 -0700
Added iwyu_tool
diff --git a/iwyu.spec b/iwyu.spec index 396c84d..e8c8401 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,6 +1,6 @@ Name: iwyu Version: 0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA @@ -52,6 +52,7 @@ make %{?_smp_mflags} %install %make_install DESTDIR=%{buildroot} -C build install -pDm755 fix_includes.py %{buildroot}%{_bindir}/fix_includes +install -pDm755 iwyu_tool.py %{buildroot}%{_bindir}/iwyu_tool cd %{buildroot}%{_bindir} ln -s include-what-you-use iwyu
@@ -72,9 +73,13 @@ ln -s ../tests %{_bindir}/include-what-you-use %{_bindir}/iwyu %{_bindir}/fix_includes +%{_bindir}/iwyu_tool
%changelog +* Thu Jun 04 2015 Dave Johansen davejohansen@gmail.com - 0.4-2 +- Added iwyu_tool + * Mon Jun 01 2015 Dave Johansen davejohansen@gmail.com - 0.4-1 - Update to 0.4 based on clang 3.6.0
commit ab8c3b65674a4b3cb46fa122bc53c3d9bfba4894 Author: Dave Johansen davejohansen@gmail.com Date: Thu Jun 4 19:33:46 2015 -0700
Fixing Source0 URL
diff --git a/iwyu.spec b/iwyu.spec index 1e98d9e..396c84d 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -5,7 +5,7 @@ Summary: C/C++ source files #include analyzer based on clang
License: NCSA URL: https://code.google.com/p/include-what-you-use/ -Source0: http://include-what-you-use.com/downloads/include-what-you-use-%%7Bversion%7... +Source0: http://include-what-you-use.org/downloads/include-what-you-use-%%7Bversion%7...
BuildRequires: cmake BuildRequires: clang-devel >= 3.6
commit 9d23be13c38c1cb49aa8d5aaecfa0c6cd79ae28e Author: Dave Johansen davejohansen@gmail.com Date: Thu Jun 4 19:32:05 2015 -0700
Removing patch that's no longer used
diff --git a/iwyu-link_dir.patch b/iwyu-link_dir.patch deleted file mode 100644 index 4e495a4..0000000 --- a/iwyu-link_dir.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -5,12 +5,11 @@ - if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR ) - message(STATUS "IWYU out-of-tree configuration") - -- if( NOT DEFINED LLVM_PATH ) -- message(FATAL_ERROR "LLVM_PATH must be provided using -DLLVM_PATH=<path to llvm package root>") -+ if( NOT DEFINED LLVM_LIB_PATH ) -+ message(FATAL_ERROR "LLVM_LIB_PATH must be provided using -DLLVM_LIB_PATH=<path to llvm package root>") - endif() - -- link_directories(${LLVM_PATH}/lib) -- include_directories(${LLVM_PATH}/include) -+ link_directories(${LLVM_LIB_PATH}) - - add_definitions( - -D__STDC_LIMIT_MACROS
commit 72ccb5880e99e0ffcd72d2a9835069604f97b1ef Author: Dave Johansen davejohansen@gmail.com Date: Tue Jun 2 19:18:04 2015 -0700
Putting back the ExclusiveArch that was accidentally removed during the update to 0.4
diff --git a/iwyu.spec b/iwyu.spec index 3ac4766..1e98d9e 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -23,6 +23,10 @@ BuildRequires: python2-devel Provides: include-what-you-use = %{version}-%{release} Provides: include-what-you-use%{?_isa} = %{version}-%{release}
+# It isn't building on ARM, so just exclude it for now (see https://bugzilla.redhat.com/show_bug.cgi?id=1192713 ) +# Also, the tests use x86 assembly right now (see https://groups.google.com/forum/#!topic/include-what-you-use/lEuN5tr-0y0 ) +ExclusiveArch: %{ix86} x86_64 +
%description "Include what you use" means this: for every symbol (type, function, variable,
commit faddf85af84eec90c0539974c3695cffb4f73308 Author: Dave Johansen davejohansen@gmail.com Date: Mon Jun 1 22:09:06 2015 -0700
Adding source tarball
diff --git a/.gitignore b/.gitignore index 5f0bab2..3d6b510 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /include-what-you-use-3.4.src.tar.gz /include-what-you-use-3.5.src.tar.gz +/include-what-you-use-0.4.src.tar.gz diff --git a/sources b/sources index 2f8cfa9..87b64e9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -27e8a18a91b45df8b99eb78057f2bba5 include-what-you-use-3.5.src.tar.gz +0140dcc30f5b4117381fb6f5948bee6f include-what-you-use-0.4.src.tar.gz
commit 2f519d1e93e85538a583c6a85ee30587d380df0b Author: Dave Johansen davejohansen@gmail.com Date: Mon Jun 1 22:02:02 2015 -0700
Updating to 0.4 based on clang 3.6.0
diff --git a/iwyu.spec b/iwyu.spec index d1b9450..3ac4766 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,19 +1,14 @@ -# The base version of clang being built against -%global clang_base_version 3.5 - Name: iwyu -Version: 0.3 +Version: 0.4 Release: 1%{?dist} Summary: C/C++ source files #include analyzer based on clang
License: NCSA URL: https://code.google.com/p/include-what-you-use/ -Source0: http://include-what-you-use.com/downloads/include-what-you-use-%%7Bclang_bas... - -Patch1: iwyu-link_dir.patch +Source0: http://include-what-you-use.com/downloads/include-what-you-use-%%7Bversion%7...
BuildRequires: cmake -BuildRequires: clang-devel +BuildRequires: clang-devel >= 3.6 # NOTE: This should probably listed as a dependency for clang-devel but it's # not, so make it explicit here BuildRequires: llvm-devel @@ -28,10 +23,6 @@ BuildRequires: python2-devel Provides: include-what-you-use = %{version}-%{release} Provides: include-what-you-use%{?_isa} = %{version}-%{release}
-# It isn't building on ARM, so just exclude it for now (see https://bugzilla.redhat.com/show_bug.cgi?id=1192713 ) -# Also, the tests use x86 assembly right now (see https://groups.google.com/forum/#!topic/include-what-you-use/lEuN5tr-0y0 ) -ExclusiveArch: %{ix86} x86_64 -
%description "Include what you use" means this: for every symbol (type, function, variable, @@ -44,20 +35,18 @@ include-what-you-use violations, and suggest fixes for them.
%prep %setup -q -n include-what-you-use -%patch1 -p1
%build mkdir build cd build -%cmake -DLLVM_LIB_PATH=%{_libdir}/llvm .. +# NOTE: Have to specify both lib and include dir for it to work +%cmake -DIWYU_LLVM_LIB_PATH=%{_libdir}/llvm -DIWYU_LLVM_INCLUDE_PATH=%{_includedir} .. make %{?_smp_mflags}
%install %make_install DESTDIR=%{buildroot} -C build -grep -m 1 '^#!/usr/bin/python\b' fix_includes.py || exit -1 -sed -i '1 s|^#!/usr/bin/python\b|#!%{__python2}|' fix_includes.py install -pDm755 fix_includes.py %{buildroot}%{_bindir}/fix_includes cd %{buildroot}%{_bindir} ln -s include-what-you-use iwyu @@ -82,6 +71,9 @@ ln -s ../tests
%changelog +* Mon Jun 01 2015 Dave Johansen davejohansen@gmail.com - 0.4-1 +- Update to 0.4 based on clang 3.6.0 + * Tue Jan 27 2015 Dave Johansen davejohansen@gmail.com - 0.3-1 - Update to 0.3 based on clang 3.5.0
commit 90f6f4162f2ec89483adbdff66c5d9fbc1053b37 Author: Dave Johansen davejohansen@gmail.com Date: Wed Feb 25 20:30:47 2015 -0700
Making it exclusive x86 since the tests use x86 assembly right now
diff --git a/iwyu.spec b/iwyu.spec index 10b1e24..d1b9450 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -29,7 +29,8 @@ Provides: include-what-you-use = %{version}-%{release} Provides: include-what-you-use%{?_isa} = %{version}-%{release}
# It isn't building on ARM, so just exclude it for now (see https://bugzilla.redhat.com/show_bug.cgi?id=1192713 ) -ExcludeArch: %{arm} +# Also, the tests use x86 assembly right now (see https://groups.google.com/forum/#!topic/include-what-you-use/lEuN5tr-0y0 ) +ExclusiveArch: %{ix86} x86_64
%description
commit ec41659f7b09f9c5b18b9bd6e8045590351bbf8c Author: Dave Johansen davejohansen@gmail.com Date: Sat Feb 14 08:48:48 2015 -0700
Exclude ARM since it's failing to build there
diff --git a/iwyu.spec b/iwyu.spec index 9d9cd12..10b1e24 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -28,6 +28,9 @@ BuildRequires: python2-devel Provides: include-what-you-use = %{version}-%{release} Provides: include-what-you-use%{?_isa} = %{version}-%{release}
+# It isn't building on ARM, so just exclude it for now (see https://bugzilla.redhat.com/show_bug.cgi?id=1192713 ) +ExcludeArch: %{arm} +
%description "Include what you use" means this: for every symbol (type, function, variable,
commit 4ae256d2b6e1e0b500056bb9e95e573b0759c27e Author: Dave Johansen davejohansen@gmail.com Date: Sat Feb 14 08:06:17 2015 -0700
Update to 0.3 based on clang 3.5.0
diff --git a/.gitignore b/.gitignore index 87d35b3..5f0bab2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /include-what-you-use-3.4.src.tar.gz +/include-what-you-use-3.5.src.tar.gz diff --git a/iwyu.spec b/iwyu.spec index 7a02cf1..9d9cd12 100644 --- a/iwyu.spec +++ b/iwyu.spec @@ -1,12 +1,11 @@ # The base version of clang being built against -%global clang_base_version 3.4 +%global clang_base_version 3.5
Name: iwyu -Version: 0.2 +Version: 0.3 Release: 1%{?dist} Summary: C/C++ source files #include analyzer based on clang
-Group: Development/Languages License: NCSA URL: https://code.google.com/p/include-what-you-use/ Source0: http://include-what-you-use.com/downloads/include-what-you-use-%%7Bclang_bas... @@ -29,11 +28,6 @@ BuildRequires: python2-devel Provides: include-what-you-use = %{version}-%{release} Provides: include-what-you-use%{?_isa} = %{version}-%{release}
-# Make sure the python macro is available -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?__python2: %global __python2 /usr/bin/python2} -%endif -
%description "Include what you use" means this: for every symbol (type, function, variable, @@ -66,10 +60,6 @@ ln -s include-what-you-use iwyu
%check -# Need to have the clang header's at the correct relative path (see https://code.google.com/p/include-what-you-use/issues/detail?id=100) -%global clang_version %{clang_base_version}.2 -mkdir -p lib/clang/%{clang_version}/ -ln -s /usr/lib/clang/%{clang_version}/include lib/clang/%{clang_version} cd build PATH=$PWD:$PATH ln -s ../fix_includes.py @@ -88,5 +78,8 @@ ln -s ../tests
%changelog +* Tue Jan 27 2015 Dave Johansen davejohansen@gmail.com - 0.3-1 +- Update to 0.3 based on clang 3.5.0 + * Fri Apr 25 2014 Dave Johansen davejohansen@gmail.com - 0.2-1 - Initial RPM release diff --git a/sources b/sources index 9f6e7f8..2f8cfa9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -50e4548862c4295fc971c9aa84a610e5 include-what-you-use-3.4.src.tar.gz +27e8a18a91b45df8b99eb78057f2bba5 include-what-you-use-3.5.src.tar.gz
commit 0c758bd34eadd138bbab2eb00e1afde3ce0f5ae3 Author: Dave Johansen davejohansen@gmail.com Date: Sat Feb 14 08:02:26 2015 -0700
Initial RPM release
diff --git a/.gitignore b/.gitignore index e69de29..87d35b3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/include-what-you-use-3.4.src.tar.gz diff --git a/iwyu-link_dir.patch b/iwyu-link_dir.patch new file mode 100644 index 0000000..4e495a4 --- /dev/null +++ b/iwyu-link_dir.patch @@ -0,0 +1,18 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,12 +5,11 @@ + if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR ) + message(STATUS "IWYU out-of-tree configuration") + +- if( NOT DEFINED LLVM_PATH ) +- message(FATAL_ERROR "LLVM_PATH must be provided using -DLLVM_PATH=<path to llvm package root>") ++ if( NOT DEFINED LLVM_LIB_PATH ) ++ message(FATAL_ERROR "LLVM_LIB_PATH must be provided using -DLLVM_LIB_PATH=<path to llvm package root>") + endif() + +- link_directories(${LLVM_PATH}/lib) +- include_directories(${LLVM_PATH}/include) ++ link_directories(${LLVM_LIB_PATH}) + + add_definitions( + -D__STDC_LIMIT_MACROS diff --git a/iwyu.spec b/iwyu.spec new file mode 100644 index 0000000..7a02cf1 --- /dev/null +++ b/iwyu.spec @@ -0,0 +1,92 @@ +# The base version of clang being built against +%global clang_base_version 3.4 + +Name: iwyu +Version: 0.2 +Release: 1%{?dist} +Summary: C/C++ source files #include analyzer based on clang + +Group: Development/Languages +License: NCSA +URL: https://code.google.com/p/include-what-you-use/ +Source0: http://include-what-you-use.com/downloads/include-what-you-use-%%7Bclang_bas... + +Patch1: iwyu-link_dir.patch + +BuildRequires: cmake +BuildRequires: clang-devel +# NOTE: This should probably listed as a dependency for clang-devel but it's +# not, so make it explicit here +BuildRequires: llvm-devel +# Some of the Clang libraries are only available statically and the use of the +# static library was approved (see https://fedorahosted.org/fesco/ticket/1370 ) +BuildRequires: llvm-static +BuildRequires: zlib-devel +# Scripts are Python 2 +BuildRequires: python2-devel + +# Virtual provide the long name +Provides: include-what-you-use = %{version}-%{release} +Provides: include-what-you-use%{?_isa} = %{version}-%{release} + +# Make sure the python macro is available +%if 0%{?rhel} && 0%{?rhel} <= 6 +%{!?__python2: %global __python2 /usr/bin/python2} +%endif + + +%description +"Include what you use" means this: for every symbol (type, function, variable, +or macro) that you use in foo.cc (or foo.cpp), either foo.cc or foo.h +should #include a .h file that exports the declaration of that symbol. The +include-what-you-use tool is a program that can be built with the clang +libraries in order to analyze #includes of source files to find +include-what-you-use violations, and suggest fixes for them. + + +%prep +%setup -q -n include-what-you-use +%patch1 -p1 + + +%build +mkdir build +cd build +%cmake -DLLVM_LIB_PATH=%{_libdir}/llvm .. +make %{?_smp_mflags} + + +%install +%make_install DESTDIR=%{buildroot} -C build +grep -m 1 '^#!/usr/bin/python\b' fix_includes.py || exit -1 +sed -i '1 s|^#!/usr/bin/python\b|#!%{__python2}|' fix_includes.py +install -pDm755 fix_includes.py %{buildroot}%{_bindir}/fix_includes +cd %{buildroot}%{_bindir} +ln -s include-what-you-use iwyu + + +%check +# Need to have the clang header's at the correct relative path (see https://code.google.com/p/include-what-you-use/issues/detail?id=100) +%global clang_version %{clang_base_version}.2 +mkdir -p lib/clang/%{clang_version}/ +ln -s /usr/lib/clang/%{clang_version}/include lib/clang/%{clang_version} +cd build +PATH=$PWD:$PATH +ln -s ../fix_includes.py +ln -s ../fix_includes_test.py +ln -s ../iwyu_test_util.py +ln -s ../run_iwyu_tests.py +ln -s ../tests +%{__python2} run_iwyu_tests.py +%{__python2} fix_includes_test.py + + +%files +%{_bindir}/include-what-you-use +%{_bindir}/iwyu +%{_bindir}/fix_includes + + +%changelog +* Fri Apr 25 2014 Dave Johansen davejohansen@gmail.com - 0.2-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..9f6e7f8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +50e4548862c4295fc971c9aa84a610e5 include-what-you-use-3.4.src.tar.gz