-
Notifications
You must be signed in to change notification settings - Fork 3
/
libgit2-glib.spec
246 lines (181 loc) · 7.65 KB
/
libgit2-glib.spec
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
%if 0%{?rhel} == 7
%global with_python3 0
%else
%global with_python3 1
%endif
%global glib2_version 2.44.0
%global libgit2_version 0.26.0
%global commit0 e8c014fad3e3e8fa24fe1bb708485b0362048280
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Name: libgit2-glib
Version: 0.26.0
Release: 2%{?dist}.weldr.1
Summary: Git library for GLib
License: LGPLv2+
URL: https://wiki.gnome.org/Projects/Libgit2-glib
Source0: https://github.com/GNOME/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
BuildRequires: gcc
BuildRequires: make
BuildRequires: pkgconfig(gobject-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(libgit2) >= %{libgit2_version}
BuildRequires: libssh2-devel
%if %{with_python3}
BuildRequires: pkgconfig(pygobject-3.0)
BuildRequires: python3-devel
%endif
BuildRequires: vala
# For autogen.sh
BuildRequires: autoconf-archive
BuildRequires: gnome-common
BuildRequires: gtk-doc
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: libgit2%{?_isa} >= %{libgit2_version}
%if %{with_python3}
# Depend on python3-gobject for the python3 gi overrides directory.
# If we ever get a libgit2-glib consumer that does not depend on python3,
# it would probably make sense to split it to a separate subpackage.
Requires: python3-gobject%{?_isa}
%endif
%description
libgit2-glib is a glib wrapper library around the libgit2 git access library.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{name}-%{commit0}
./autogen.sh
%build
%configure \
--disable-static \
--disable-silent-rules \
--enable-gtk-doc \
%if %{with_python3}
--enable-python
%else
--disable-python
%endif
%make_build
%install
%make_install
# Remove unwanted la files
rm -vf %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS NEWS
%{_libdir}/libgit2-glib-1.0.so.*
%{_libdir}/girepository-1.0/Ggit-1.0.typelib
%if %{with_python3}
%{python3_sitearch}/gi/overrides/*
%endif
%files devel
%{_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
%{_datadir}/vala/
%doc %{_datadir}/gtk-doc/
%changelog
* Thu Sep 07 2017 Brian C. Lane <[email protected]> - 0.26.0-2.weldr.1
- Build with upstream version from github containing the correct gobject annotations
* Thu Aug 03 2017 Fedora Release Engineering <[email protected]> - 0.26.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Mon Jul 31 2017 Kalev Lember <[email protected]> - 0.26.0-1
- Update to 0.26.0
* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 0.25.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Jul 08 2017 Igor Gnatenko <[email protected]> - 0.25.0-2
- Rebuild for libgit2 0.26.x
* Thu Feb 16 2017 Kalev Lember <[email protected]> - 0.25.0-1
- Update to 0.25.0
* Tue Feb 07 2017 Igor Gnatenko <[email protected]> - 0.25.0-0.1
- Finally backport all patches to build this thing
* Tue Feb 07 2017 Igor Gnatenko <[email protected]> - 0.24.4-5
- Backport patches to support libgit-0.25.x
* Tue Jan 10 2017 Igor Gnatenko <[email protected]> - 0.24.4-4
- Rebuild for libgit2-0.25.x
* Mon Dec 19 2016 Miro Hrončok <[email protected]> - 0.24.4-3
- Rebuild for Python 3.6
* Thu Sep 22 2016 Kalev Lember <[email protected]> - 0.24.4-2
- BR vala instead of obsolete vala-tools subpackage
* Wed Sep 07 2016 Kalev Lember <[email protected]> - 0.24.4-1
- Update to 0.24.4
* Thu Aug 25 2016 Kalev Lember <[email protected]> - 0.24.3-1
- Update to 0.24.3
* Wed Aug 17 2016 Kalev Lember <[email protected]> - 0.24.2-1
- Update to 0.24.2
* Tue Jul 19 2016 Fedora Release Engineering <[email protected]> - 0.24.0-3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Sun Mar 20 2016 Igor Gnatenko <[email protected]> - 0.24.0-2
- Rebuild for libgit2 0.24.0
* Tue Mar 15 2016 Richard Hughes <[email protected]> - 0.24.0-1
- Update to 0.24.0
* Tue Feb 16 2016 Richard Hughes <[email protected]> - 0.23.10-1
- Update to 0.23.10
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 0.23.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Dec 11 2015 Kalev Lember <[email protected]> - 0.23.8-1
- Update to 0.23.8
* Tue Nov 10 2015 Fedora Release Engineering <[email protected]> - 0.23.6-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Mon Sep 21 2015 Kalev Lember <[email protected]> - 0.23.6-1
- Update to 0.23.6
* Tue Aug 11 2015 Zbigniew Jędrzejewski-Szmek <[email protected]> - 0.23.4-1
- Update to latest upstream version
* Thu Aug 6 2015 Zbigniew Jędrzejewski-Szmek <[email protected]> - 0.23.2-1
- Update to latest upstream version
* Tue Aug 4 2015 Zbigniew Jędrzejewski-Szmek <[email protected]> - 0.23.0-2
- Pull in post-release fixes from upstream (so micro version bump)
* Thu Jul 30 2015 Igor Gnatenko <[email protected]> - 0.23.0-1
- Update to 0.23.0
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 0.22.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Apr 29 2015 Kalev Lember <[email protected]> - 0.22.8-1
- Update to 0.22.8
* Tue Apr 14 2015 Kalev Lember <[email protected]> - 0.22.6-2
- Fix ssh detection
* Tue Apr 14 2015 Kalev Lember <[email protected]> - 0.22.6-1
- Update to 0.22.6
* Sat Apr 11 2015 Kalev Lember <[email protected]> - 0.22.4-1
- Update to 0.22.4
- Use license macro for the COPYING file
* Mon Mar 23 2015 Kalev Lember <[email protected]> - 0.22.2-1
- Update to 0.22.2
* Mon Jan 19 2015 Richard Hughes <[email protected]> - 0.22.0-1
- Update to 0.22.0
* Tue Nov 04 2014 Kalev Lember <[email protected]> - 0.0.24-1
- Update to 0.0.24
* Tue Sep 16 2014 Kalev Lember <[email protected]> - 0.0.22-1
- Update to 0.0.22
* Sun Aug 17 2014 Fedora Release Engineering <[email protected]> - 0.0.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jul 25 2014 Kalev Lember <[email protected]> - 0.0.20-1
- Update to 0.0.20
* Tue Jul 22 2014 Kalev Lember <[email protected]> - 0.0.18-2
- Rebuilt for gobject-introspection 1.41.4
* Mon Jun 30 2014 Ignacio Casal Quinteiro <[email protected]> - 0.0.18-1
- Update to 0.0.18
* Sun Jun 22 2014 Ignacio Casal Quinteiro <[email protected]> - 0.0.16-1
- Update to 0.0.16
* Sun Jun 22 2014 Ignacio Casal Quinteiro <[email protected]> - 0.0.14-1
- Update to 0.0.14
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 0.0.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue May 27 2014 Kalev Lember <[email protected]> - 0.0.12-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
* Tue Mar 25 2014 Ignacio Casal Quinteiro <[email protected]> - 0.0.12-1
- Update to 0.0.12
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 0.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Jul 03 2013 Ignacio Casal Quinteiro <[email protected]> - 0.0.6-1
- Update to 0.0.6
* Sun Jun 16 2013 Kalev Lember <[email protected]> - 0.0.2-2
- Review fixes: depend on python3-gobject (#974834)
* Sun Jun 16 2013 Kalev Lember <[email protected]> - 0.0.2-1
- Initial Fedora build