From 9d4e7ceb9491fe7470b7f81b86a7ec2e1d0a5275 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 3 Feb 2019 00:08:24 +0100 Subject: [PATCH 1/5] Initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + libgit2.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 79 insertions(+) create mode 100644 libgit2.spec diff --git a/.gitignore b/.gitignore index e69de29..cb29aa5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libgit2-0.28.0-rc1.tar.gz diff --git a/libgit2.spec b/libgit2.spec new file mode 100644 index 0000000..6e99a5b --- /dev/null +++ b/libgit2.spec @@ -0,0 +1,77 @@ +Name: libgit2 +%global upver 0.28.0-rc1 +Version: 0.28.0~rc1 +Release: 1%{?dist} +Summary: C implementation of the Git core methods as a library with a solid API +License: GPLv2 with exceptions +URL: https://libgit2.org/ +Source0: https://github.com/libgit2/libgit2/archive/v%{upver}/%{name}-%{upver}.tar.gz + +BuildRequires: gcc +BuildRequires: cmake >= 2.8.11 +BuildRequires: ninja-build +BuildRequires: http-parser-devel +BuildRequires: libcurl-devel +BuildRequires: libssh2-devel +BuildRequires: openssl-devel +BuildRequires: python3 +BuildRequires: zlib-devel +Provides: bundled(libxdiff) + +%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 +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description devel +This package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -p1 -n %{name}-%{upver} + +# Remove VCS files from examples +find examples -name ".gitignore" -delete -print + +# Don't run "online" tests +sed -i '/ADD_TEST(online/s/^/#/' tests/CMakeLists.txt + +# Remove bundled libraries +rm -frv deps + +%build +%cmake . -B%{_target_platform} \ + -GNinja \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DSHA1_BACKEND=OpenSSL \ + -DUSE_HTTPS=OpenSSL \ + %{nil} +%ninja_build -C %{_target_platform} + +%install +%ninja_install -C %{_target_platform} + +%check +%ninja_test -C %{_target_platform} + +%ldconfig_scriptlets + +%files +%license COPYING +%{_libdir}/%{name}.so.* + +%files devel +%doc AUTHORS docs examples README.md +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc +%{_includedir}/git2.h +%{_includedir}/git2/ + +%changelog +* Sat Feb 02 2019 Igor Gnatenko - 0.28.0~rc1-1 +- Initial package diff --git a/sources b/sources index e69de29..6a0fba9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (libgit2-0.28.0-rc1.tar.gz) = 0190bfb025b459ab484d342ffbaed7a6126acfa7b30bc21a61f77c229cb469175839ee9a2e2a0946ed723a19ec7cb6614bc8c99c1e24d29aaabcdb646948b9f1 From a46d601ceb2263132eb1d460cda596c38e220a21 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 11 Feb 2019 18:13:08 +0100 Subject: [PATCH 2/5] Update to 0.28.0 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + libgit2.spec | 10 ++++++---- sources | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index cb29aa5..59ac28b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /libgit2-0.28.0-rc1.tar.gz +/libgit2-0.28.0.tar.gz diff --git a/libgit2.spec b/libgit2.spec index 6e99a5b..590b2cb 100644 --- a/libgit2.spec +++ b/libgit2.spec @@ -1,11 +1,10 @@ Name: libgit2 -%global upver 0.28.0-rc1 -Version: 0.28.0~rc1 +Version: 0.28.0 Release: 1%{?dist} Summary: C implementation of the Git core methods as a library with a solid API License: GPLv2 with exceptions URL: https://libgit2.org/ -Source0: https://github.com/libgit2/libgit2/archive/v%{upver}/%{name}-%{upver}.tar.gz +Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: cmake >= 2.8.11 @@ -33,7 +32,7 @@ This package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup -p1 -n %{name}-%{upver} +%autosetup -p1 -n %{name}-%{version} # Remove VCS files from examples find examples -name ".gitignore" -delete -print @@ -73,5 +72,8 @@ rm -frv deps %{_includedir}/git2/ %changelog +* Mon Feb 11 2019 Igor Gnatenko - 0.28.0-1 +- Update to 0.28.0 + * Sat Feb 02 2019 Igor Gnatenko - 0.28.0~rc1-1 - Initial package diff --git a/sources b/sources index 6a0fba9..d6184ef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libgit2-0.28.0-rc1.tar.gz) = 0190bfb025b459ab484d342ffbaed7a6126acfa7b30bc21a61f77c229cb469175839ee9a2e2a0946ed723a19ec7cb6614bc8c99c1e24d29aaabcdb646948b9f1 +SHA512 (libgit2-0.28.0.tar.gz) = b3e23ac5062febaabb6113440bd4ab75945ae24d277b1713d16442feda146cce9df9220438e142ce7178938196395ced66ec3c41b8fbb2fb81882542f97d8ddf From 38f15d076632dba3dfc8f881804cc38262ea7237 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 4 Mar 2019 22:05:36 +0100 Subject: [PATCH 3/5] Update to 0.28.1 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + libgit2.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 59ac28b..3c23917 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /libgit2-0.28.0-rc1.tar.gz /libgit2-0.28.0.tar.gz +/libgit2-0.28.1.tar.gz diff --git a/libgit2.spec b/libgit2.spec index 590b2cb..dd2381f 100644 --- a/libgit2.spec +++ b/libgit2.spec @@ -1,5 +1,5 @@ Name: libgit2 -Version: 0.28.0 +Version: 0.28.1 Release: 1%{?dist} Summary: C implementation of the Git core methods as a library with a solid API License: GPLv2 with exceptions @@ -72,6 +72,9 @@ rm -frv deps %{_includedir}/git2/ %changelog +* Mon Mar 04 2019 Igor Gnatenko - 0.28.1-1 +- Update to 0.28.1 + * Mon Feb 11 2019 Igor Gnatenko - 0.28.0-1 - Update to 0.28.0 diff --git a/sources b/sources index d6184ef..59d7c72 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libgit2-0.28.0.tar.gz) = b3e23ac5062febaabb6113440bd4ab75945ae24d277b1713d16442feda146cce9df9220438e142ce7178938196395ced66ec3c41b8fbb2fb81882542f97d8ddf +SHA512 (libgit2-0.28.1.tar.gz) = 5a1bc5c6af6ad25cb8b2c446e75a774d2a615d4999ec3223d681c7b120d83e7cecd94f1ca549bac0802f5324e27e73cc5a6483ad410636c2f06f098b30b1b647 From b3531a7ca0c53871b2d469b73f2fdc099aa34a38 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 6 Jun 2019 14:22:54 +0200 Subject: [PATCH 4/5] Update to 0.28.2 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + libgit2.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3c23917..44aa0bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /libgit2-0.28.0-rc1.tar.gz /libgit2-0.28.0.tar.gz /libgit2-0.28.1.tar.gz +/libgit2-0.28.2.tar.gz diff --git a/libgit2.spec b/libgit2.spec index dd2381f..e928bb8 100644 --- a/libgit2.spec +++ b/libgit2.spec @@ -1,5 +1,5 @@ Name: libgit2 -Version: 0.28.1 +Version: 0.28.2 Release: 1%{?dist} Summary: C implementation of the Git core methods as a library with a solid API License: GPLv2 with exceptions @@ -72,6 +72,9 @@ rm -frv deps %{_includedir}/git2/ %changelog +* Thu Jun 06 14:22:16 CEST 2019 Igor Gnatenko - 0.28.2-1 +- Update to 0.28.2 + * Mon Mar 04 2019 Igor Gnatenko - 0.28.1-1 - Update to 0.28.1 diff --git a/sources b/sources index 59d7c72..966c814 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libgit2-0.28.1.tar.gz) = 5a1bc5c6af6ad25cb8b2c446e75a774d2a615d4999ec3223d681c7b120d83e7cecd94f1ca549bac0802f5324e27e73cc5a6483ad410636c2f06f098b30b1b647 +SHA512 (libgit2-0.28.2.tar.gz) = 0879c162e2e1dc00eadfbda22cd1f9d3a95b4ec2b653c108983f37c2f695140882de4d50d7cbc04ced247125a4e9fe6df16130e1267891aecdb2411d920db5c6 From a90c1f5d878e159b4382f7936a99e38d0770cd6e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 6 Jun 2019 14:26:54 +0200 Subject: [PATCH 5/5] Drop useless autosetup arguments Signed-off-by: Igor Gnatenko --- libgit2.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgit2.spec b/libgit2.spec index e928bb8..73e545c 100644 --- a/libgit2.spec +++ b/libgit2.spec @@ -32,7 +32,7 @@ This package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup -p1 -n %{name}-%{version} +%autosetup -p1 # Remove VCS files from examples find examples -name ".gitignore" -delete -print