-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibgit2-glib.spec
More file actions
165 lines (134 loc) · 4.45 KB
/
libgit2-glib.spec
File metadata and controls
165 lines (134 loc) · 4.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#
# Conditional build:
%bcond_without apidocs # API documentation
%bcond_without python # Python binding
Summary: GLib wrapper library around the libgit2 git access library
Summary(pl.UTF-8): Biblioteka obudowania GLib do biblioteki dostępu do gita libgit2
Name: libgit2-glib
Version: 1.2.1
Release: 3
License: LGPL v2.1+
Group: Libraries
Source0: https://download.gnome.org/sources/libgit2-glib/1.2/%{name}-%{version}.tar.xz
# Source0-md5: 67df8ce5b68a9f23bcdefea0ff534072
URL: https://wiki.gnome.org/Libgit2-glib
BuildRequires: glib2-devel >= 1:2.44.0
BuildRequires: gobject-introspection-devel >= 0.10.1
%{?with_apidocs:BuildRequires: gi-docgen}
BuildRequires: libgit2-devel >= 0.26.0
BuildRequires: meson >= 0.61.0
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
BuildRequires: python3 >= 1:3.2.3
BuildRequires: python3-pygobject3-devel >= 3.0.0
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 2.042
BuildRequires: tar >= 1:1.22
BuildRequires: vala
BuildRequires: xz
Requires: glib2 >= 1:2.44.0
Requires: libgit2 >= 0.26.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# arch-dependent due to "..module" and "..overrrides" imports
%define py3_gi_overridesdir %{py3_sitedir}/gi/overrides
%description
libgit2-glib is a glib wrapper library around the libgit2 git access
library.
libgit2 only implements the core plumbing functions, not really the
higher level porcelain stuff.
%description -l pl.UTF-8
libgit2-glib to biblioteka obudowania glib dla biblioteki dostępu do
gita libgit2.
libgit2 implementuje tylko niskopoziomowe funkcje, bez całej otoczki
wyższego poziomu.
%package devel
Summary: Header files for libgit2-glib library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgit2-glib
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: glib2-devel >= 1:2.44.0
Requires: gobject-introspection-devel >= 0.10.1
Requires: libgit2-devel >= 0.26.0
Obsoletes: libgit2-glib-static < 0.26.4
%description devel
Header files for libgit2-glib library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki libgit2-glib.
%package apidocs
Summary: libgit2-glib API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki libgit2-glib
Group: Documentation
Requires: gtk-doc-common
BuildArch: noarch
%description apidocs
API documentation for libgit2-glib library.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki libgit2-glib.
%package -n python3-libgit2-glib
Summary: Python 3 binding for libgit2-glib library
Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki libgit2-glib
Group: Development/Languages/Python
Requires: %{name} = %{version}-%{release}
Requires: python3-libs >= 1:3.2.3
Requires: python3-pygobject3 >= 3.0.0
%description -n python3-libgit2-glib
Python 3 binding for libgit2-glib library.
%description -n python3-libgit2-glib -l pl.UTF-8
Wiązanie Pythona 3 do biblioteki libgit2-glib.
%package -n vala-libgit2-glib
Summary: Vala API for libgit2-glib library
Summary(pl.UTF-8): API języka Vala do biblioteki libgit2-glib
Group: Development/Libraries
Requires: libgit2-glib-devel = %{version}-%{release}
Requires: vala
BuildArch: noarch
%description -n vala-libgit2-glib
Vala API for libgit2-glib library.
%description -n vala-libgit2-glib -l pl.UTF-8
API języka Vala do biblioteki libgit2-glib.
%prep
%setup -q
%build
%meson \
-Dssh=true \
-Dpython=true \
%{?with_apidocs:-Dgtk_doc=true}
%meson_build
%install
rm -rf $RPM_BUILD_ROOT
%meson_install
%py3_comp $RPM_BUILD_ROOT
%py3_ocomp $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_libdir}/libgit2-glib-1.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgit2-glib-1.0.so.0
%{_libdir}/girepository-1.0/Ggit-1.0.typelib
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libgit2-glib-1.0.so
%{_includedir}/libgit2-glib-1.0
%{_datadir}/gir-1.0/Ggit-1.0.gir
%{_pkgconfigdir}/libgit2-glib-1.0.pc
%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/libgit2-glib-1.0
%endif
%if %{with python}
%files -n python3-libgit2-glib
%defattr(644,root,root,755)
%{py3_gi_overridesdir}/Ggit.py
%{py3_gi_overridesdir}/__pycache__/Ggit.cpython-3*.py[co]
%endif
%files -n vala-libgit2-glib
%defattr(644,root,root,755)
%{_datadir}/vala/vapi/ggit-1.0.deps
%{_datadir}/vala/vapi/ggit-1.0.vapi
%{_datadir}/vala/vapi/libgit2-glib-1.0.deps
%{_datadir}/vala/vapi/libgit2-glib-1.0.vapi