diff --git a/README.md b/README.md index 8ba58e6..6197597 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libgit2 +libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language with bindings. + diff --git a/libgit2.spec b/libgit2.spec new file mode 100644 index 0000000..9cdbbd4 --- /dev/null +++ b/libgit2.spec @@ -0,0 +1,72 @@ +Name: libgit2 +Version: 0.23.4 +Release: 1mamba +Summary: A portable, pure C implementation of the Git core methods provided as a re-entrant linkable library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://libgit2.github.com/ +## GITSOURCE https://github.com/libgit2/libgit2.git v0.23.4 +Source: https://github.com/libgit2/libgit2.git/v%{version}/libgit2-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcurl-devel +BuildRequires: libopenssl-devel +BuildRequires: libssh2-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language with bindings. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libgit2.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/git2.h +%dir %{_includedir}/git2 +%{_includedir}/git2/*.h +%dir %{_includedir}/git2/sys +%{_includedir}/git2/sys/*.h +%{_libdir}/libgit2.so +%{_libdir}/pkgconfig/libgit2.pc +%doc README.md + +%changelog +* Sat Jan 16 2016 Silvan Calarco 0.23.4-1mamba +- package created using the webbuild interface