msgraph/msgraph.spec

80 lines
2.1 KiB
RPMSpec

Name: msgraph
Version: 0.2.3
Release: 1mamba
Summary: Library to access MS Graph API for Office 365
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://gitlab.gnome.org/GNOME/msgraph
Source: https://gitlab.gnome.org/GNOME/msgraph.git/%{version}/msgraph-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gnome-online-accounts-devel
BuildRequires: libglib-devel
BuildRequires: libjson-glib-devel
BuildRequires: libsoup-devel
## AUTOBUILDREQ-END
BuildRequires: meson
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Library to access MS Graph API for Office 365.
%package -n lib%{name}
Group: System/Libraries
Summary: Library to access MS Graph API for Office 365
%description -n lib%{name}
Library to access MS Graph API for Office 365.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%meson
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libmsgraph-0.so.*
%{_libdir}/girepository-1.0/Msg-0.typelib
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/msg
%{_includedir}/msg/*
%{_libdir}/libmsgraph-0.so
%{_datadir}/gir-1.0/Msg-0.gir
%{_libdir}/pkgconfig/msgraph-0.1.pc
%dir %{_docdir}/msgraph-0
%{_docdir}/msgraph-0/*
%doc NEWS README.md
%changelog
* Sun Jun 23 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.3-1mamba
- package created using the webbuild interface