Accepting request 114845 from home:worldcitizen:rigsofrods

Build cppunit 1.12.1
Passed  the spec file through spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/114845
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cppunit?expand=0&rev=1
This commit is contained in:
Ismail Dönmez 2012-04-21 12:52:22 +00:00 committed by Git OBS Bridge
commit c92f954725
9 changed files with 281 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
baselibs.conf Normal file
View File

@ -0,0 +1,4 @@
libcppunit-1_12-0
libcppunit-devel
requires -libcppunit-<targettype>
requires "libcppunit-1_12-0-<targettype> = <version>"

3
cppunit-1.12.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e7bcc11b23f69fcfa33c3e1db2647abb664641b4e495ab5aeb1a2df221a0888
size 569848

8
cppunit-devel.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=CppUnit API
Comment=CppUnit development kit
Comment[de]=CppUnit Entwicklungspaket
Comment[hu]=CppUnit fejlesztői készlet
DocPath=/usr/share/doc/packages/cppunit-devel/index.html
X-DOC-SearchMethod=htdig

93
cppunit.changes Normal file
View File

@ -0,0 +1,93 @@
-------------------------------------------------------------------
Fri Apr 20 12:03:31 UTC 2012 - joop.boonen@opensuse.org
- Build cppunit 1.12.1
- Passed the spec file through spec-cleaner
-------------------------------------------------------------------
Thu Feb 9 02:11:29 UTC 2012 - jengelh@medozas.de
- Simply regeneration of autotools scripts
-------------------------------------------------------------------
Sun Nov 13 15:12:52 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Use %_smp_mflags for parallel building
- Add missing "make" call in %build
-------------------------------------------------------------------
Sun Nov 13 09:14:42 UTC 2011 - coolo@suse.com
- add libtool as explicit buildrequire to avoid implicit dependency from prjconf
-------------------------------------------------------------------
Fri Jun 19 10:35:46 CEST 2009 - coolo@novell.com
- disable as-needed for this package as it fails to build with it
-------------------------------------------------------------------
Sun Jul 15 08:15:03 CEST 2007 - aj@suse.de
- Use libcppunit-devel to follow lib package name scheme
-------------------------------------------------------------------
Wed Jul 4 16:03:35 CEST 2007 - adrian@suse.de
- update to version 0.12.0
- minor bugfixes
- now generated with doxygen 1.4.7 new 'tabs' style.
- rename package to follow lib package name scheme
-------------------------------------------------------------------
Sun Apr 22 16:18:49 CEST 2007 - dmueller@suse.de
- don't install devel files as executable
-------------------------------------------------------------------
Wed Jan 25 21:35:11 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Aug 12 22:27:17 CEST 2005 - dmueller@suse.de
- actually apply the quoting patch
-------------------------------------------------------------------
Tue Dec 7 18:53:06 CET 2004 - pth@suse.de
- Fix quoting in AC_DEFUN
-------------------------------------------------------------------
Tue Nov 16 17:26:22 CET 2004 - adrian@suse.de
- do not package debug dir
- translate suse help desktop file
-------------------------------------------------------------------
Thu Aug 12 12:24:36 CEST 2004 - ro@suse.de
- added libpng to neededforbuild (for doxygen)
-------------------------------------------------------------------
Mon Jul 26 09:35:31 CEST 2004 - adrian@suse.de
- remove unneeded /usr/bin/simple to solve conflicts
-------------------------------------------------------------------
Mon Jun 21 10:31:59 CEST 2004 - adrian@suse.de
- update to version 1.10.2
- add susehelp desktop file
-------------------------------------------------------------------
Sat Mar 20 21:19:34 CET 2004 - adrian@suse.de
- remove executable permissions of header files (#36337)
-------------------------------------------------------------------
Tue Jul 29 15:52:02 CEST 2003 - adrian@suse.de
- initial package of version 1.8.0

32
cppunit.diff Normal file
View File

@ -0,0 +1,32 @@
--- doc/Makefile.am
+++ doc/Makefile.am 2007/07/04 13:59:13
@@ -13,7 +13,6 @@
# However, the manpages do not appear to be tremendously useful, so
# let's not bother.
-if DOC
htmldir = $(pkgdatadir)/html
html_DATA = $(static_pages) html/index.html
@@ -28,21 +27,6 @@
dox: html/index.html
-else
-
-# We repeat the three targets in both the "if" and "else" clauses
-# of the conditional, because the generated makefile will contain
-# references to the targets (target "install" depends on target
-# "install-datahook", for example), and some make programs get upset
-# if no target exists.
-
-install-data-hook:
-uninstall-local:
-dox:
-
-endif
-
-
all-local: dox

107
cppunit.spec Normal file
View File

@ -0,0 +1,107 @@
#
# spec file for package cppunit
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define soname 1_12-1
Name: cppunit
Version: 1.12.1
Release: 0.0
Summary: C++ Port of the JUnit Testing Framework
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://sourceforge.net/projects/cppunit/
Source: cppunit-%{version}.tar.bz2
Source1: cppunit-devel.desktop
# PATCH-FIX-OPENSUSE cppunit.diff
Patch0: cppunit.diff
# PATCH-FIX-OPENSUSE cppunit_libdl.diff
Patch1: cppunit_libdl.diff
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -n libcppunit-%{soname}
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
%description -n libcppunit-%{soname}
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n cppunit-devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: libcppunit-%{soname} = %{version}
%description -n cppunit-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%prep
%setup -q -n cppunit-%{version}
%patch0
%patch1 -p1
autoreconf -fi
%build
export CXXFLAGS="%{optflags}"
%configure --enable-doxygen
make %{?_smp_mflags}
%install
%make_install
# this got also installed to %_defaultdocdir
rm -rf %{buildroot}%{_datadir}/cppunit/html/
find %{buildroot}%{_includedir} -type f | xargs chmod a-x
# install susehelp file
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
install %{SOURCE1} %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/cppunit-devel.desktop
%post -n libcppunit-%{soname} -p /sbin/ldconfig
%postun -n libcppunit-%{soname} -p /sbin/ldconfig
%files -n libcppunit-%{soname}
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/libcppunit*.so.*
%{_datadir}/cppunit
%files -n cppunit-devel
%defattr(-,root,root,755)
%doc NEWS README THANKS ChangeLog
%{_bindir}/DllPlugInTester
%{_bindir}/cppunit-config
%{_libdir}/libcppunit*.so
%{_libdir}/libcppunit*a
%{_libdir}/pkgconfig/cppunit.pc
%{_datadir}/susehelp
%{_includedir}/*
%{_mandir}/*/*
%{_datadir}/aclocal/cppunit.m4
%doc doc/html/*
%changelog

10
cppunit_libdl.diff Normal file
View File

@ -0,0 +1,10 @@
--- cppunit-1.12.0.orig/src/cppunit/Makefile.am
+++ cppunit-1.12.0/src/cppunit/Makefile.am
@@ -63,5 +63,6 @@
libcppunit_la_LDFLAGS= \
-no-undefined -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -release $(LT_RELEASE)
+ -release $(LT_RELEASE) \
+ @LIBADD_DL@