-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsgraph.spec
More file actions
117 lines (98 loc) · 2.89 KB
/
Copy pathmsgraph.spec
File metadata and controls
117 lines (98 loc) · 2.89 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
#
# Conditional build:
%bcond_without apidocs # API documentation
%bcond_without tests # build tests
#
Summary: Shared library for accessing MS Graph API
Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do MS Graph API
Name: msgraph
Version: 0.3.5
Release: 1
License: LGPL v3+
Group: Libraries
Source0: https://download.gnome.org/sources/msgraph/0.3/%{name}-%{version}.tar.xz
# Source0-md5: fdac9dcf82b5e5458d6a90eab706147b
URL: https://gitlab.gnome.org/GNOME/msgraph
BuildRequires: gcc >= 6:4.7
%{?with_apidocs:BuildRequires: gi-docgen}
BuildRequires: glib2-devel >= 1:2.28
BuildRequires: gnome-online-accounts-devel
BuildRequires: gobject-introspection-devel
BuildRequires: json-glib-devel
BuildRequires: libsoup3-devel >= 3.0
%{?with_tests:BuildRequires: libxml2-devel}
BuildRequires: meson >= 0.63.0
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 2.042
BuildRequires: tar >= 1:1.22
%{?with_tests:BuildRequires: uhttpmock1-devel >= 0.11.0}
BuildRequires: xz
Requires: glib2 >= 1:2.28
Requires: json-glib
Requires: libsoup3 >= 3.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
libmsgraph is a GLib-based library for accessing online service APIs
using MS Graph protocol.
%description -l pl.UTF-8
libmsgraph to oparta na GLib biblioteka służąca do dostępu do API
usług online wykorzystujących protokół MS Graph.
%package devel
Summary: Header files for msgraph library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki msgraph
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: glib2-devel >= 1:2.28
Requires: gnome-online-accounts-devel
Requires: json-glib-devel
Requires: libsoup3-devel >= 3.0
%description devel
Header files for msgraph library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki msgraph.
%package apidocs
Summary: API documentation for msgraph library
Summary(pl.UTF-8): Dokumentacja API biblioteki msgraph
Group: Documentation
BuildArch: noarch
%description apidocs
API documentation for msgraph library.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki msgraph.
%prep
%setup -q
%build
%meson \
%{!?with_apidocs:-Dgtk_doc=false} \
-Dtests=%{__true_false tests}
%meson_build
%install
rm -rf $RPM_BUILD_ROOT
%meson_install
%if %{with apidocs}
install -d $RPM_BUILD_ROOT%{_gidocdir}
%{__mv} $RPM_BUILD_ROOT%{_docdir}/msgraph-1 $RPM_BUILD_ROOT%{_gidocdir}
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc NEWS README.md
%{_libdir}/libmsgraph-1.so.*.*.*
%ghost %{_libdir}/libmsgraph-1.so.1
%{_libdir}/girepository-1.0/Msg-1.typelib
%files devel
%defattr(644,root,root,755)
%{_libdir}/libmsgraph-1.so
%{_includedir}/msg
%{_datadir}/gir-1.0/Msg-1.gir
%{_pkgconfigdir}/msgraph-1.pc
%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gidocdir}/msgraph-1
%endif