2005-09-11 14:30:04 +00:00
|
|
|
Name: cppunit
|
2006-07-05 16:56:11 +00:00
|
|
|
Version: 1.12.0
|
2007-12-16 23:52:14 +00:00
|
|
|
Release: 4%{?dist}
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
Summary: C++ unit testing framework
|
2007-10-21 10:13:31 +00:00
|
|
|
# no license in files
|
|
|
|
License: LGPLv2+
|
2005-09-11 14:30:04 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Url: http://cppunit.sourceforge.net/
|
2006-07-05 16:56:11 +00:00
|
|
|
Source: http://download.sf.net/cppunit/cppunit-%{version}.tar.gz
|
2007-10-21 10:13:31 +00:00
|
|
|
Patch0: cppunit-1.12.0-nolibdir.patch
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: doxygen, graphviz
|
|
|
|
|
|
|
|
%description
|
|
|
|
CppUnit is the C++ port of the famous JUnit framework for unit testing.
|
|
|
|
Test output is in XML for automatic testing and GUI based for supervised tests.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries and headers for cppunit development
|
|
|
|
Group: Development/Libraries
|
2007-01-29 10:55:26 +00:00
|
|
|
Requires: pkgconfig, automake
|
2005-09-11 14:30:04 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the libraries and headers necessary for developing
|
|
|
|
programs that use cppunit.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: HTML formatted API documention for cppunit
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The cppunit-doc package contains HTML formatted API documention generated by
|
|
|
|
the popular doxygen documentation generation tool.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-10-21 10:13:31 +00:00
|
|
|
%patch0 -p1 -b .nolibdir
|
|
|
|
for file in THANKS ChangeLog NEWS; do
|
|
|
|
iconv -f latin1 -t utf8 < $file > ${file}.utf8
|
2007-12-16 23:52:14 +00:00
|
|
|
touch -r $file ${file}.utf8
|
2007-10-21 10:13:31 +00:00
|
|
|
mv ${file}.utf8 $file
|
|
|
|
done
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%build
|
2007-12-16 23:52:14 +00:00
|
|
|
export LDFLAGS=-ldl
|
2007-01-29 10:55:26 +00:00
|
|
|
%configure --enable-doxygen --disable-static
|
2005-09-11 14:30:04 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-12-16 23:52:14 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
2007-01-29 10:55:26 +00:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
2005-09-11 14:30:04 +00:00
|
|
|
# remove double of doc
|
2007-01-29 10:55:26 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/cppunit
|
|
|
|
|
2007-12-16 23:52:14 +00:00
|
|
|
# ensure that timestamp of cppunit-config is the same for all arches
|
|
|
|
touch -r cppunit-config.in.nolibdir $RPM_BUILD_ROOT%{_bindir}/cppunit-config
|
|
|
|
|
2007-01-29 10:55:26 +00:00
|
|
|
# clean up examples
|
2007-10-21 10:13:31 +00:00
|
|
|
rm -rf __dist-examples __dist-examples-dir
|
|
|
|
cp -a examples __dist-examples
|
|
|
|
make -C __dist-examples distclean
|
2007-01-29 10:55:26 +00:00
|
|
|
# Makefile.am files are left as documentation
|
2007-10-21 10:13:31 +00:00
|
|
|
find __dist-examples \( -name Makefile.in -o -name .cvsignore -o -name '*.dsw' -o -name '*.dsp' \) -exec rm {} \;
|
|
|
|
chmod a-x __dist-examples/qt/run.bat
|
|
|
|
mkdir __dist-examples-dir
|
|
|
|
mv __dist-examples __dist-examples-dir/examples
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-01-29 10:55:26 +00:00
|
|
|
%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
|
2005-09-11 14:30:04 +00:00
|
|
|
%{_bindir}/DllPlugInTester
|
|
|
|
%{_libdir}/libcppunit*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/cppunit-config
|
|
|
|
%{_includedir}/cppunit
|
|
|
|
%{_libdir}/libcppunit.so
|
2007-01-29 10:55:26 +00:00
|
|
|
%{_datadir}/aclocal/cppunit.m4
|
|
|
|
%{_mandir}/man1/cppunit-config.1*
|
2006-05-21 14:40:44 +00:00
|
|
|
%{_libdir}/pkgconfig/cppunit.pc
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
2007-10-21 10:13:31 +00:00
|
|
|
%doc __dist-examples-dir/examples/
|
2007-01-29 10:55:26 +00:00
|
|
|
%doc doc/html/
|
2005-09-11 14:30:04 +00:00
|
|
|
|
|
|
|
%changelog
|
2007-12-16 23:52:14 +00:00
|
|
|
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
|
2007-10-21 10:13:31 +00:00
|
|
|
- remove libdir reference to cppunit-config, should fix multiarch conflict
|
|
|
|
(#340951)
|
|
|
|
- fix encoding and remove windows related files in examples
|
2007-12-16 23:52:14 +00:00
|
|
|
- keep timestamps
|
2007-10-21 10:13:31 +00:00
|
|
|
|
2007-01-29 10:55:26 +00:00
|
|
|
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
|
|
|
|
- add rightly files to -devel (#224106)
|
|
|
|
- add necessary requires for -devel (#224106)
|
|
|
|
- ship examples
|
|
|
|
|
2006-09-10 22:13:58 +00:00
|
|
|
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
|
|
|
|
- rebuild for FC6
|
|
|
|
|
|
|
|
* Wed Jul 5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1
|
2006-07-05 16:56:11 +00:00
|
|
|
- update to 1.12
|
|
|
|
|
2006-09-10 22:13:58 +00:00
|
|
|
* Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1
|
2006-05-21 14:40:44 +00:00
|
|
|
- update to 1.11.6
|
2006-02-16 22:09:18 +00:00
|
|
|
|
2006-09-10 22:13:58 +00:00
|
|
|
* Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1
|
2005-12-21 08:18:01 +00:00
|
|
|
- update
|
|
|
|
|
2005-09-11 14:30:04 +00:00
|
|
|
* Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2
|
|
|
|
- various cleanups
|
|
|
|
|
2006-09-10 22:13:58 +00:00
|
|
|
* Mon Jul 4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1
|
2005-09-11 14:30:04 +00:00
|
|
|
- update using the fedora template
|
|
|
|
|
|
|
|
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
|
|
|
|
- Initial release
|