85399c4
Name:           libgit2
b90b13b
Version:        0.26.8
162bc92
Release:        1%{?dist}
85399c4
Summary:        C implementation of the Git core methods as a library with a solid API
85399c4
License:        GPLv2 with exceptions
9d4f32c
URL:            https://libgit2.org
Igor Gnatenko e639a6f
Source0:        https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
cae5088
# https://github.com/libgit2/libgit2/commit/415a8ae9c9b6ac18f0524b6af8e58408b426457d
cae5088
Patch0001:      0001-tests-don-t-run-buf-oom-on-32-bit-systems.patch
a1fed87
504bbc1
BuildRequires:  gcc
572f7ea
BuildRequires:  cmake
85399c4
BuildRequires:  http-parser-devel
0114ace
BuildRequires:  libcurl-devel
85399c4
BuildRequires:  libssh2-devel
85399c4
BuildRequires:  openssl-devel
00b6159
BuildRequires:  python2
85399c4
BuildRequires:  zlib-devel
85399c4
Provides:       bundled(libxdiff)
Mathieu Bridon 490c5ad
d3af3a5
%description
d3af3a5
libgit2 is a portable, pure C implementation of the Git core methods 
d3af3a5
provided as a re-entrant linkable library with a solid API, allowing
d3af3a5
you to write native speed custom Git applications in any language
d3af3a5
with bindings.
d3af3a5
85399c4
%package        devel
85399c4
Summary:        Development files for %{name}
Igor Gnatenko e639a6f
Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
d3af3a5
572f7ea
%description    devel
85399c4
This package contains libraries and header files for
d3af3a5
developing applications that use %{name}.
d3af3a5
d3af3a5
%prep
a1fed87
%autosetup -p1
36b21f1
d3af3a5
# Remove VCS files from examples
85399c4
find examples -name ".gitignore" -delete -print
d3af3a5
cae5088
# Don't run "online" tests
cae5088
sed -i '/ADD_TEST(online/s/^/#/' CMakeLists.txt
d3af3a5
d3af3a5
# Remove bundled libraries
85399c4
rm -frv deps
d3af3a5
d3af3a5
%build
Igor Gnatenko e639a6f
mkdir %{_target_platform}
Igor Gnatenko e639a6f
pushd %{_target_platform}
Igor Gnatenko 7df89b4
  %cmake -DTHREADSAFE=ON ..
Igor Gnatenko 7df89b4
popd
Igor Gnatenko e639a6f
%make_build -C %{_target_platform}
d3af3a5
85399c4
%install
Igor Gnatenko e639a6f
%make_install -C %{_target_platform}
d3af3a5
d3af3a5
%check
Igor Gnatenko e639a6f
pushd %{_target_platform}
Igor Gnatenko 7df89b4
  ctest -VV
