Bump to 2.0 sandbox/lcov_2.0
authorTizenOpenSource <tizenopensrc@samsung.com>
Fri, 8 Dec 2023 02:21:31 +0000 (11:21 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Fri, 8 Dec 2023 02:21:31 +0000 (11:21 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
.gitignore [deleted file]
packaging/lcov.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 652f4df..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-.version
-*.gcda
-*.gcno
-*.info
-*.tar.gz
-*.rpm
-*.tdy
-
-# ignore autogenerated test files
-/tests/**/*.log
-/tests/**/*.counts
-/tests/**/*.info.gz
-/tests/**/*.info.json
-/tests/lcov/diff/diff
-/tests/lcov/diff/new/prog
-/tests/lcov/diff/old/prog
-/tests/gendiffcov/simple/a.out
-/tests/gendiffcov/simple/criteria.err
-/tests/gendiffcov/simple/diff.txt
-/tests/gendiffcov/simple/diff_broken.txt
-/tests/gendiffcov/simple/diff_r.txt
-/tests/gendiffcov/simple/navigation.err
-/tests/gendiffcov/simple/test.cpp
-/tests/lcov/add/prune
-/tests/lcov/add/prune2
-/tests/lcov/add/prune3
-/tests/lcov/add/track
-/tests/lcov/diff/patched_normalized.info-e
-/tests/lcov/extract/a.out
-/tests/lcov/extract/lcov.json
-/tests/lcov/extract/testRC
-
-
-# ignore autogenerated test directories
-/tests/genhtml/out_full/
-/tests/genhtml/out_part1/
-/tests/genhtml/out_part2/
-/tests/genhtml/out_target/
-/tests/genhtml/out_zero/
-/tests/src/
-/tests/gendiffcov/simple/baseline-filter-dark/
-/tests/gendiffcov/simple/baseline-filter/
-/tests/gendiffcov/simple/baseline/
-/tests/gendiffcov/simple/criteria/
-/tests/gendiffcov/simple/current/
-/tests/gendiffcov/simple/differential--show-details--hier/
-/tests/gendiffcov/simple/differential--show-details/
-/tests/gendiffcov/simple/differential/
-/tests/gendiffcov/simple/differential_nobranch/
-/tests/gendiffcov/simple/elidePath/
-/tests/gendiffcov/simple/mismatchPath/
-/tests/gendiffcov/simple/mismatched/
-/tests/gendiffcov/simple/navigation/
-/tests/gendiffcov/simple/no_annotation/
-/tests/gendiffcov/simple/no_baseline/
-/tests/gendiffcov/simple/no_owners/
-/tests/gendiffcov/simple/noncode_differential--dark-mode/
-/tests/gendiffcov/simple/noncode_differential/
-/tests/gendiffcov/simple/reverse/
-/tests/gendiffcov/simple/reverse_nobranch/
diff --git a/packaging/lcov.spec b/packaging/lcov.spec
new file mode 100644 (file)
index 0000000..b51c300
--- /dev/null
@@ -0,0 +1,40 @@
+Summary: A graphical GCOV front-end
+Name: lcov
+Version: 2.0
+Release: 1
+License: GPL-2.0+
+Group: Development/Tools
+URL: http://ltp.sourceforge.net/coverage/lcov.php
+Source0: http://downloads.sourceforge.net/ltp/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildArch: noarch
+Requires: perl >= 5.8.8
+Requires: perl-PerlIO-gzip
+Requires: perl-json
+
+%description
+LCOV is a graphical front-end for GCC's coverage testing tool gcov. It collects
+gcov data for multiple source files and creates HTML pages containing the
+source code annotated with coverage information. It also adds overview pages
+for easy navigation within the file structure.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+exit 0
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr CFG_DIR=/etc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+/usr/bin/*
+/usr/share/man/man*/*
+%config /etc/*
+%{_libdir}/lcov/lcovutil.pm
+%{_datadir}/lcov/support-scripts/*