85399c4
Name:           libgit2
00b6159
Version:        0.21.1
56f1adc
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
Yaakov Selkowitz bf85dd1
# https://github.com/libgit2/libgit2/issues/2450
00b6159
#Patch0:         libgit2-0.21.0-arm.patch
572f7ea
BuildRequires:  cmake
85399c4
BuildRequires:  http-parser-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
d3af3a5
%setup -q
00b6159
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
b908d45
# remove when rhbz#1105552 is fixed:
Yaakov Selkowitz bf85dd1
%ifnarch ppc64 s390x
d3af3a5
ctest -V
b908d45
%endif
d3af3a5
d3af3a5
%post -p /sbin/ldconfig
d3af3a5
85399c4
%postun -p /sbin/ldconfig
d3af3a5
d3af3a5
%files
00b6159
%doc 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
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.