File libgit2-glib.spec of Package libgit2-glib
#
# spec file for package libgit2-glib
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libgit2-glib
Version: 0.24.0
Release: 0
Summary: Glib wrapper library around libgit2
License: LGPL-2.1+
Group: System/Libraries
Url: https://live.gnome.org/Libgit2-glib
Source: http://download.gnome.org/sources/libgit2-glib/0.24/%{name}-%{version}.tar.xz
# Needed to create the vala bindings
BuildRequires: vala
BuildRequires: pkgconfig(gio-2.0) >= 2.44.0
BuildRequires: pkgconfig(glib-2.0) >= 2.44.0
BuildRequires: pkgconfig(gobject-2.0) >= 2.44.0
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.1
BuildRequires: pkgconfig(libgit2) >= 0.24.0
BuildRequires: pkgconfig(libssh2)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libgit2-glib is a glib wrapper library around the libgit2 git access library.
%package -n libgit2-glib-1_0-0
Summary: Glib wrapper library around libgit2
Group: System/Libraries
%description -n libgit2-glib-1_0-0
libgit2-glib is a glib wrapper library around the libgit2 git access library.
%package -n typelib-1_0-Ggit-1_0
Summary: Glib wrapper library around libgit2 -- Object introspection
Group: System/Libraries
%description -n typelib-1_0-Ggit-1_0
libgit2-glib is a glib wrapper library around the libgit2 git access library.
%package devel
Summary: Glib wrapper library around libgit2 -- Development files
Group: Development/Languages/C and C++
Requires: libgit2-glib-1_0-0 = %{version}
Requires: typelib-1_0-Ggit-1_0 = %{version}
%description devel
libgit2-glib is a glib wrapper library around the libgit2 git access library.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libgit2-glib-1_0-0 -p /sbin/ldconfig
%postun -n libgit2-glib-1_0-0 -p /sbin/ldconfig
%files -n libgit2-glib-1_0-0
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libdir}/libgit2-glib-1.0.so.*
%files -n typelib-1_0-Ggit-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Ggit-1.0.typelib
%files devel
%defattr(-,root,root)
%{_includedir}/libgit2-glib-1.0/
%{_libdir}/libgit2-glib-1.0.so
%{_libdir}/pkgconfig/libgit2-glib-1.0.pc
%{_datadir}/gir-1.0/Ggit-1.0.gir
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/ggit-1.0.*
%doc %{_datadir}/gtk-doc/html/libgit2-glib-1.0/
%changelog