[11775] | 1 | Summary: C implementation of the Git core methods as a library with a solid API |
---|
| 2 | Name: libgit2 |
---|
| 3 | Version: 0.27.4 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: GPLv2 |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | URL: https://libgit2.github.com/ |
---|
[9478] | 8 | |
---|
[9791] | 9 | # https://github.com/libgit2/libgit2/archive/v0.23.3.tar.gz |
---|
[11775] | 10 | Source0: %{name}-%{version}.tar.gz |
---|
[9478] | 11 | |
---|
| 12 | BuildRequires: cmake |
---|
[9487] | 13 | BuildRequires: openssl-devel |
---|
| 14 | BuildRequires: http-parser-devel |
---|
| 15 | BuildRequires: libssh2-devel |
---|
| 16 | BuildRequires: zlib-devel |
---|
[9478] | 17 | |
---|
[11775] | 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9478] | 19 | |
---|
[11775] | 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | Packager: Takemikaduchi |
---|
[9478] | 23 | |
---|
| 24 | %description |
---|
| 25 | libgit2 is a portable, pure C implementation of the Git core methods |
---|
| 26 | provided as a re-entrant linkable library with a solid API, allowing |
---|
| 27 | you to write native speed custom Git applications in any language |
---|
[11775] | 28 | which supports C bindings. |
---|
[9478] | 29 | |
---|
| 30 | |
---|
| 31 | %package devel |
---|
| 32 | Summary: Development tools for %{name} |
---|
| 33 | Summary(ja): %{name} の開発環境 |
---|
| 34 | Group: Development/Libraries |
---|
| 35 | Requires: %{name} = %{version}-%{release} |
---|
| 36 | Requires: pkgconfig |
---|
[9487] | 37 | Requires: openssl-devel |
---|
| 38 | Requires: http-parser-devel |
---|
| 39 | Requires: libssh2-devel |
---|
| 40 | Requires: zlib-devel |
---|
[9478] | 41 | |
---|
| 42 | %description devel |
---|
| 43 | Header files and libraries for building a extension library for the %{name}. |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %prep |
---|
| 47 | %setup -q |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %build |
---|
| 51 | rm -rf build && mkdir build && pushd build |
---|
| 52 | %cmake -DINSTALL_DOCS=OFF \ |
---|
[11775] | 53 | ../ |
---|
[9478] | 54 | |
---|
| 55 | make %{?_smp_mflags} |
---|
| 56 | popd |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %install |
---|
| 60 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 61 | pushd build |
---|
| 62 | make install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 63 | popd |
---|
| 64 | |
---|
| 65 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 66 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %clean |
---|
| 70 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 71 | |
---|
| 72 | %post -p /sbin/ldconfig |
---|
| 73 | |
---|
| 74 | %postun -p /sbin/ldconfig |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %files |
---|
| 78 | %defattr(-,root,root,-) |
---|
| 79 | %doc COPYING CHANGELOG.md README.md |
---|
| 80 | %{_libdir}/%{name}.so.* |
---|
| 81 | |
---|
| 82 | %files devel |
---|
| 83 | %defattr(-,root,root,-) |
---|
| 84 | %{_includedir}/git2/ |
---|
| 85 | %{_includedir}/git2.h |
---|
| 86 | %{_libdir}/%{name}.so |
---|
| 87 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | %changelog |
---|
[11775] | 91 | * Mon Aug 20 2018 Toshiaki Ara <ara_t@384.jp> 0.27.4-1 |
---|
| 92 | - new upstream release |
---|
| 93 | |
---|
[10291] | 94 | * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.1-1 |
---|
| 95 | - new upstream release |
---|
| 96 | |
---|
[9791] | 97 | * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.3-1 |
---|
| 98 | - new upstream release |
---|
| 99 | |
---|
[9487] | 100 | * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-2 |
---|
| 101 | - add BuildRequires: openssl-devel, http-parser-devel, libssh2-devel, zlib-devel |
---|
| 102 | |
---|
[9478] | 103 | * Wed Apr 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-1 |
---|
| 104 | - initial build |
---|
| 105 | |
---|