Blame SPECS/cppunit.spec

2e12d3
Name: cppunit
2e12d3
Version: 1.12.1
2e12d3
Release: 11%{?dist}
2e12d3
2e12d3
Summary: C++ unit testing framework
2e12d3
# no license in files
2e12d3
License: LGPLv2+
2e12d3
Group: Development/Libraries
2e12d3
Url: http://cppunit.sourceforge.net/
2e12d3
Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz
2e12d3
Patch0: cppunit-1.12.0-nolibdir.patch
2e12d3
Patch1: cppunit-msg.patch
2e12d3
#https://sourceforge.net/tracker/?func=detail&aid=2912630&group_id=11795&atid=311795
2e12d3
Patch2: cppunit-warnings-sf2912630.patch
2e12d3
2e12d3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2e12d3
BuildRequires: doxygen, graphviz
2e12d3
2e12d3
%description
2e12d3
CppUnit is the C++ port of the famous JUnit framework for unit testing.
2e12d3
Test output is in XML for automatic testing and GUI based for supervised 
2e12d3
tests.
2e12d3
2e12d3
%package devel
2e12d3
Summary: Libraries and headers for cppunit development
2e12d3
Group: Development/Libraries
2e12d3
Requires: pkgconfig, automake
2e12d3
Requires: %{name} = %{version}-%{release}
2e12d3
2e12d3
%description devel
2e12d3
This package contains the libraries and headers necessary for developing
2e12d3
programs that use cppunit.
2e12d3
2e12d3
%package doc
2e12d3
Summary: HTML formatted API documention for cppunit
2e12d3
Group: Documentation
2e12d3
2e12d3
%description doc
2e12d3
The cppunit-doc package contains HTML formatted API documention generated by
2e12d3
the popular doxygen documentation generation tool.
2e12d3
2e12d3
%prep
2e12d3
%setup -q
2e12d3
%patch0 -p1 -b .nolibdir
2e12d3
for file in THANKS ChangeLog NEWS; do
2e12d3
   iconv -f latin1 -t utf8 < $file > ${file}.utf8
2e12d3
   touch -c -r $file ${file}.utf8
2e12d3
   mv ${file}.utf8 $file
2e12d3
done
2e12d3
%patch1 -p1 -b .nomsg
2e12d3
%patch2 -p1 -b .warnings-sf2912630
2e12d3
2e12d3
%build
2e12d3
export LDFLAGS=-ldl
2e12d3
%configure --enable-doxygen --disable-static 
2e12d3
make %{?_smp_mflags}
2e12d3
2e12d3
%install
2e12d3
rm -rf $RPM_BUILD_ROOT
2e12d3
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
2e12d3
rm $RPM_BUILD_ROOT%{_libdir}/*.la
2e12d3
# remove double of doc
2e12d3
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit
2e12d3
2e12d3
# ensure that timestamp of cppunit-config is the same for all arches
2e12d3
touch -c -r cppunit-config.in.nolibdir $RPM_BUILD_ROOT%{_bindir}/cppunit-config
2e12d3
2e12d3
# clean up examples
2e12d3
rm -rf __dist-examples __dist-examples-dir
2e12d3
cp -a examples __dist-examples
2e12d3
make -C __dist-examples distclean
2e12d3
# Makefile.am files are left as documentation
2e12d3
find __dist-examples \( -name Makefile.in -o -name .cvsignore -o -name '*.dsw' -o -name '*.dsp' \) -exec rm {} \;
2e12d3
chmod a-x __dist-examples/qt/run.bat
2e12d3
mkdir __dist-examples-dir
2e12d3
mv __dist-examples __dist-examples-dir/examples
2e12d3
2e12d3
%clean
2e12d3
rm -rf $RPM_BUILD_ROOT
2e12d3
2e12d3
%post -p /sbin/ldconfig
2e12d3
2e12d3
%postun -p /sbin/ldconfig
2e12d3
2e12d3
%files
2e12d3
%defattr(-,root,root,-)
2e12d3
%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
2e12d3
%{_bindir}/DllPlugInTester
2e12d3
%{_libdir}/libcppunit*.so.*
2e12d3
2e12d3
%files devel
2e12d3
%defattr(-,root,root,-)
2e12d3
%{_bindir}/cppunit-config
2e12d3
%{_includedir}/cppunit
2e12d3
%{_libdir}/libcppunit.so
2e12d3
%{_datadir}/aclocal/cppunit.m4
2e12d3
%{_mandir}/man1/cppunit-config.1*
2e12d3
%{_libdir}/pkgconfig/cppunit.pc
2e12d3
2e12d3
%files doc
2e12d3
%defattr(-,root,root,-)
2e12d3
%doc __dist-examples-dir/examples/
2e12d3
%doc doc/html
2e12d3
2e12d3
%changelog
2e12d3
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.12.1-11
2e12d3
- Mass rebuild 2014-01-24
2e12d3
2e12d3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.12.1-10
2e12d3
- Mass rebuild 2013-12-27
2e12d3
2e12d3
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-9
2e12d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2e12d3
2e12d3
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-8
2e12d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2e12d3
2e12d3
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-7
2e12d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2e12d3
2e12d3
* Wed Oct 05 2011 Caolán McNamara <caolanm@redhat.com> - 1.12.1-6
2e12d3
- add sf#2912630 fix for unused argument warnings
2e12d3
2e12d3
* Tue Jun 28 2011 Steven M. Parrish <smparrish@gmail.com> - 1.12.1-5
2e12d3
- Fix for bug 452340
2e12d3
2e12d3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-4
2e12d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2e12d3
2e12d3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-3
2e12d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2e12d3
2e12d3
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-2
2e12d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2e12d3
2e12d3
* Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1
2e12d3
- Update to 1.12.1
2e12d3
2e12d3
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5
2e12d3
- Autorebuild for GCC 4.3
2e12d3
2e12d3
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
2e12d3
- remove libdir reference to cppunit-config, should fix multiarch conflict
2e12d3
  (#340951)
2e12d3
- fix encoding and remove windows related files in examples
2e12d3
- keep timestamps
2e12d3
2e12d3
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
2e12d3
- add rightly files to -devel (#224106)
2e12d3
- add necessary requires for -devel (#224106)
2e12d3
- ship examples
2e12d3
2e12d3
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
2e12d3
- rebuild for FC6
2e12d3
2e12d3
* Wed Jul  5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1
2e12d3
- update to 1.12
2e12d3
2e12d3
* Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1
2e12d3
- update to 1.11.6
2e12d3
2e12d3
* Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1
2e12d3
- update
2e12d3
2e12d3
* Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2
2e12d3
- various cleanups
2e12d3
2e12d3
* Mon Jul  4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1
2e12d3
- update using the fedora template 
2e12d3
 
2e12d3
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
2e12d3
- Initial release