]> git.pld-linux.org Git - packages/diff-so-fancy.git/commitdiff
new master auto/th/diff-so-fancy-1.4.2-1
authorJan Palus <atler@pld-linux.org>
Sat, 24 Jul 2021 23:34:38 +0000 (01:34 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 24 Jul 2021 23:34:38 +0000 (01:34 +0200)
diff-so-fancy.spec [new file with mode: 0644]

diff --git a/diff-so-fancy.spec b/diff-so-fancy.spec
new file mode 100644 (file)
index 0000000..b5ccf75
--- /dev/null
@@ -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
This page took 0.096991 seconds and 4 git commands to generate.