18a198dbad287a60f31564c89b006569096194c5
[packages/evolution-data-server.git] / evolution-data-server.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  kerberos5       # Kerberos5 support
5 %bcond_without  ldap            # LDAP support
6 %bcond_without  goa             # Gnome Online Accounts support
7 %bcond_without  vala            # Vala API
8
9 %define         basever         3.34
10 %define         apiver          1.2
11 %define         cal_apiver      2.0
12 Summary:        Evolution data server
13 Summary(pl.UTF-8):      Serwer danych Evolution
14 Name:           evolution-data-server
15 Version:        3.34.1
16 Release:        1
17 License:        LGPL v2+
18 Group:          X11/Libraries
19 Source0:        http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.34/%{name}-%{version}.tar.xz
20 # Source0-md5:  d1701875bbac80d6d62e9acfc6c43bea
21 Patch0:         %{name}-gtkdoc.patch
22 URL:            https://wiki.gnome.org/Apps/Evolution
23 BuildRequires:  cmake >= 3.1
24 BuildRequires:  db-devel
25 BuildRequires:  docbook-dtd412-xml
26 BuildRequires:  gcr-devel >= 3.4.0
27 BuildRequires:  gcr-ui-devel >= 3.4.0
28 BuildRequires:  gettext-tools >= 0.18.1
29 BuildRequires:  glib2-devel >= 1:2.46.0
30 %{?with_goa:BuildRequires:      gnome-online-accounts-devel >= 3.8.0}
31 BuildRequires:  gobject-introspection-devel >= 0.10.0
32 BuildRequires:  gperf
33 BuildRequires:  gtk+3-devel >= 3.10.0
34 BuildRequires:  gtk-webkit4-devel >= 2.12.0
35 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.14}
36 %{?with_kerberos5:BuildRequires:        heimdal-devel}
37 BuildRequires:  intltool >= 0.40.0
38 BuildRequires:  json-glib-devel >= 1.0.4
39 BuildRequires:  libcanberra-gtk3-devel >= 0.25
40 BuildRequires:  libgdata-devel >= 0.15.1
41 BuildRequires:  libgweather-devel >= 3.10
42 BuildRequires:  libical-glib-devel >= 3.0.5
43 BuildRequires:  libicu-devel
44 BuildRequires:  libsecret-devel >= 0.5
45 BuildRequires:  libsoup-devel >= 2.42.0
46 BuildRequires:  libstdc++-devel >= 6:5.0
47 BuildRequires:  libtool >= 2:2.2
48 BuildRequires:  libxml2-devel >= 1:2.6.31
49 BuildRequires:  nspr-devel >= 4
50 BuildRequires:  nss-devel >= 3
51 %{?with_ldap:BuildRequires:     openldap-devel >= 2.4.6}
52 BuildRequires:  pkgconfig
53 BuildRequires:  rpmbuild(macros) >= 1.742
54 BuildRequires:  sqlite3-devel >= 3.7.17
55 BuildRequires:  tar >= 1:1.22
56 %{?with_vala:BuildRequires:     vala >= 2:0.22.0}
57 BuildRequires:  vala-libical-glib >= 3.0.5
58 BuildRequires:  xz
59 BuildRequires:  zlib-devel
60 Requires(post,postun):  glib2 >= 1:2.46.0
61 Requires:       %{name}-libs = %{version}-%{release}
62 %{?with_goa:Requires:   gnome-online-accounts-libs >= 3.8.0}
63 Requires:       gtk+3 >= 3.10.0
64 Requires:       libgdata >= 0.15.1
65 Requires:       libgweather >= 3.10
66 Obsoletes:      evolution-data-server-uoa < 3.32
67 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68
69 %define         schemadir       /usr/share/openldap/schema
70
71 %description
72 The Evolution data server for the calendar and addressbook.
73
74 %description -l pl.UTF-8
75 Serwer danych Evolution dla kalendarza i książki adresowej.
76
77 %package ldap
78 Summary:        LDAP support for Evolution data server
79 Summary(pl.UTF-8):      Obsługa LDAP dla serwera danych Evolution
80 Group:          Libraries
81 Requires:       %{name} = %{version}-%{release}
82
83 %description ldap
84 LDAP support for Evolution data server (address book backend module).
85
86 %description ldap -l pl.UTF-8
87 Obsługa LDAP dla serwera danych Evolution (moduł dla książki
88 adresowej).
89
90 %package -n openldap-schema-evolutionperson
91 Summary:        evolutionperson LDAP schema
92 Summary(pl.UTF-8):      Schemat LDAP evolutionperson
93 Group:          Networking/Daemons
94 Requires(post,postun):  sed >= 4.0
95 Requires:       openldap-servers
96 %if "%{_rpmversion}" >= "5"
97 BuildArch:      noarch
98 %endif
99
100 %description -n openldap-schema-evolutionperson
101 This package contains evolutionperson.schema for OpenLDAP server.
102
103 %description -n openldap-schema-evolutionperson -l pl.UTF-8
104 Ten pakiet zawiera evolutionperson.schema dla serwera OpenLDAP.
105
106 %package libs
107 Summary:        Evolution Data Server library
108 Summary(pl.UTF-8):      Biblioteka Evolution Data Server
109 Group:          X11/Libraries
110 Requires:       gcr-libs >= 3.4.0
111 Requires:       gcr-ui >= 3.4.0
112 Requires:       glib2 >= 1:2.46.0
113 Requires:       gtk-webkit4 >= 2.12.0
114 Requires:       json-glib >= 1.0.4
115 Requires:       libical-glib >= 3.0.5
116 Requires:       libsecret >= 0.5
117 Requires:       libsoup >= 2.42.0
118 Requires:       libxml2 >= 1:2.6.31
119 Requires:       sqlite3 >= 3.7.17
120 Obsoletes:      evolution-data-server-static
121
122 %description libs
123 This package contains Evolution Data Server library.
124
125 %description libs -l pl.UTF-8
126 Ten pakiet zawiera bibliotekę Evolution Data Server.
127
128 %package devel
129 Summary:        Evolution data server development files
130 Summary(pl.UTF-8):      Pliki programistyczne serwera danych evolution
131 Group:          X11/Development/Libraries
132 Requires:       %{name}-libs = %{version}-%{release}
133 Requires:       gcr-devel >= 3.4.0
134 Requires:       gcr-ui-devel >= 3.4.0
135 Requires:       glib2-devel >= 1:2.46.0
136 %{?with_kerberos5:Requires:     heimdal-devel}
137 Requires:       libgdata-devel >= 0.15.1
138 Requires:       libical-glib-devel >= 3.0.5
139 Requires:       libsecret-devel >= 0.5
140 Requires:       libsoup-devel >= 2.42.0
141 Requires:       libxml2-devel >= 1:2.6.31
142 Requires:       nspr-devel >= 4
143 Requires:       nss-devel >= 3
144 Requires:       sqlite3-devel >= 3.7.17
145
146 %description devel
147 This package contains the files necessary to develop applications
148 using Evolution's data server libraries.
149
150 %description devel -l pl.UTF-8
151 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
152 korzystających z bibliotek serwera danych Evolution.
153
154 %package static
155 Summary:        Evolution data server static libraries
156 Summary(pl.UTF-8):      Statyczne biblioteki serwera danych Evolution
157 Group:          X11/Development/Libraries
158 Requires:       %{name}-devel = %{version}-%{release}
159
160 %description static
161 Evolution data server static libraries.
162
163 %description static -l pl.UTF-8
164 Statyczne biblioteki serwera danych Evolution.
165
166 %package apidocs
167 Summary:        Evolution data server API documentation
168 Summary(pl.UTF-8):      Dokumentacja API serwera danych Evolution
169 Group:          Documentation
170 Requires:       gtk-doc-common
171 %if "%{_rpmversion}" >= "5"
172 BuildArch:      noarch
173 %endif
174
175 %description apidocs
176 Evolution data server API documentation.
177
178 %description apidocs -l pl.UTF-8
179 Dokumentacja API serwera danych Evolution.
180
181 %package -n vala-evolution-data-server
182 Summary:        Evolution data server API for Vala language
183 Summary(pl.UTF-8):      API serwera danych Evolution dla języka Vala
184 Group:          Development/Libraries
185 Requires:       %{name}-devel = %{version}-%{release}
186 Requires:       vala >= 2:0.22.0
187 %if "%{_rpmversion}" >= "5"
188 BuildArch:      noarch
189 %endif
190
191 %description -n vala-evolution-data-server
192 Evolution data server API for Vala language.
193
194 %description -n vala-evolution-data-server -l pl.UTF-8
195 API serwera danych Evolution dla języka Vala.
196
197 %prep
198 %setup -q
199 %patch0 -p1
200
201 %build
202 install -d build
203 cd build
204 %cmake .. \
205         -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
206         %{?with_kerberos5:-DWITH_KRB5=%{_prefix} -DWITH_KRB5_LIBS=%{_libdir}} \
207         %{cmake_on_off kerberos5 WITH_KRB5} \
208         %{cmake_on_off ldap WITH_OPENLDAP} \
209         %{cmake_on_off apidocs ENABLE_GTK_DOC} \
210         %{cmake_on_off vala ENABLE_VALA_BINDINGS} \
211         %{cmake_on_off goa ENABLE_GOA} \
212         -DENABLE_SCHEMAS_COMPILE=OFF \
213         -DENABLE_INTROSPECTION=ON
214
215 %{__make}
216
217 %install
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT{%{_libdir}/%{name}-%{basever},%{schemadir}}
220
221 %{__make} -C build install \
222         DESTDIR=$RPM_BUILD_ROOT
223
224 cp -p src/addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
225
226 %find_lang %{name}
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %post
232 %glib_compile_schemas
233
234 %postun
235 %glib_compile_schemas
236
237 %post   libs -p /sbin/ldconfig
238 %postun libs -p /sbin/ldconfig
239
240 %post -n openldap-schema-evolutionperson
241 %openldap_schema_register %{schemadir}/evolutionperson.schema
242 %service -q ldap restart
243
244 %postun -n openldap-schema-evolutionperson
245 if [ "$1" = "0" ]; then
246         %openldap_schema_unregister %{schemadir}/evolutionperson.schema
247         %service -q ldap restart
248 fi
249
250 %files -f %{name}.lang
251 %defattr(644,root,root,755)
252 %doc AUTHORS ChangeLog NEWS* README
253 %attr(755,root,root) %{_libexecdir}/camel-gpg-photo-saver
254 %attr(755,root,root) %{_libexecdir}/camel-index-control-%{apiver}
255 %attr(755,root,root) %{_libexecdir}/camel-lock-helper-%{apiver}
256 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory-subprocess
257 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory
258 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory-subprocess
259 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory
260 %attr(755,root,root) %{_libexecdir}/evolution-scan-gconf-tree-xml
261 %attr(755,root,root) %{_libexecdir}/evolution-source-registry
262 %attr(755,root,root) %{_libexecdir}/evolution-user-prompter
263 %if "%{_libexecdir}" != "%{_libdir}"
264 %dir %{_libexecdir}/%{name}
265 %endif
266 %attr(755,root,root) %{_libexecdir}/%{name}/addressbook-export
267 %attr(755,root,root) %{_libexecdir}/%{name}/csv2vcard
268 %attr(755,root,root) %{_libexecdir}/%{name}/evolution-alarm-notify
269 %attr(755,root,root) %{_libexecdir}/%{name}/list-sources
270 %dir %{_libdir}/%{name}
271 %attr(755,root,root) %{_libdir}/%{name}/libedbus-private.so
272 %dir %{_libdir}/%{name}/addressbook-backends
273 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendfile.so
274 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendgoogle.so
275 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendcarddav.so
276 %dir %{_libdir}/%{name}/calendar-backends
277 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcaldav.so
278 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcontacts.so
279 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendfile.so
280 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendgtasks.so
281 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendhttp.so
282 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendweather.so
283 %dir %{_libdir}/%{name}/camel-providers
284 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelimapx.so
285 %{_libdir}/%{name}/camel-providers/libcamelimapx.urls
286 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamellocal.so
287 %{_libdir}/%{name}/camel-providers/libcamellocal.urls
288 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelnntp.so
289 %{_libdir}/%{name}/camel-providers/libcamelnntp.urls
290 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelpop3.so
291 %{_libdir}/%{name}/camel-providers/libcamelpop3.urls
292 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsendmail.so
293 %{_libdir}/%{name}/camel-providers/libcamelsendmail.urls
294 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsmtp.so
295 %{_libdir}/%{name}/camel-providers/libcamelsmtp.urls
296 %dir %{_libdir}/%{name}/credential-modules
297 %if %{with goa}
298 %attr(755,root,root) %{_libdir}/%{name}/credential-modules/module-credentials-goa.so
299 %endif
300 %dir %{_libdir}/evolution-data-server/registry-modules
301 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-cache-reaper.so
302 %if %{with goa}
303 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-gnome-online-accounts.so
304 %endif
305 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-google-backend.so
306 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-oauth2-services.so
307 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-outlook-backend.so
308 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-secret-monitor.so
309 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-trust-prompt.so
310 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-webdav-backend.so
311 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-yahoo-backend.so
312
313 %{systemduserunitdir}/evolution-addressbook-factory.service
314 %{systemduserunitdir}/evolution-calendar-factory.service
315 %{systemduserunitdir}/evolution-source-registry.service
316 %{systemduserunitdir}/evolution-user-prompter.service
317
318 %dir %{_libdir}/%{name}-%{basever}
319 %dir %{_datadir}/%{name}
320 %{_pixmapsdir}/%{name}
321
322 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service
323 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service
324 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service
325 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service
326
327 %{_datadir}/GConf/gsettings/evolution-data-server.convert
328 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
329 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
330 %{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
331 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
332 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
333 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.gschema.xml
334
335 %{_sysconfdir}/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop
336 %{_desktopdir}/org.gnome.Evolution-alarm-notify.desktop
337
338 %if %{with ldap}
339 %files ldap
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendldap.so
342 %{_datadir}/%{name}/evolutionperson.schema
343 %endif
344
345 %files -n openldap-schema-evolutionperson
346 %defattr(644,root,root,755)
347 %{schemadir}/evolutionperson.schema
348
349 %files libs
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
352 %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.62
353 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
354 %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.10
355 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
356 %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.20
357 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.*
358 %attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.3
359 %attr(755,root,root) %{_libdir}/libecal-%{cal_apiver}.so.*.*.*
360 %attr(755,root,root) %ghost %{_libdir}/libecal-%{cal_apiver}.so.1
361 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
362 %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.26
363 %attr(755,root,root) %{_libdir}/libedata-cal-%{cal_apiver}.so.*.*.*
364 %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{cal_apiver}.so.1
365 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
366 %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.24
367 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.*
368 %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.2
369 %{_libdir}/girepository-1.0/Camel-1.2.typelib
370 %{_libdir}/girepository-1.0/EBackend-%{apiver}.typelib
371 %{_libdir}/girepository-1.0/EBook-%{apiver}.typelib
372 %{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib
373 %{_libdir}/girepository-1.0/ECal-%{cal_apiver}.typelib
374 %{_libdir}/girepository-1.0/EDataBook-%{apiver}.typelib
375 %{_libdir}/girepository-1.0/EDataCal-%{cal_apiver}.typelib
376 %{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib
377 %{_libdir}/girepository-1.0/EDataServerUI-1.2.typelib
378
379 %files devel
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
382 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
383 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
384 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so
385 %attr(755,root,root) %{_libdir}/libecal-%{cal_apiver}.so
386 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
387 %attr(755,root,root) %{_libdir}/libedata-cal-%{cal_apiver}.so
388 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
389 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so
390 %{_includedir}/evolution-data-server
391 %{_pkgconfigdir}/camel-%{apiver}.pc
392 %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
393 %{_pkgconfigdir}/libebackend-%{apiver}.pc
394 %{_pkgconfigdir}/libebook-%{apiver}.pc
395 %{_pkgconfigdir}/libebook-contacts-%{apiver}.pc
396 %{_pkgconfigdir}/libecal-%{cal_apiver}.pc
397 %{_pkgconfigdir}/libedata-book-%{apiver}.pc
398 %{_pkgconfigdir}/libedata-cal-%{cal_apiver}.pc
399 %{_pkgconfigdir}/libedataserver-%{apiver}.pc
400 %{_pkgconfigdir}/libedataserverui-%{apiver}.pc
401 %{_datadir}/gir-1.0/Camel-1.2.gir
402 %{_datadir}/gir-1.0/EBackend-%{apiver}.gir
403 %{_datadir}/gir-1.0/EBook-%{apiver}.gir
404 %{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir
405 %{_datadir}/gir-1.0/ECal-%{cal_apiver}.gir
406 %{_datadir}/gir-1.0/EDataBook-%{apiver}.gir
407 %{_datadir}/gir-1.0/EDataCal-%{cal_apiver}.gir
408 %{_datadir}/gir-1.0/EDataServer-%{apiver}.gir
409 %{_datadir}/gir-1.0/EDataServerUI-1.2.gir
410
411 %if %{with apidocs}
412 %files apidocs
413 %defattr(644,root,root,755)
414 %{_gtkdocdir}/camel
415 %{_gtkdocdir}/evolution-data-server
416 %endif
417
418 %if %{with vala}
419 %files -n vala-evolution-data-server
420 %defattr(644,root,root,755)
421 %{_datadir}/vala/vapi/camel-1.2.deps
422 %{_datadir}/vala/vapi/camel-1.2.vapi
423 %{_datadir}/vala/vapi/libebackend-%{apiver}.deps
424 %{_datadir}/vala/vapi/libebackend-%{apiver}.vapi
425 %{_datadir}/vala/vapi/libebook-%{apiver}.deps
426 %{_datadir}/vala/vapi/libebook-%{apiver}.vapi
427 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.deps
428 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.vapi
429 %{_datadir}/vala/vapi/libecal-%{cal_apiver}.deps
430 %{_datadir}/vala/vapi/libecal-%{cal_apiver}.vapi
431 %{_datadir}/vala/vapi/libedata-book-%{apiver}.deps
432 %{_datadir}/vala/vapi/libedata-book-%{apiver}.vapi
433 %{_datadir}/vala/vapi/libedata-cal-%{cal_apiver}.deps
434 %{_datadir}/vala/vapi/libedata-cal-%{cal_apiver}.vapi
435 %{_datadir}/vala/vapi/libedataserver-%{apiver}.deps
436 %{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi
437 %{_datadir}/vala/vapi/libedataserverui-%{apiver}.deps
438 %{_datadir}/vala/vapi/libedataserverui-%{apiver}.vapi
439 %endif
This page took 0.185634 seconds and 2 git commands to generate.