From 40853e6b6553737d2e2a3dfd727c4cb956d173ec Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Sun, 25 Jul 2021 01:34:38 +0200 Subject: [PATCH 1/1] new --- diff-so-fancy.spec | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 diff-so-fancy.spec diff --git a/diff-so-fancy.spec b/diff-so-fancy.spec new file mode 100644 index 0000000..b5ccf75 --- /dev/null +++ b/diff-so-fancy.spec @@ -0,0 +1,38 @@ +Summary: Good-lookin' diffs. Actually… nah… The best-lookin' diffs +Name: diff-so-fancy +Version: 1.4.2 +Release: 1 +License: MIT +Group: Applications +Source0: https://github.com/so-fancy/diff-so-fancy/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: b98082c2c4aca5867c28178368f8475c +URL: https://github.com/so-fancy/diff-so-fancy +BuildRequires: rpm-perlprov +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +diff-so-fancy strives to make your diffs human readable instead of +machine readable. This helps improve code quality and helps you spot +defects faster. + +%prep +%setup -q + +%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' diff-so-fancy + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{perl_vendorlib}} + +cp -p diff-so-fancy $RPM_BUILD_ROOT%{_bindir} +cp -p lib/DiffHighlight.pm $RPM_BUILD_ROOT%{perl_vendorlib} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.md {hacking-and-testing,history,pro-tips}.md +%attr(755,root,root) %{_bindir}/diff-so-fancy +%{perl_vendorlib}/DiffHighlight.pm -- 2.44.0