forked from ggcov/ggcov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ggcov.spec.in
133 lines (117 loc) · 4.69 KB
/
ggcov.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
Summary: ggcov test coverage tool
Name: @PACKAGE@
Version: @VERSION@
Release: 1
License: GPL
Group: Development/C
Source: http://sourceforge.net/projects/ggcov/files/ggcov-%{version}.tar.gz
Url: http://ggcov.sourceforge.net/
BuildRoot: /var/tmp/%{name}-root
@WEB_TRUE@BuildPreReq: gdbm-devel
Vendor: Greg Banks <[email protected]>
@GUI_TRUE@%package gnome
@GUI_TRUE@Summary: GNOME interface for ggcov test coverage tool
@GUI_TRUE@Group: Development/C
@GUI_TRUE@
@GUI_TRUE@%description gnome
@GUI_TRUE@Ggcov is a simple GUI program for browsing test coverage data from C programs,
@GUI_TRUE@and is intended to be a graphical replacement for the gcov program. See the
@GUI_TRUE@ggcov-cli and ggcov-web packages for command line and WWW interfaces.
@GUI_TRUE@
@GUI_TRUE@Test coverage data is produced by programs which have been built with "gcc
@GUI_TRUE@--coverage", and indicate how many times each line and branch has been
@GUI_TRUE@executed, cumulatively over multiple test runs.
%package cli
Summary: Command line interface for ggcov test coverage tool
Group: Development/C
%description cli
The ggcov-cli package provides a command line interface for browsing
test coverage data from C programs. See the ggcov package for the GNOME
interface.
Test coverage data is produced by programs which have been built with "gcc
--coverage", and indicate how many times each line and branch has been
executed, cumulatively over multiple test runs.
@WEB_TRUE@%package web
@WEB_TRUE@Summary: WWW interface for ggcov test coverage tool
@WEB_TRUE@Group: Development/C
@WEB_TRUE@
@WEB_TRUE@%description web
@WEB_TRUE@The ggcov-web package provides a WWW interface for browsing test
@WEB_TRUE@coverage data from C programs. See the ggcov-cli and ggcov packages for
@WEB_TRUE@text-based and GNOME interfaces.
@WEB_TRUE@
@WEB_TRUE@Test coverage data is produced by programs which have been built with "gcc
@WEB_TRUE@--coverage", and indicate how many times each line and branch has been
@WEB_TRUE@executed, cumulatively over multiple test runs.
%prep
%setup -q
%build
%configure @RPM_SPEC_CONFIGURE_ARGS@
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
@GCONF@%post
@GCONF@export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
@GCONF@gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ggcov.schemas > /dev/null
@GUI_TRUE@%files gnome
@GUI_TRUE@%defattr(-,root,root)
@GUI_TRUE@%{_bindir}/ggcov
@GUI_TRUE@%{_datadir}/ggcov/*.glade
@GUI_TRUE@%{_datadir}/ggcov/*.png
@GUI_TRUE@%{_datadir}/gnome/apps/Development/ggcov.desktop
@GUI_TRUE@%{_datadir}/pixmaps/ggcov64.png
@GUI_TRUE@@GCONF@%{_sysconfdir}/gconf/schemas/ggcov.schemas
@GUI_TRUE@%doc NEWS AUTHORS README INSTALL COPYING ChangeLog TODO
@GUI_TRUE@%docdir %{_mandir}
@GUI_TRUE@%{_mandir}/man1/ggcov.1*
%files cli
%defattr(-,root,root)
%{_bindir}/tggcov
%{_bindir}/git-history-coverage
%{_bindir}/ggcov-run
%{_libdir}/ggcov/libggcov.la
%{_libdir}/ggcov/libggcov.so*
%doc NEWS AUTHORS README INSTALL COPYING ChangeLog TODO
%docdir %{_mandir}
%{_mandir}/man1/git-history-coverage.1*
%{_mandir}/man1/ggcov-run.1*
@WEB_TRUE@%files web
@WEB_TRUE@%defattr(-,root,root)
@WEB_TRUE@%{_bindir}/ggcov-webdb
@WEB_TRUE@%{_datadir}/ggcov/php
@WEB_TRUE@%{_localstatedir}/ggcov/tests
@WEB_TRUE@%doc NEWS AUTHORS README INSTALL COPYING ChangeLog TODO
@WEB_TRUE@%docdir %{_mandir}
@WEB_TRUE@%{_mandir}/man1/ggcov-webdb.1*
@WEB_TRUE@%doc php/ggcov.conf doc/HOWTO.web
# The main package is never built so this is never used
# but rpmbuild complains if its missing. Go figure.
%description
Test coverage data is produced by programs which have been built with "gcc
--coverage", and indicate how many times each line and branch has been
executed, cumulatively over multiple test runs.
%changelog
* Wed Feb 29 2012 Greg Banks <[email protected]>
- Distribute ggcov-run
* Thu Feb 24 2011 Greg Banks <[email protected]>
- Split off separate ggcov-gnome and ggcov-cli packages
- The -gnome package is not built if --disable-gui is used
- The -web package is not built if --disable-web is used
* Thu Feb 24 2011 Greg Banks <[email protected]>
- Update Homepage, Url, and License metadata.
- Mention --coverage gcc option in description.
* Sun May 9 2010 Greg Banks <[email protected]>
- Update email address
* Sun Jun 19 2005 Greg Banks <[email protected]>
- Add manpage, empty ggcov test dir to web package
* Sat Apr 30 2005 Greg Banks <[email protected]>
- Added new subpackage for web stuff
* Mon Mar 14 2005 Greg Banks <[email protected]>
- Added gconf schema
* Thu Jul 17 2003 Greg Banks <[email protected]>
- Full GTK2 features, GNOME desktop file.
* Sat Nov 24 2001 Greg Banks <[email protected]>
- Building RPM for first release