forked from pool/cppunit
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:
107
cppunit.spec
Normal file
107
cppunit.spec
Normal 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
|
||||
Reference in New Issue
Block a user