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