8c8eadf
8c8eadf
# Running rpmbuild --with test requires network access
8c8eadf
%bcond_with test
8c8eadf
8c8eadf
Summary: Keeping SWID tags in sync with rpms installed via libdnf-based tools
8c8eadf
Name: libdnf-plugin-swidtags
33c2b05
Version: 0.8.8
dd5b00c
Release: 2%{?dist}
8c8eadf
URL: https://github.com/swidtags/%{name}
8c8eadf
Source0: https://github.com/swidtags/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
8c8eadf
License: LGPLv2
8c8eadf
8c8eadf
BuildRequires: pkgconf
8c8eadf
BuildRequires: make
8c8eadf
BuildRequires: gcc
8c8eadf
BuildRequires: libdnf-devel
8c8eadf
# The following BuildRequires are only needed for check
8c8eadf
%if %{with test}
8c8eadf
BuildRequires: dnf
8c8eadf
BuildRequires: tar
8c8eadf
%endif
8c8eadf
ce857ee
Requires: libdnf >= 0.24.1
8c8eadf
8c8eadf
%description
8c8eadf
The libdnf plugin swidtags_plugin.so can be used to keep the SWID
8c8eadf
information synchronized with SWID tags from dnf/yum repository
8c8eadf
metadata for package installations, upgrades, and removals using
8c8eadf
tools based on libdnf (for example microdnf).
8c8eadf
8c8eadf
%prep
8c8eadf
%setup -q
8c8eadf
%build
8c8eadf
8c8eadf
make %{?_smp_mflags} swidtags_plugin
8c8eadf
8c8eadf
%install
8c8eadf
8c8eadf
install -d %{buildroot}%{_libdir}/libdnf/plugins
8c8eadf
install -m 755 swidtags_plugin.so %{buildroot}%{_libdir}/libdnf/plugins/
8c8eadf
8c8eadf
%check
8c8eadf
%if %{with test}
8c8eadf
make test
8c8eadf
%endif
8c8eadf
8c8eadf
%files
8c8eadf
%doc README.md
8c8eadf
%license LICENSE
8c8eadf
%{_libdir}/libdnf/plugins/swidtags_plugin.so
8c8eadf
8c8eadf
%changelog
dd5b00c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.8-2
dd5b00c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dd5b00c
33c2b05
* Thu May 21 2020 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.8-1
33c2b05
- Test fixes.
33c2b05
036bcb0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-5
036bcb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
036bcb0
e0f98de
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
e0f98de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e0f98de
2a258be
* Mon Jun 10 22:13:20 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.7-3
2a258be
- Rebuild for RPM 4.15
2a258be
22b7605
* Mon Jun 10 15:42:02 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.7-2
22b7605
- Rebuild for RPM 4.15
22b7605
ce857ee
* Wed Jun 05 2019 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.7-1
ce857ee
- Build and rpm dependency improvements.
ce857ee
8efee70
* Tue Jun 04 2019 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.6-1
8efee70
- Make compatible with PackageKit.
8efee70
- Fix memory leaks.
8efee70
8c8eadf
* Mon May 27 2019 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.5-1
8c8eadf
- 1711989 - bring comments from Fedora package review upstream.
8c8eadf
8c8eadf
* Tue May 21 2019 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.4-1
8c8eadf
- Initial release.