85399c4
Name:           libgit2
d1ca7d7
Version:        0.23.4
0d1a8e0
Release:        2%{?dist}
85399c4
Summary:        C implementation of the Git core methods as a library with a solid API
85399c4
License:        GPLv2 with exceptions
85399c4
URL:            http://libgit2.github.com/
85399c4
Source0:        https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
0d1a8e0
# https://bugzilla.redhat.com/show_bug.cgi?id=1383212
0d1a8e0
# CVE-2016-8568 CVE-2016-8569
0d1a8e0
# https://github.com/libgit2/libgit2/commit/a719ef5e6d4a1a8ec53469c7914032ed67922772
0d1a8e0
Patch0001:      0001-commit-always-initialize-commit-message.patch
0d1a8e0
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}
85399c4
Requires:       %{name}%{?_isa} = %{version}-%{release}
d3af3a5
572f7ea
%description    devel
85399c4
This package contains libraries and header files for
d3af3a5
developing applications that use %{name}.
d3af3a5
d3af3a5
%prep
0d1a8e0
%autosetup -p1
36b21f1
d3af3a5
# Remove VCS files from examples
85399c4
find examples -name ".gitignore" -delete -print
d3af3a5
d3af3a5
# Fix pkgconfig generation
d3af3a5
sed -i 's|@CMAKE_INSTALL_PREFIX@/||' libgit2.pc.in
d3af3a5
d3af3a5
# Don't test network
d3af3a5
sed -i 's/ionline/xonline/' CMakeLists.txt
d3af3a5
d3af3a5
# Remove bundled libraries
85399c4
rm -frv deps
d3af3a5
d3af3a5
%build
572f7ea
%cmake -DTHREADSAFE=ON .
00b6159
%make_build
d3af3a5
85399c4
%install
85399c4
%make_install
d3af3a5
d3af3a5
%check
d3af3a5
ctest -V
d3af3a5
d3af3a5
%post -p /sbin/ldconfig
d3af3a5
85399c4
%postun -p /sbin/ldconfig
d3af3a5
d3af3a5
%files
8beb6d3
%license COPYING
d3af3a5
%{_libdir}/libgit2.so.*
d3af3a5
d3af3a5
%files devel
00b6159
%doc AUTHORS docs examples README.md
d3af3a5
%{_libdir}/libgit2.so
d3af3a5
%{_libdir}/pkgconfig/libgit2.pc
85399c4
%{_includedir}/git2.h
85399c4
%{_includedir}/git2/
d3af3a5
d3af3a5
%changelog
0d1a8e0
* Mon Oct 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.4-2
0d1a8e0
- Backport patch for CVE-2016-8568, CVE-2016-8569
0d1a8e0
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
3de35f3
* Tue Aug 04 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.23.0-1.1
3de35f3
- Bump version to allow rebuild
3de35f3
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.