forked from pld-linux/libgit2-glib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibgit2-glib.spec
More file actions
153 lines (125 loc) · 4.05 KB
/
libgit2-glib.spec
File metadata and controls
153 lines (125 loc) · 4.05 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
#
# Conditional build:
%bcond_without apidocs # API documentation
%bcond_without python # Python binding
%bcond_without static_libs # static library
#
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: 0.0.8
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgit2-glib/0.0/%{name}-%{version}.tar.xz
# Source0-md5: 203400fb752fa3da5b6315343abaa102
URL: https://wiki.gnome.org/Libgit2-glib
BuildRequires: glib2-devel >= 1:2.28.0
BuildRequires: gobject-introspection-devel >= 0.10.1
%{?with_apidocs:BuildRequires: gtk-doc >= 1.11}
BuildRequires: libgit2-devel >= 0.19.0
BuildRequires: pkgconfig
BuildRequires: python3 >= 3.2.3
BuildRequires: python3-pygobject3-devel >= 3.0.0
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Requires: glib2 >= 1:2.28.0
Requires: libgit2 >= 0.19.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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.28.0
Requires: gobject-introspection-devel >= 0.10.1
Requires: libgit2-devel >= 0.19.0
%description devel
Header files for libgit2-glib library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki libgit2-glib.
%package static
Summary: Static libgit2-glib library
Summary(pl.UTF-8): Statyczna biblioteka libgit2-glib
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static libgit2-glib library.
%description static -l pl.UTF-8
Statyczna biblioteka libgit2-glib.
%package apidocs
Summary: libgit2-glib API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki libgit2-glib
Group: Documentation
Requires: gtk-doc-common
%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 >= 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.
%prep
%setup -q
%build
%configure \
--disable-silent-rules \
%{?with_static_libs:--enable-static} \
--with-html-dir=%{_gtkdocdir}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgit2-glib-1.0.la
%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 static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libgit2-glib-1.0.a
%endif
%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_sitedir}/gi/overrides/Ggit.py
%{py3_sitedir}/gi/overrides/__pycache__/Ggit.cpython-3*.py[co]
%endif