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

%description
12 13
BCUnit is a unit testing framework for C.
This package installs the BCUnit static library,
14
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 36 37 38 39 40 41 42 43 44 45
%{_prefix}/include/BCUnit/Automated.h
%{_prefix}/include/BCUnit/Basic.h
%{_prefix}/include/BCUnit/Console.h
%{_prefix}/include/BCUnit/CUError.h
%{_prefix}/include/BCUnit/BCUnit.h
%{_prefix}/include/BCUnit/BCUnit_intl.h
%{_prefix}/include/BCUnit/CUCurses.h
%{_prefix}/include/BCUnit/MyMem.h
%{_prefix}/include/BCUnit/TestDB.h
%{_prefix}/include/BCUnit/TestRun.h
%{_prefix}/include/BCUnit/Util.h
anilsaharan's avatar
anilsaharan committed
46

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

51
########## doc Files
52
%{_prefix}/doc/@PACKAGE@/BCUnit_doc.css
53 54 55 56 57 58 59 60 61 62 63 64
%{_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
65 66
%{_prefix}/doc/@PACKAGE@/headers/BCUnit.h
%{_prefix}/doc/@PACKAGE@/headers/BCUnit_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/BCUnit.3*
anilsaharan's avatar
anilsaharan committed
76

77
########## Share information and Example Files
78 79 80 81 82 83 84 85
%{_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
86 87 88 89 90
%{_prefix}/share/@PACKAGE@/Test/test_bcunit
%{_prefix}/share/@PACKAGE@/BCUnit-List.dtd
%{_prefix}/share/@PACKAGE@/BCUnit-List.xsl
%{_prefix}/share/@PACKAGE@/BCUnit-Run.dtd
%{_prefix}/share/@PACKAGE@/BCUnit-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.