cppunit/cppunit.spec

184 lines
6.0 KiB
RPMSpec
Raw Normal View History

Name: cppunit
2008-10-04 23:37:08 +00:00
Version: 1.12.1
Release: 17%{?dist}
Summary: C++ unit testing framework
# no license in files
License: LGPLv2+
Url: http://cppunit.sourceforge.net/
2007-12-17 08:07:46 +00:00
Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz
Patch0: cppunit-1.12.0-nolibdir.patch
2011-06-28 12:02:24 +00:00
Patch1: cppunit-msg.patch
#https://sourceforge.net/tracker/?func=detail&aid=2912630&group_id=11795&atid=311795
Patch2: cppunit-warnings-sf2912630.patch
2014-05-20 15:39:46 +00:00
Patch3: cppunit-aarch64.patch
BuildRequires: doxygen, graphviz
%description
CppUnit is the C++ port of the famous JUnit framework for unit testing.
2008-10-04 23:37:08 +00:00
Test output is in XML for automatic testing and GUI based for supervised
tests.
%package devel
Summary: Libraries and headers for cppunit development
Requires: pkgconfig, automake
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
%description doc
The cppunit-doc package contains HTML formatted API documention generated by
the popular doxygen documentation generation tool.
%prep
%setup -q
%patch0 -p1 -b .nolibdir
for file in THANKS ChangeLog NEWS; do
iconv -f latin1 -t utf8 < $file > ${file}.utf8
2008-10-04 23:37:08 +00:00
touch -c -r $file ${file}.utf8
mv ${file}.utf8 $file
done
2011-06-28 12:02:24 +00:00
%patch1 -p1 -b .nomsg
%patch2 -p1 -b .warnings-sf2912630
2014-05-20 15:39:46 +00:00
%patch3 -p1 -b .aarch64
%build
export LDFLAGS=-ldl
2008-10-04 23:37:08 +00:00
%configure --enable-doxygen --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
rm $RPM_BUILD_ROOT%{_libdir}/*.la
# remove double of doc
2008-10-04 23:37:08 +00:00
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit
# ensure that timestamp of cppunit-config is the same for all arches
2008-10-04 23:37:08 +00:00
touch -c -r cppunit-config.in.nolibdir $RPM_BUILD_ROOT%{_bindir}/cppunit-config
# clean up examples
rm -rf __dist-examples __dist-examples-dir
cp -a examples __dist-examples
make -C __dist-examples distclean
# Makefile.am files are left as documentation
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
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2016-02-12 20:36:22 +00:00
%doc AUTHORS NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
%license COPYING
%{_bindir}/DllPlugInTester
%{_libdir}/libcppunit*.so.*
%files devel
%{_bindir}/cppunit-config
%{_includedir}/cppunit
%{_libdir}/libcppunit.so
%{_datadir}/aclocal/cppunit.m4
%{_mandir}/man1/cppunit-config.1*
2006-05-21 14:40:44 +00:00
%{_libdir}/pkgconfig/cppunit.pc
%files doc
2016-02-12 20:36:54 +00:00
%license COPYING
%doc __dist-examples-dir/examples/
2008-10-04 23:37:08 +00:00
%doc doc/html
%changelog
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-04-11 14:48:14 +00:00
* Sat Apr 11 2015 David Tardon <dtardon@redhat.com> - 1.12.1-15
- rebuild for yet another C++ ABI break
* Fri Feb 20 2015 David Tardon <dtardon@redhat.com> - 1.12.1-14
- rebuild for C++ stdlib ABI change in gcc5
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-20 15:39:46 +00:00
* Tue May 20 2014 David Tardon <dtardon@redhat.com> - 1.12.1-11
- rhbz#925193 add support for aarch64
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Oct 05 2011 Caolán McNamara <caolanm@redhat.com> - 1.12.1-6
- add sf#2912630 fix for unused argument warnings
2011-06-28 12:02:24 +00:00
* Tue Jun 28 2011 Steven M. Parrish <smparrish@gmail.com> - 1.12.1-5
- Fix for bug 452340
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-10-04 23:37:08 +00:00
* Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1
- Update to 1.12.1
2008-02-19 18:03:49 +00:00
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5
- Autorebuild for GCC 4.3
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
- remove libdir reference to cppunit-config, should fix multiarch conflict
(#340951)
- fix encoding and remove windows related files in examples
- keep timestamps
* 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
* 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
- update using the fedora template
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
- Initial release