CUnit.spec.in 3.17 KB
Newer Older
1 2 3 4 5 6 7 8 9
Summary:  A unit testing framework for 'C'
Name:     @PACKAGE@
Version:  @VERSION@
Release:  @RELEASE@
Source:   http://www.sourceforge.net/projects/cunit/@PACKAGE@-@VERSION@-@RELEASE@.tar.gz
Group:    Development/Tools
License:  GPL
URL:      http://cunit.sourceforge.net
Packager: Jerry St. Clair <jds2@users.sourceforge.net>
anilsaharan's avatar
anilsaharan committed
10 11

%description
12 13 14
CUnit is a unit testing framework for C.
This package installs the CUnit static library,
headers, and documentation files.
anilsaharan's avatar
anilsaharan committed
15 16 17

%prep
echo "Preparing for Installation."
18
%setup -q -n @PACKAGE@-@VERSION@-@RELEASE@
anilsaharan's avatar
anilsaharan committed
19 20 21

%build
echo "Preparing for Building."
22
./configure --prefix=%{_prefix} --enable-automated --enable-basic --enable-console --enable-curses --enable-examples --enable-test && \
anilsaharan's avatar
anilsaharan committed
23 24 25 26
make

%install
echo "Preparing for Make install."
27
make DESTDIR=$RPM_BUILD_ROOT install
anilsaharan's avatar
anilsaharan committed
28 29 30 31 32 33 34

%clean

%files
%defattr(-,root,root)

########### Include Files
35
%{_prefix}/include/CUnit/Automated.h
36
%{_prefix}/include/CUnit/Basic.h
anilsaharan's avatar
anilsaharan committed
37
%{_prefix}/include/CUnit/Console.h
38
%{_prefix}/include/CUnit/CUError.h
anilsaharan's avatar
anilsaharan committed
39
%{_prefix}/include/CUnit/CUnit.h
40
%{_prefix}/include/CUnit/CUnit_intl.h
41
%{_prefix}/include/CUnit/CUCurses.h
42
%{_prefix}/include/CUnit/MyMem.h
anilsaharan's avatar
anilsaharan committed
43
%{_prefix}/include/CUnit/TestDB.h
44
%{_prefix}/include/CUnit/TestRun.h
45
%{_prefix}/include/CUnit/Util.h
anilsaharan's avatar
anilsaharan committed
46

jds2's avatar
jds2 committed
47
########## Library Files
anilsaharan's avatar
anilsaharan committed
48
%{_prefix}/lib/libcunit.a
jds2's avatar
jds2 committed
49
%{_prefix}/lib/libcunit.so.@LIBTOOL_SUFFIX@
anilsaharan's avatar
anilsaharan committed
50

51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
########## doc Files
%{_prefix}/doc/@PACKAGE@/CUnit_doc.css
%{_prefix}/doc/@PACKAGE@/error_handling.html
%{_prefix}/doc/@PACKAGE@/fdl.html
%{_prefix}/doc/@PACKAGE@/index.html
%{_prefix}/doc/@PACKAGE@/introduction.html
%{_prefix}/doc/@PACKAGE@/managing_tests.html
%{_prefix}/doc/@PACKAGE@/running_tests.html
%{_prefix}/doc/@PACKAGE@/test_registry.html
%{_prefix}/doc/@PACKAGE@/writing_tests.html
%{_prefix}/doc/@PACKAGE@/headers/Automated.h
%{_prefix}/doc/@PACKAGE@/headers/Basic.h
%{_prefix}/doc/@PACKAGE@/headers/Console.h
%{_prefix}/doc/@PACKAGE@/headers/CUError.h
%{_prefix}/doc/@PACKAGE@/headers/CUnit.h
66
%{_prefix}/doc/@PACKAGE@/headers/CUnit_intl.h
67
%{_prefix}/doc/@PACKAGE@/headers/CUCurses.h
68 69 70 71
%{_prefix}/doc/@PACKAGE@/headers/MyMem.h
%{_prefix}/doc/@PACKAGE@/headers/TestDB.h
%{_prefix}/doc/@PACKAGE@/headers/TestRun.h
%{_prefix}/doc/@PACKAGE@/headers/Util.h
72
%{_prefix}/doc/@PACKAGE@/headers/Win.h
73

anilsaharan's avatar
anilsaharan committed
74
########## Manpage Files
75
%{_prefix}/man/man3/CUnit.3*
anilsaharan's avatar
anilsaharan committed
76

77
########## Share information and Example Files
78 79 80 81 82 83 84 85 86
%{_prefix}/share/@PACKAGE@/Examples/Automated/README
%{_prefix}/share/@PACKAGE@/Examples/Automated/AutomatedTest
%{_prefix}/share/@PACKAGE@/Examples/Basic/README
%{_prefix}/share/@PACKAGE@/Examples/Basic/BasicTest
%{_prefix}/share/@PACKAGE@/Examples/Console/README
%{_prefix}/share/@PACKAGE@/Examples/Console/ConsoleTest
%{_prefix}/share/@PACKAGE@/Examples/Curses/README
%{_prefix}/share/@PACKAGE@/Examples/Curses/CursesTest
%{_prefix}/share/@PACKAGE@/Test/test_cunit
87 88 89 90
%{_prefix}/share/@PACKAGE@/CUnit-List.dtd
%{_prefix}/share/@PACKAGE@/CUnit-List.xsl
%{_prefix}/share/@PACKAGE@/CUnit-Run.dtd
%{_prefix}/share/@PACKAGE@/CUnit-Run.xsl
91 92
%{_prefix}/share/@PACKAGE@/Memory-Dump.dtd
%{_prefix}/share/@PACKAGE@/Memory-Dump.xsl
anilsaharan's avatar
anilsaharan committed
93

94
# Add the change log in ChangeLog file located under source home directory.
95
# The same file is used internally to populate the change log for the RPM creation.