From 1ab454905e6f53dc229192ce2843d980db3ff699 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 15 2013 13:28:22 +0000 Subject: import cppunit-1.12.1-9.el7.src.rpm --- diff --git a/.cppunit.metadata b/.cppunit.metadata new file mode 100644 index 0000000..3e8b83f --- /dev/null +++ b/.cppunit.metadata @@ -0,0 +1 @@ +f1ab8986af7a1ffa6760f4bacf5622924639bf4a SOURCES/cppunit-1.12.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/cppunit-1.12.0-nolibdir.patch b/SOURCES/cppunit-1.12.0-nolibdir.patch new file mode 100644 index 0000000..4786f13 --- /dev/null +++ b/SOURCES/cppunit-1.12.0-nolibdir.patch @@ -0,0 +1,13 @@ +diff -up cppunit-1.12.0/cppunit-config.in.nolibdir cppunit-1.12.0/cppunit-config.in +--- cppunit-1.12.0/cppunit-config.in.nolibdir 2007-10-21 11:19:40.000000000 +0200 ++++ cppunit-1.12.0/cppunit-config.in 2007-10-21 11:20:01.000000000 +0200 +@@ -87,9 +87,6 @@ if test "$echo_cflags" = "yes"; then + fi + + if test "$echo_libs" = "yes"; then +- if test @libdir@ != /usr/lib ; then +- my_linker_flags="-L@libdir@" +- fi + echo ${my_linker_flags} -lcppunit @LIBADD_DL@ + fi + diff --git a/SOURCES/cppunit-msg.patch b/SOURCES/cppunit-msg.patch new file mode 100644 index 0000000..d5c1568 --- /dev/null +++ b/SOURCES/cppunit-msg.patch @@ -0,0 +1,24 @@ +--- cppunit-1.12.1/include/cppunit/Message.h 2010-10-08 14:02:26.514477964 +0200 ++++ cppunit-1.12.1/include/cppunit/Message.h 2010-10-08 14:02:15.411948098 +0200 +@@ -57,6 +57,8 @@ public: + const std::string &detail2, + const std::string &detail3 ); + ++ ~Message(); ++ + Message &operator =( const Message &other ); + + /*! \brief Returns the short description. +--- cppunit-1.12.1/src/cppunit/Message.cpp 2010-10-08 14:02:39.421768852 +0200 ++++ cppunit-1.12.1/src/cppunit/Message.cpp 2010-10-08 14:02:54.066829633 +0200 +@@ -47,6 +47,10 @@ Message::Message( const std::string &sho + addDetail( detail1, detail2, detail3 ); + } + ++Message::~Message() ++{ ++} ++ + Message & + Message::operator =( const Message &other ) + { diff --git a/SOURCES/cppunit-warnings-sf2912630.patch b/SOURCES/cppunit-warnings-sf2912630.patch new file mode 100644 index 0000000..7b0ba8a --- /dev/null +++ b/SOURCES/cppunit-warnings-sf2912630.patch @@ -0,0 +1,22 @@ +--- cppunit-1.12.1/include/cppunit/plugin/TestPlugIn.h 2007-01-12 05:54:34.000000000 +0100 ++++ cppunit-1.12.1/include/cppunit/plugin/TestPlugIn.h 2009-12-02 15:33:29.639857272 +0100 +@@ -151,9 +151,7 @@ + #include + #endif + #define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \ +- BOOL APIENTRY DllMain( HANDLE hModule, \ +- DWORD ul_reason_for_call, \ +- LPVOID lpReserved ) \ ++ BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \ + { \ + return TRUE; \ + } \ +@@ -162,7 +160,7 @@ + // Unix + #elif defined(CPPUNIT_HAVE_UNIX_DLL_LOADER) || defined(CPPUNIT_HAVE_UNIX_SHL_LOADER) + #define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \ +- int main( int argc, char *argv[] ) \ ++ int main( int, char *[] ) \ + { \ + return 0; \ + } \ diff --git a/SPECS/cppunit.spec b/SPECS/cppunit.spec new file mode 100644 index 0000000..b39bf5c --- /dev/null +++ b/SPECS/cppunit.spec @@ -0,0 +1,166 @@ +Name: cppunit +Version: 1.12.1 +Release: 9%{?dist} + +Summary: C++ unit testing framework +# no license in files +License: LGPLv2+ +Group: Development/Libraries +Url: http://cppunit.sourceforge.net/ +Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz +Patch0: cppunit-1.12.0-nolibdir.patch +Patch1: cppunit-msg.patch +#https://sourceforge.net/tracker/?func=detail&aid=2912630&group_id=11795&atid=311795 +Patch2: cppunit-warnings-sf2912630.patch + +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 +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 +Group: Documentation + +%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 + touch -c -r $file ${file}.utf8 + mv ${file}.utf8 $file +done +%patch1 -p1 -b .nomsg +%patch2 -p1 -b .warnings-sf2912630 + +%build +export LDFLAGS=-ldl +%configure --enable-doxygen --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' +rm $RPM_BUILD_ROOT%{_libdir}/*.la +# remove double of doc +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit + +# ensure that timestamp of cppunit-config is the same for all arches +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 + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ +%{_bindir}/DllPlugInTester +%{_libdir}/libcppunit*.so.* + +%files devel +%defattr(-,root,root,-) +%{_bindir}/cppunit-config +%{_includedir}/cppunit +%{_libdir}/libcppunit.so +%{_datadir}/aclocal/cppunit.m4 +%{_mandir}/man1/cppunit-config.1* +%{_libdir}/pkgconfig/cppunit.pc + +%files doc +%defattr(-,root,root,-) +%doc __dist-examples-dir/examples/ +%doc doc/html + +%changelog +* Wed Feb 13 2013 Fedora Release Engineering - 1.12.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 18 2012 Fedora Release Engineering - 1.12.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 1.12.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Oct 05 2011 Caolán McNamara - 1.12.1-6 +- add sf#2912630 fix for unused argument warnings + +* Tue Jun 28 2011 Steven M. Parrish - 1.12.1-5 +- Fix for bug 452340 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.12.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 1.12.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 1.12.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Sep 18 2008 Patrice Dumas 1.12.1-1 +- Update to 1.12.1 + +* Tue Feb 19 2008 Fedora Release Engineering - 1.12.0-5 +- Autorebuild for GCC 4.3 + +* Mon Dec 17 2007 Patrice Dumas 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 1.12.0-3 +- add rightly files to -devel (#224106) +- add necessary requires for -devel (#224106) +- ship examples + +* Sun Sep 10 2006 Patrice Dumas 1.12.0-2 +- rebuild for FC6 + +* Wed Jul 5 2006 Patrice Dumas 1.12.0-1 +- update to 1.12 + +* Sun May 21 2006 Patrice Dumas 1.11.6-1 +- update to 1.11.6 + +* Wed Dec 21 2005 Patrice Dumas 1.11.4-1 +- update + +* Mon Aug 15 2005 Tom "spot" Callaway 1.11.0-2 +- various cleanups + +* Mon Jul 4 2005 Patrice Dumas 1.11.0-1 +- update using the fedora template + +* Sat Apr 14 2001 Bastiaan Bakker +- Initial release