Igor Gnatenko 7df89b4
popd
d3af3a5
796dbde
%ldconfig_scriptlets
d3af3a5
d3af3a5
%files
8beb6d3
%license COPYING
Igor Gnatenko 7df89b4
%{_libdir}/%{name}.so.*
d3af3a5
d3af3a5
%files devel
00b6159
%doc AUTHORS docs examples README.md
Igor Gnatenko 7df89b4
%{_libdir}/%{name}.so
Igor Gnatenko 7df89b4
%{_libdir}/pkgconfig/%{name}.pc
85399c4
%{_includedir}/git2.h
85399c4
%{_includedir}/git2/
d3af3a5
d3af3a5
%changelog
b90b13b
* Fri Oct 26 2018 Pete Walter <pwalter@fedoraproject.org> - 0.26.8-1
b90b13b
- Update to 0.26.8
9d4f32c
- Update upstream URL
b90b13b
1d1b50a
* Mon Oct 08 2018 Pete Walter <pwalter@fedoraproject.org> - 0.26.7-1
1d1b50a
- Update to 0.26.7 (CVE-2018-17456)
1d1b50a
8359b39
* Tue Aug 07 2018 Pete Walter <pwalter@fedoraproject.org> - 0.26.6-1
8359b39
- Update to 0.26.6
8359b39
0158783
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 0.26.5-1
0158783
- Update to 0.26.5 (CVE-2018-10887, CVE-2018-10888)
0158783
677c37d
* Mon Jun 25 2018 Pete Walter <pwalter@fedoraproject.org> - 0.26.4-1
677c37d
- Update to 0.26.4 (CVE-2018-11235)
677c37d
162bc92
* Mon Mar 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26.3-1
162bc92
- Update to 0.26.3
162bc92
37312e6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-5
37312e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
37312e6
796dbde
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26.0-4
796dbde
- Switch to %%ldconfig_scriptlets
796dbde
dd5b618
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-3
dd5b618
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dd5b618
1fb74bb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2
1fb74bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1fb74bb
504bbc1
* Sat Jul 08 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26.0-1
504bbc1
- Update to 0.26.0
504bbc1
Igor Gnatenko 9122ada
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.1-3
Igor Gnatenko 9122ada
- Backport patch to fix pkgconfig file under g-ir-scanner
Igor Gnatenko 9122ada
Igor Gnatenko a500da8
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.1-2
Igor Gnatenko a500da8
- Bump release for rebuild
Igor Gnatenko a500da8
Igor Gnatenko e639a6f
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.1-1
Igor Gnatenko e639a6f
- Update to 0.25.1 (RHBZ #1395926)
Igor Gnatenko e639a6f
Igor Gnatenko 61ceee5
* Tue Jan 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.24.6-1
Igor Gnatenko 61ceee5
- Update to 0.24.6 (RHBZ #1411857)
Igor Gnatenko 61ceee5
d3dc6b8
* Thu Nov 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.3-1
d3dc6b8
- Update to 0.24.3 (RHBZ #1391480)
d3dc6b8
- Add support for OpenSSL 1.1.0 (RHBZ #1383753)
d3dc6b8
a1fed87
* Mon Oct 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.2-2
a1fed87
- Backport patch for CVE-2016-8568, CVE-2016-8569
a1fed87
42b7966
* Tue Oct 04 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.2-1
42b7966
- Update to 0.24.2 (RHBZ #1381398)
42b7966
Igor Gnatenko 7df89b4
* Wed Apr 13 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-1
Igor Gnatenko 7df89b4
- Update to 0.24.1
Igor Gnatenko 7df89b4
1ff5997
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-1
1ff5997
- Update to 0.24.0 (RHBZ #1310638)
1ff5997
03a0159
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.4-2
03a0159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
03a0159
d1ca7d7
* Sun Nov 22 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.23.4-1
d1ca7d7
- Update to 0.23.4 (RHBZ #1281633)
d1ca7d7
463c08a
* Tue Oct 06 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.23.3-1
463c08a
- Update to 0.23.3 (RHBZ #1260324)
463c08a
da8be21
* Tue Sep 08 2015 Igor Gnatenko <ignatenko@src.gnome.org> - 0.23.2-1
da8be21
- Update to 0.23.2
da8be21
0114ace
* Wed Sep 02 2015 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.23.1-1
0114ace
- Update to 0.23.1
0114ace
- Add curl support
0114ace
8beb6d3
* Thu Jul 30 2015 Igor Gnatenko <ignatenko@src.gnome.org> - 0.23.0-1
8beb6d3
- Update to 0.23.0
8beb6d3
6c515da
* Fri Jul 03 2015 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.22.3-1
6c515da
- Update to 0.22.3
6c515da
c88e41f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.2-2
c88e41f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c88e41f
863afac
* Tue Mar 24 2015 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.22.2-1
863afac
- Update to 0.22.2
863afac
e6ebe4f
* Sat Feb 14 2015 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.22.1-1
e6ebe4f
- Update to 0.22.1
e6ebe4f
Ignacio Casal Quinteiro 853ba78
* Mon Jan 19 2015 Ignacio Casal Quinteiro <icq@gnome.org> - 0.22.0-1
Ignacio Casal Quinteiro 853ba78
- Update to 0.22.0
Ignacio Casal Quinteiro 853ba78
643e4c1
* Fri Dec 26 2014 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.21.3-1
643e4c1
- Update to 0.21.3
643e4c1
56f1adc
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.1-2
56f1adc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
56f1adc
00b6159
* Wed Aug 06 2014 Christopher Meng <rpm@cicku.me> - 0.21.1-1
00b6159
- Update to 0.21.1
00b6159
Yaakov Selkowitz bf85dd1
* Fri Jul 18 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 0.21.0-2
Yaakov Selkowitz bf85dd1
- Fix memory alignment issues on arm, aarch64, ppc64le (#1115905)
Yaakov Selkowitz bf85dd1
85399c4
* Sat Jun 21 2014 Christopher Meng <rpm@cicku.me> - 0.21.0-1
85399c4
- Update to 0.21.0
85399c4
b908d45
* Fri Jun 06 2014 Karsten Hopp <karsten@redhat.com> 0.20.0-4
b908d45
- temporarily disable checks on ppc64 and s390x (Bugzilla 1105552)
b908d45
Mathieu Bridon 798fc79
* Thu Mar 27 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.20.0-3
Mathieu Bridon 798fc79
- Fix build requirement on libssh2-devel. (RHBZ#1039433)
Mathieu Bridon 798fc79
Mathieu Bridon 08121d6
* Tue Mar 25 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.20.0-2
Mathieu Bridon 490c5ad
- Build with the bundled xdiff.
Mathieu Bridon 92c4058
- Disable a failing test. (libgit2#2199)
Mathieu Bridon b305215
- Add missing build requirement on libssh2. (RHBZ#1039433)
Mathieu Bridon 71df7d7
- Build a thread-safe libgit2.
Mathieu Bridon 490c5ad
Ignacio Casal Quinteiro ee4ce92
* Sun Nov 24 2013 Ignacio Casal Quinteiro <icq@gnome.org> - 0.20.0-1
Ignacio Casal Quinteiro ee4ce92
- 0.20.0
Ignacio Casal Quinteiro ee4ce92
808259a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19.0-2
808259a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
808259a
fe4e349
* Tue Jun 25 2013 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.19.0-1
fe4e349
- 0.19.0
fe4e349
5ba7399
* Wed Jun 19 2013 Dan HorĂ¡k <dan[at]danny.cz> - 0.18.0-5
5ba7399
- Add htonl() and friends declarations on non-x86 arches
5ba7399
- Rebuilt with fixed libxdiff for big endian arches
5ba7399
d3af3a5
* Thu May 30 2013 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.18.0-4
d3af3a5
- Update the http-parser patch
d3af3a5
- Skip tests that require network connectivity
d3af3a5
d3af3a5
* Thu May 30 2013 Tom Callaway <spot@fedoraproject.org> - 0.18.0-3
d3af3a5
- use system libxdiff instead of bundled copy
d3af3a5
d3af3a5
* Fri May 24 2013 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.18.0-2
d3af3a5
- Remove unnecessary CMake build flags
d3af3a5
- Fix the pkgconfig file
d3af3a5
d3af3a5
* Thu May 02 2013 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.18.0-1
d3af3a5
- Update to version 0.18.0
d3af3a5
- Unbundle the http-parser library
d3af3a5
d3af3a5
* Fri Oct 19 2012 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.17.0-2
d3af3a5
- Use make for building and installation
d3af3a5
- Specify minimum CMake version
d3af3a5
- Remove useless OpenSSL build dependency
d3af3a5
- Move development documentation to the -devel package
d3af3a5
- Add code examples to the -devel package
d3af3a5
d3af3a5
* Thu Oct 18 2012 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.17.0-1
d3af3a5
- Initial package.