Blame SPECS/librhsm.spec

6b1f00
%global libname rhsm
6b1f00
6b1f00
Name:           lib%{libname}
6b1f00
Version:        0.0.1
6a33d9
Release:        2%{?dist}
6b1f00
Summary:        Red Hat Subscription Manager library
6b1f00
6b1f00
License:        LGPLv2+
6b1f00
URL:            https://github.com/rpm-software-management/librhsm
6a33d9
Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
6a33d9
6a33d9
# https://bugzilla.redhat.com/show_bug.cgi?id=1435653
6a33d9
Patch0001:      0001-utils-add-support-for-multiple-entitlement-certifica.patch
6a33d9
6a33d9
# Ugly workaround, drop in 7.4
6a33d9
Patch1001:      0001-fix-building-with-json-glib-1.2.0.patch
6b1f00
6b1f00
BuildRequires:  gcc
6b1f00
BuildRequires:  cmake >= 2.8.5
6b1f00
BuildRequires:  make
6b1f00
BuildRequires:  pkgconfig(glib-2.0) >= 2.44
6b1f00
BuildRequires:  pkgconfig(gobject-2.0) >= 2.44
6b1f00
BuildRequires:  pkgconfig(gio-2.0) >= 2.44
6a33d9
# 1.2 is required, but we have Patch1001
6b1f00
BuildRequires:  pkgconfig(json-glib-1.0)
6b1f00
BuildRequires:  pkgconfig(openssl)
6b1f00
6b1f00
%description
6b1f00
%{summary}.
6b1f00
6b1f00
%package devel
6b1f00
Summary:        Development libraries and header files for %{name}
6b1f00
Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
6b1f00
6b1f00
%description devel
6b1f00
%{summary}.
6b1f00
6b1f00
%prep
6a33d9
%autosetup -p1
6b1f00
6b1f00
%build
6b1f00
mkdir %{_target_platform}
6b1f00
pushd %{_target_platform}
6b1f00
  %cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
6b1f00
popd
6b1f00
%make_build -C %{_target_platform}
6b1f00
6b1f00
%install
6b1f00
%make_install -C %{_target_platform}
6b1f00
6b1f00
%files
6b1f00
%license COPYING
6b1f00
%doc README.md
6b1f00
%{_libdir}/%{name}.so.*
6b1f00
6b1f00
%files devel
6b1f00
%{_libdir}/%{name}.so
6b1f00
%{_includedir}/%{libname}/
6b1f00
%{_libdir}/pkgconfig/%{name}.pc
6b1f00
6b1f00
%changelog
6a33d9
* Thu Mar 30 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.0.1-2
6a33d9
- Backport patch to support multiple entitlement certificates
6a33d9
6a33d9
* Mon Jan 23 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.0.1-1
6a33d9
- Initial package