f3fb374
Name: cppunit
d5cd56c
Version: 1.12.1
4c6c138
Release: 2%{?dist}
f3fb374
f3fb374
Summary: C++ unit testing framework
8c7ba06
# no license in files
8c7ba06
License: LGPLv2+
f3fb374
Group: Development/Libraries
f3fb374
Url: http://cppunit.sourceforge.net/
234eda0
Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz
8c7ba06
Patch0: cppunit-1.12.0-nolibdir.patch
f3fb374
f3fb374
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f3fb374
BuildRequires: doxygen, graphviz
f3fb374
f3fb374
%description
f3fb374
CppUnit is the C++ port of the famous JUnit framework for unit testing.
d5cd56c
Test output is in XML for automatic testing and GUI based for supervised 
d5cd56c
tests.
f3fb374
f3fb374
%package devel
f3fb374
Summary: Libraries and headers for cppunit development
f3fb374
Group: Development/Libraries
dcf0684
Requires: pkgconfig, automake
f3fb374
Requires: %{name} = %{version}-%{release}
f3fb374
f3fb374
%description devel
f3fb374
This package contains the libraries and headers necessary for developing
f3fb374
programs that use cppunit.
f3fb374
f3fb374
%package doc
f3fb374
Summary: HTML formatted API documention for cppunit
f3fb374
Group: Documentation
f3fb374
f3fb374
%description doc
f3fb374
The cppunit-doc package contains HTML formatted API documention generated by
f3fb374
the popular doxygen documentation generation tool.
f3fb374
f3fb374
%prep
f3fb374
%setup -q
8c7ba06
%patch0 -p1 -b .nolibdir
8c7ba06
for file in THANKS ChangeLog NEWS; do
8c7ba06
   iconv -f latin1 -t utf8 < $file > ${file}.utf8
d5cd56c
   touch -c -r $file ${file}.utf8
8c7ba06
   mv ${file}.utf8 $file
8c7ba06
done
f3fb374
f3fb374
%build
3418da0
export LDFLAGS=-ldl
d5cd56c
%configure --enable-doxygen --disable-static 
f3fb374
make %{?_smp_mflags}
f3fb374
f3fb374
%install
f3fb374
rm -rf $RPM_BUILD_ROOT
3418da0
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
dcf0684
rm $RPM_BUILD_ROOT%{_libdir}/*.la
f3fb374
# remove double of doc
d5cd56c
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit
dcf0684
3418da0
# ensure that timestamp of cppunit-config is the same for all arches
d5cd56c
touch -c -r cppunit-config.in.nolibdir $RPM_BUILD_ROOT%{_bindir}/cppunit-config
3418da0
dcf0684
# clean up examples
8c7ba06
rm -rf __dist-examples __dist-examples-dir
8c7ba06
cp -a examples __dist-examples
8c7ba06
make -C __dist-examples distclean
dcf0684
# Makefile.am files are left as documentation
8c7ba06
find __dist-examples \( -name Makefile.in -o -name .cvsignore -o -name '*.dsw' -o -name '*.dsp' \) -exec rm {} \;
8c7ba06
chmod a-x __dist-examples/qt/run.bat
8c7ba06
mkdir __dist-examples-dir
8c7ba06
mv __dist-examples __dist-examples-dir/examples
f3fb374
f3fb374
%clean
f3fb374
rm -rf $RPM_BUILD_ROOT
f3fb374
f3fb374
%post -p /sbin/ldconfig
f3fb374
f3fb374
%postun -p /sbin/ldconfig
f3fb374
f3fb374
%files
f3fb374
%defattr(-,root,root,-)
dcf0684
%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
f3fb374
%{_bindir}/DllPlugInTester
f3fb374
%{_libdir}/libcppunit*.so.*
f3fb374
f3fb374
%files devel
f3fb374
%defattr(-,root,root,-)
f3fb374
%{_bindir}/cppunit-config
f3fb374
%{_includedir}/cppunit
f3fb374
%{_libdir}/libcppunit.so
dcf0684
%{_datadir}/aclocal/cppunit.m4
dcf0684
%{_mandir}/man1/cppunit-config.1*
53f2a12
%{_libdir}/pkgconfig/cppunit.pc
f3fb374
f3fb374
%files doc
f3fb374
%defattr(-,root,root,-)
8c7ba06
%doc __dist-examples-dir/examples/
d5cd56c
%doc doc/html
f3fb374
f3fb374
%changelog
4c6c138
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-2
4c6c138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4c6c138
d5cd56c
* Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1
d5cd56c
- Update to 1.12.1
d5cd56c
7d0afa0
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5
7d0afa0
- Autorebuild for GCC 4.3
7d0afa0
3418da0
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
8c7ba06
- remove libdir reference to cppunit-config, should fix multiarch conflict
8c7ba06
  (#340951)
8c7ba06
- fix encoding and remove windows related files in examples
3418da0
- keep timestamps
8c7ba06
8c7ba06
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
dcf0684
- add rightly files to -devel (#224106)
dcf0684
- add necessary requires for -devel (#224106)
dcf0684
- ship examples
dcf0684
79e6a42
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
79e6a42
- rebuild for FC6
79e6a42
79e6a42
* Wed Jul  5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1
e19ad39
- update to 1.12
e19ad39
79e6a42
* Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1
53f2a12
- update to 1.11.6
938a781
79e6a42
* Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1
1edb804
- update
1edb804
f3fb374
* Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2
f3fb374
- various cleanups
f3fb374
79e6a42
* Mon Jul  4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1
f3fb374
- update using the fedora template 
f3fb374
 
f3fb374
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
f3fb374
- Initial release