commit 4d0fd20d57c696b6a49bc68e8a8d9225c0ff4f07
Author: Adam Gołębiowski <ad...@pld-linux.org>
Date:   Mon Sep 30 09:23:12 2019 +0200

    - updated to 1.84, switch to github

 cloc.spec | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)
---
diff --git a/cloc.spec b/cloc.spec
index 666f88c..74dd34f 100644
--- a/cloc.spec
+++ b/cloc.spec
@@ -1,15 +1,14 @@
 %include       /usr/lib/rpm/macros.perl
 Summary:       CLOC - Count Lines of Code
 Name:          cloc
-Version:       1.55
+Version:       1.84
 Release:       1
 License:       GPL v2
 Group:         Applications
-Source0:       http://downloads.sourceforge.net/cloc/%{name}-%{version}.pl
-# Source0-md5: 19ab5852617e89d853793a693eb5e510
-Source1:       http://downloads.sourceforge.net/cloc/release-%{version}.txt
-# Source1-md5: cb2e63726afc46faa68e1b144273dc0b
-URL:           http://cloc.sourceforge.net/
+Source0:       
https://github.com/AlDanial/cloc/releases/download/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: a52f3843825377cfa4e4b3b30a567ab4
+URL:           https://github.com/AlDanial/cloc
+BuildRequires: perl-Regexp-Common
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -20,22 +19,25 @@ code in many programming languages. Given two versions of a 
code base,
 cloc can also compute differences in blank, comment, and source lines.
 
 %prep
-%setup -qcT
-cp -p %{SOURCE1} release.txt
+%setup -q
 
 # fix #!env perl -w -> #!%{__perl}:
-%{__sed} -e '1s,^#!.*perl,#!%{__perl},' %{SOURCE0} > %{name}.pl
-touch -r %{SOURCE0} %{name}.pl
+%{__sed} -e '1s,^#!.*perl,#!%{__perl},' Unix/cloc
+
+%build
+%{__make} -C Unix
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -p %{name}.pl $RPM_BUILD_ROOT%{_bindir}/%{name}
+%{__make} -C Unix install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc release.txt
+%doc LICENSE README.md sqlite_formatter
+%doc Unix/{AUTHORS,COPYING,INSTALL,NEWS,README}
 %attr(755,root,root) %{_bindir}/cloc
+%{_mandir}/man1/cloc.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cloc.git/commitdiff/4d0fd20d57c696b6a49bc68e8a8d9225c0ff4f07

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to