| 1 | Summary: C implementation of the Git core methods as a library with a solid API |
|---|
| 2 | Name: libgit2 |
|---|
| 3 | Version: 0.24.1 |
|---|
| 4 | Release: 1%{?_dist_release} |
|---|
| 5 | License: GPLv2 |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | URL: https://libgit2.github.com/ |
|---|
| 8 | |
|---|
| 9 | # https://github.com/libgit2/libgit2/archive/v0.23.3.tar.gz |
|---|
| 10 | Source0: %{name}-%{version}.tar.gz |
|---|
| 11 | |
|---|
| 12 | BuildRequires: cmake |
|---|
| 13 | BuildRequires: openssl-devel |
|---|
| 14 | BuildRequires: http-parser-devel |
|---|
| 15 | BuildRequires: libssh2-devel |
|---|
| 16 | BuildRequires: zlib-devel |
|---|
| 17 | |
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 19 | |
|---|
| 20 | Vendor: Project Vine |
|---|
| 21 | Distribution: Vine Linux |
|---|
| 22 | Packager: Takemikaduchi |
|---|
| 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 |
|---|
| 28 | which supports C bindings. |
|---|
| 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 |
|---|
| 37 | Requires: openssl-devel |
|---|
| 38 | Requires: http-parser-devel |
|---|
| 39 | Requires: libssh2-devel |
|---|
| 40 | Requires: zlib-devel |
|---|
| 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 \ |
|---|
| 53 | ../ |
|---|
| 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 |
|---|
| 91 | * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.1-1 |
|---|
| 92 | - new upstream release |
|---|
| 93 | |
|---|
| 94 | * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.3-1 |
|---|
| 95 | - new upstream release |
|---|
| 96 | |
|---|
| 97 | * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-2 |
|---|
| 98 | - add BuildRequires: openssl-devel, http-parser-devel, libssh2-devel, zlib-devel |
|---|
| 99 | |
|---|
| 100 | * Wed Apr 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-1 |
|---|
| 101 | - initial build |
|---|
| 102 | |
|---|