From: Jan Rękorajski Date: Sun, 14 Mar 2021 15:16:08 +0000 (+0100) Subject: - new X-Git-Tag: auto/th/dnf-plugin-diff-1.1-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=ea8a12a6e84ad36cccdeacb293fe8fcb6dfa2bb0;p=packages%2Fdnf-plugin-diff.git - new --- ea8a12a6e84ad36cccdeacb293fe8fcb6dfa2bb0 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__/*