From ea8a12a6e84ad36cccdeacb293fe8fcb6dfa2bb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 14 Mar 2021 16:16:08 +0100 Subject: [PATCH] - new --- dnf-plugin-diff.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dnf-plugin-diff.spec diff --git a/dnf-plugin-diff.spec b/dnf-plugin-diff.spec new file mode 100644 index 0000000..3bb749c --- /dev/null +++ b/dnf-plugin-diff.spec @@ -0,0 +1,46 @@ +Summary: Show local changes in RPM packages +Name: dnf-plugin-diff +Version: 1.1 +Release: 1 +License: GPL v2+ +Source0: https://github.com/praiskup/%name/releases/download/v%version/%name-%version.tar.gz +# Source0-md5: 85ecc6d16ff815280715a5dec02e8174 +URL: https://github.com/praiskup/dnf-plugin-diff +BuildRequires: python3-modules +Requires: cpio +Requires: dnf +Requires: file +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Dnf plugin to diff the original package contents against the locally +changed files. + +%prep +%setup -q + +%build +%{__aclocal} +%{__autoconf} +%{__automake} +%configure \ + PYTHON=%{__python3} + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%attr(755,root,root) %{_libexecdir}/dnf-diff-* +%{py3_sitescriptdir}/dnf-plugins/*.py +%{py3_sitescriptdir}/dnf-plugins/__pycache__/* -- 2.44.0