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

Last change on this file since 1750 was 1659, checked in by Silvan Scherrer, 6 years ago

spec: check: Release version 0.12.0-1.

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