source: spec/trunk/SPECS/check.spec@ 1330

Last change on this file since 1330 was 1102, checked in by Silvan Scherrer, 8 years ago

spec: check: Release version 0.11.0-2.

File size: 4.0 KB
Line 
1Name: check
2Version: 0.11.0
3Release: 2%{?dist}
4Summary: A unit test framework for C
5License: LGPLv2+
6URL: http://libcheck.github.io/check/
7Group: Development/Tools
8
9Vendor: bww bitwise works GmbH
10%scm_source github https://github.com/bitwiseworks/check-os2 %{version}-os2
11
12# DEF files to create forwarders for the legacy package
13Source10: check.def
14
15BuildRequires: gcc
16BuildRequires: libtool
17#BuildRequires: patchutils
18BuildRequires: pkgconfig
19#BuildRequires: subunit-devel
20BuildRequires: texinfo
21
22Requires(post): info
23Requires(preun): info
24
25
26%description
27Check is a unit test framework for C. It features a simple interface for
28defining unit tests, putting little in the way of the developer. Tests
29are run in a separate address space, so Check can catch both assertion
30failures and code errors that cause segmentation faults or other signals.
31The output from unit tests can be used within source code editors and IDEs.
32
33%package devel
34Summary: Libraries and headers for developing programs with check
35Group: Development/Libraries
36Requires: pkgconfig
37Requires: %{name} = %{version}-%{release}
38
39%description devel
40Libraries and headers for developing programs with check
41
42%package static
43Summary: Static libraries of check
44Group: Development/Libraries
45
46%description static
47Static libraries of check.
48
49%package checkmk
50Summary: Translate concise versions of test suites into C programs
51License: BSD
52BuildArch: noarch
53Requires: %{name} = %{version}-%{release}
54
55%description checkmk
56The checkmk binary translates concise versions of test suites into C
57programs suitable for use with the Check unit test framework.
58
59%debug_package
60
61
62%prep
63%scm_setup
64
65# Regenerate configure
66autoreconf -ivf
67
68# Prepare forwarder DLLs.
69for m in %{SOURCE10}; do
70 cp ${m} .
71done
72
73
74%build
75export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
76export LIBS="-lcx"
77export VENDOR="%{vendor}"
78
79%configure
80
81make %{?_smp_mflags}
82
83%install
84make DESTDIR=$RPM_BUILD_ROOT install
85rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
86rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
87rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
88
89rm -f doc/example/.cvsignore
90
91# Generate & install forwarder DLLs.
92gcc -Zomf -Zdll -nostdlib check.def -l$RPM_BUILD_ROOT/%{_libdir}/check0.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/check.dll
93
94
95%check
96#export LD_LIBRARY_PATH=$PWD/src/.libs
97#make check
98# Don't need to package the sh, log or trs files
99# when we scoop the other checkmk/test files for doc
100rm -rf checkmk/test/check_checkmk*
101# these files are empty
102rm -rf checkmk/test/empty_input
103
104
105%post
106#/sbin/ldconfig
107if [ -f %{_infodir}/%{name}.info.gz ]; then
108 %{_sbindir}/install-info \
109 --entry='* Check: (check). A unit testing framework for C.' \
110 %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
111fi
112
113#%postun -p /sbin/ldconfig
114
115%preun
116if [ $1 = 0 -a -f %{_infodir}/%{name}.info.gz ]; then
117 %{_sbindir}/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
118fi
119
120
121%files
122%doc AUTHORS ChangeLog
123%license COPYING.LESSER
124%{_libdir}/*.dll
125%{_infodir}/check*
126
127%files devel
128%doc doc/example
129%{_includedir}/check.h
130%{_includedir}/check_stdint.h
131%{_libdir}/check*_dll.a
132%{_libdir}/pkgconfig/check.pc
133%{_datadir}/aclocal/check.m4
134
135#check used to be static only, hence this.
136%files static
137%license COPYING.LESSER
138%{_libdir}/check.a
139
140%files checkmk
141%doc checkmk/README checkmk/examples
142%doc checkmk/test
143%{_bindir}/checkmk
144%{_mandir}/man1/checkmk.1*
145
146%changelog
147* Thu Apr 13 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.11.0-2
148- fix a script error
149
150* Mon Apr 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.11.0-1
151- update vendor source to version 0.11.0
152- move source from netlabs svn to github
153
154* Mon Aug 29 2011 yd <yd@os2power.com> 0.9.8-3
155- massive rebuild due to new rpm lx parser updates
156
157* Wed Apr 20 2011 yd <yd@os2power.com> 0.9.8-2
158- add target cpu field in cache file
159
160* Wed Nov 10 2010 yd <yd@os2power.com> 0.9.8-1
161- first initial rpm
Note: See TracBrowser for help on using the repository browser.