Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:tools
sloccount
sloccount.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sloccount.spec of Package sloccount
# # spec file for package sloccount # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: sloccount Version: 2.26 Release: 0 Summary: Program source lines of code (SLOC) measurement utility License: GPL-2.0-or-later Group: Development/Tools/Other URL: https://dwheeler.com/sloccount/ Source: https://dwheeler.com/sloccount/%name-%version.tar.gz BuildRequires: fdupes BuildRequires: flex %description "SLOCCount", a set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages of a potentially large set of programs. Ada, Assembly, awk, Bourne shell and variants, C, C++, C shell, COBOL, C#, Expect, Fortran, Haskell, Java, (f)lex, LISP/Scheme, Makefile, Modula-3, Objective-C, Pascal, Perl, PHP, Python, Ruby, sed, SQL, TCL and Yacc/Bison. %prep %autosetup -p1 %build make %{?_smp_mflags} %{?smp_mflags} CC="gcc %optflags" PREFIX="%_prefix" %install b=%buildroot mkdir -p "$b/%_bindir" "$b/%_libexecdir/%name" make %{?_smp_mflags} PREFIX="$b/%_prefix" INSTALL_DIR="$b/%_libexecdir/%name" \ install_programs install_man cat <<-"EOF" >"$b/%_bindir/sloccount" #!/bin/sh PATH="%_libexecdir/%name:$PATH" exec "%_libexecdir/%name/sloccount" "$@" EOF chmod a+x "$b/%_bindir/sloccount" # ugh chmod a-x "$b/%_mandir"/*/*.gz %fdupes %buildroot/%_prefix %files %license COPYING %doc sloccount.html README %_bindir/* %_libexecdir/%name %_mandir/*/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor