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