From d776c54be3086ec35700901dc6001798d92b3f5a Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 4 Dec 2007 17:47:22 +0000 Subject: [PATCH 1/6] Initialize branch EL-5 for cppunit --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..42f697a --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-5 From b8354364a1e1731400b61d447cd76abc2e1e5c59 Mon Sep 17 00:00:00 2001 From: pertusus Date: Mon, 17 Dec 2007 19:55:57 +0000 Subject: [PATCH 2/6] sync with devel --- cppunit.spec | 61 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/cppunit.spec b/cppunit.spec index 472bc61..dbabbf7 100644 --- a/cppunit.spec +++ b/cppunit.spec @@ -1,12 +1,14 @@ Name: cppunit Version: 1.12.0 -Release: 2%{?dist} +Release: 4%{?dist} Summary: C++ unit testing framework -License: LGPL +# no license in files +License: LGPLv2+ Group: Development/Libraries Url: http://cppunit.sourceforge.net/ -Source: http://download.sf.net/cppunit/cppunit-%{version}.tar.gz +Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz +Patch0: cppunit-1.12.0-nolibdir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: doxygen, graphviz @@ -18,6 +20,7 @@ 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 @@ -27,7 +30,6 @@ programs that use cppunit. %package doc Summary: HTML formatted API documention for cppunit Group: Documentation -Requires: %{name} = %{version}-%{release} %description doc The cppunit-doc package contains HTML formatted API documention generated by @@ -35,17 +37,37 @@ 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 -r $file ${file}.utf8 + mv ${file}.utf8 $file +done %build -%configure --enable-doxygen +export LDFLAGS=-ldl +%configure --enable-doxygen --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la +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}/cppunit +rm -rf $RPM_BUILD_ROOT%{_datadir}/cppunit + +# ensure that timestamp of cppunit-config is the same for all arches +touch -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 @@ -56,25 +78,36 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%{_bindir}/DllPlugInTester -%{_mandir}/man1/* -%{_datadir}/aclocal/* -%{_libdir}/libcppunit*.so.* %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.a %{_libdir}/libcppunit.so +%{_datadir}/aclocal/cppunit.m4 +%{_mandir}/man1/cppunit-config.1* %{_libdir}/pkgconfig/cppunit.pc %files doc %defattr(-,root,root,-) -%doc doc/html/* +%doc __dist-examples-dir/examples/ +%doc doc/html/ %changelog +* 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 From 9a1adf41cd2f5cdaf836b5ea89bf6576865e098c Mon Sep 17 00:00:00 2001 From: pertusus Date: Mon, 17 Dec 2007 21:15:09 +0000 Subject: [PATCH 3/6] add the nolibdir patch --- cppunit-1.12.0-nolibdir.patch | 13 +++++++++++++ cppunit.spec | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 cppunit-1.12.0-nolibdir.patch diff --git a/cppunit-1.12.0-nolibdir.patch b/cppunit-1.12.0-nolibdir.patch new file mode 100644 index 0000000..4786f13 --- /dev/null +++ b/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/cppunit.spec b/cppunit.spec index dbabbf7..851938f 100644 --- a/cppunit.spec +++ b/cppunit.spec @@ -1,6 +1,6 @@ Name: cppunit Version: 1.12.0 -Release: 4%{?dist} +Release: 4%{?dist}.1 Summary: C++ unit testing framework # no license in files @@ -97,7 +97,7 @@ rm -rf $RPM_BUILD_ROOT %doc doc/html/ %changelog -* Mon Dec 17 2007 Patrice Dumas 1.12.0-4 +* Mon Dec 17 2007 Patrice Dumas 1.12.0-4.1 - remove libdir reference to cppunit-config, should fix multiarch conflict (#340951) - fix encoding and remove windows related files in examples From e1ad7e39587e1eb184f63e55552fb15db6adf35c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:33:51 +0000 Subject: [PATCH 4/6] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bae13b1..8c70442 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := cppunit SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 8337845c9be174077734006833110289f6cfe950 Mon Sep 17 00:00:00 2001 From: pertusus Date: Sat, 1 May 2010 14:41:10 +0000 Subject: [PATCH 5/6] add nobranch file --- nobranch | 1 + 1 file changed, 1 insertion(+) create mode 100644 nobranch diff --git a/nobranch b/nobranch new file mode 100644 index 0000000..336a1a8 --- /dev/null +++ b/nobranch @@ -0,0 +1 @@ +Not maintaining packages in epel-6 for now From 36edf4b0e6847b9e3172eac79dcac749957938a8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 12:15:28 +0000 Subject: [PATCH 6/6] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 8c70442..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: cppunit -# $Id$ -NAME := cppunit -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 42f697a..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-5