b57034
%global libname rhsm
b57034
b57034
Name:           lib%{libname}
b57034
Version:        0.0.3
6d40dc
Release:        2%{?dist}
b57034
Summary:        Red Hat Subscription Manager library
b57034
b57034
License:        LGPLv2+
b57034
URL:            https://github.com/rpm-software-management/librhsm
b57034
Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
b57034
6d40dc
Patch1:         BZ-1645318-gen-repofile-for-any-arch-if-ALL.patch
6d40dc
b57034
BuildRequires:  meson >= 0.37.0
b57034
BuildRequires:  gcc
b57034
BuildRequires:  pkgconfig(glib-2.0) >= 2.44
b57034
BuildRequires:  pkgconfig(gobject-2.0) >= 2.44
b57034
BuildRequires:  pkgconfig(gio-2.0) >= 2.44
b57034
BuildRequires:  pkgconfig(json-glib-1.0) >= 1.2
b57034
BuildRequires:  pkgconfig(openssl)
b57034
b57034
%description
b57034
%{summary}.
b57034
b57034
%package devel
b57034
Summary:        Development libraries and header files for %{name}
b57034
Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
b57034
b57034
%description devel
b57034
%{summary}.
b57034
b57034
%prep
b57034
%autosetup -p1
b57034
b57034
%build
b57034
%meson
b57034
%meson_build
b57034
b57034
%install
b57034
%meson_install
b57034
b57034
%files
b57034
%license COPYING
b57034
%doc README.md
b57034
%{_libdir}/%{name}.so.*
b57034
b57034
%files devel
b57034
%{_libdir}/%{name}.so
b57034
%{_includedir}/%{libname}/
b57034
%{_libdir}/pkgconfig/%{name}.pc
b57034
b57034
%changelog
6d40dc
* Wed Mar 27 2019 Michal Domonkos <mdomonko@redhat.com> - 0.0.3-2
6d40dc
- Generate repofile for any architecture if "ALL" is specified
6d40dc
- Resolves: bug#1645318
6d40dc
b57034
* Mon Jul 09 2018 Igor Gnatenko <ignatenko@redhat.com> - 0.0.3-1
b57034
- Update to 0.0.3
b57034
b57034
* Thu Feb 22 2018 Igor Gnatenko <ignatenko@redhat.com> - 0.0.2-1
b57034
- Initial release