File cunit.spec of Package cunit

Summary:  A unit testing framework for 'C'
Name:     cunit
Version:  2.1
Release:  0%{?dist}
Source:   http://downloads.sourceforge.net/cunit/CUnit-%{version}-0-src.tar.gz
Patch0:   CUnit-basic-run-test.patch
Group:    Development/Tools
License:  GPL
URL:      http://cunit.sourceforge.net
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Automated testing framework for 'C'.
This package installs the CUnit static and shared libraries,
headers, and documentation files.

%prep
echo "Preparing for Installation."
%setup -q -n CUnit-2.1-0
%patch -p1

%build
echo "Preparing for Building."
%{?__cc:CC="%__cc"} %{?__cxx:CXX="%__cxx"} %configure --enable-automated --enable-basic --enable-console --enable-examples --enable-test 
make %{?__cc:CC="%__cc"} %{?__cxx:CXX="%__cxx"}

%install
echo "Preparing for Make install."
%makeinstall
rm %{buildroot}%{_libdir}/*.la

%clean

%files
%defattr(-,root,root)
%doc README NEWS AUTHORS COPYING ChangeLog TODO VERSION

%{_includedir}/CUnit

%{_libdir}/libcunit.a
%{_libdir}/libcunit.so*

%{_mandir}/man3/CUnit.3*

%{_datadir}/CUnit/

%{_prefix}/doc/CUnit/

# -*- coding: UTF-8 -*-
openSUSE Build Service is sponsored by