- Update to release 2.1.3:

* prune the static-devel subpackage as it is pointless.
  * Various upstream fixes with no changelog.
- Cleanup with spec-cleaner to have the spec pretty

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cunit?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal 2014-08-04 08:11:13 +00:00 committed by Git OBS Bridge
parent bfe1072f0b
commit 87aeede46e
4 changed files with 76 additions and 62 deletions

BIN
CUnit-2.1-3.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Aug 4 08:03:42 UTC 2014 - tchvatal@suse.com
- Update to release 2.1.3:
* prune the static-devel subpackage as it is pointless.
* Various upstream fixes with no changelog.
- Cleanup with spec-cleaner to have the spec pretty
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 9 02:39:58 UTC 2012 - jengelh@medozas.de Thu Feb 9 02:39:58 UTC 2012 - jengelh@medozas.de

View File

@ -1,108 +1,118 @@
# #
# This file and all modifications and additions to the pristine # spec file for package cunit
# package are under the same license as the package itself. #
# Copyright (c) 2014 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/
# #
Name: cunit
Version: 2.1.2
Release: 0
Summary: It provides C programmers a basic testing functionality
Group: Development/Libraries/C and C++
License: GPL-2.0
Url: http://cunit.sourceforge.net/
BuildRequires: autoconf, automake, libtool, ncurses-devel pkg-config
%define _name CUnit
%define _version 2.1-3
%define _libname libcunit1
Name: cunit
Version: 2.1.3
Release: 0
Summary: It provides C programmers a basic testing functionality
License: GPL-2.0
Group: Development/Libraries/C and C++
Url: http://cunit.sourceforge.net/
# The 2.1.2 tarball has a lot of files missing and is therefore quite broken. # The 2.1.2 tarball has a lot of files missing and is therefore quite broken.
# Pulled a new copy from svn. # Pulled a new copy from svn.
#Svn-Clone: https://cunit.svn.sourceforge.net/svnroot/cunit/trunk #Svn-Clone: https://cunit.svn.sourceforge.net/svnroot/cunit/trunk
Source: CUnit-2.1.2+svn139.tar.bz2 #Source: CUnit-2.1.2+svn139.tar.bz2
Patch1: cunit-link-ncurses.diff Source0: http://download.sourceforge.net/cunit/%{_name}-%{_version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch0: cunit-link-ncurses.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
CUnit is a unit testing framework for C. CUnit is a unit testing framework for C.
This package installs the CUnit static library, This package installs the CUnit static library,
headers, and documentation files. headers, and documentation files.
%package devel %package devel
Summary: CUnit development files Summary: CUnit development files
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: ncurses-devel Requires: %{_libname} = %{version}
Requires: libcunit1 = %{version} Requires: ncurses-devel
Requires: pkg-config Requires: pkg-config
Recommends: %{name}-doc = %{version} Recommends: %{name}-doc = %{version}
%description devel %description devel
CUnit is a unit testing framework for C. CUnit is a unit testing framework for C.
This package installs the CUnit development files. This package installs the CUnit development files.
%package devel-static
Summary: CUnit static development files
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
%description devel-static
CUnit is a unit testing framework for C.
This package installs the CUnit static files.
%package doc %package doc
Summary: CUnit documentation Summary: CUnit documentation
Group: Documentation/Man Group: Documentation/Man
Requires: libcunit1 = %{version} Requires: %{_libname} = %{version}
%description doc %description doc
CUnit is a unit testing framework for C. CUnit is a unit testing framework for C.
This package installs the CUnit This package installs the CUnit
documentation files. documentation files.
%package -n libcunit1 %package -n %{_libname}
Summary: CUnit shared library Summary: CUnit shared library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
%description -n libcunit1 %description -n %{_libname}
CUnit is a unit testing framework for C. CUnit is a unit testing framework for C.
This package installs the CUnit shared library. This package installs the CUnit shared library.
%prep %prep
%setup -qn cunit %setup -q -n %{_name}-%{_version}
%patch -P 1 -p1 %patch0 -p1
chmod -x AUTHORS ChangeLog COPYING NEWS README TODO doc/*.html doc/*.css chmod -x AUTHORS ChangeLog COPYING NEWS README TODO doc/*.html doc/*.css
%build %build
autoreconf -fi autoreconf -fi
%configure \ %configure \
--enable-automated \ --disable-static \
--enable-basic \ --enable-automated \
--enable-console \ --enable-basic \
--enable-curses \ --enable-console \
--enable-examples \ --enable-curses \
--enable-test --enable-examples \
--enable-test
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install %{?_smp_mflags}
%__rm %{buildroot}%{_libdir}/*.la find %{buildroot} -type f -name "*.la" -delete -print
%__rm -rf %{buildroot}%{_prefix}/doc rm -rf %{buildroot}%{_prefix}/doc
# arch dependent files # arch dependent files
%__mkdir_p %{buildroot}%{_libdir}/CUnit/ mkdir -p %{buildroot}%{_libdir}/CUnit/
%__mv %{buildroot}%{_datadir}/CUnit/Examples/ %{buildroot}%{_libdir}/CUnit/ mv %{buildroot}%{_datadir}/CUnit/Examples/ %{buildroot}%{_libdir}/CUnit/
%__mv %{buildroot}%{_datadir}/CUnit/Test/ %{buildroot}%{_libdir}/CUnit/ mv %{buildroot}%{_datadir}/CUnit/Test/ %{buildroot}%{_libdir}/CUnit/
chmod -x doc/headers/* chmod -x doc/headers/*
rm doc/headers/Makefile* rm doc/headers/Makefile*
rm doc/headers/Jamfile* rm doc/headers/Jamfile*
rm doc/Makefile* rm doc/Makefile*
rm doc/Jamfile* rm doc/Jamfile*
%post -n libcunit1 -p /sbin/ldconfig %post -n %{_libname} -p /sbin/ldconfig
%postun -n libcunit1 -p /sbin/ldconfig %postun -n %{_libname} -p /sbin/ldconfig
%files -n libcunit1 %files -n %{_libname}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO %doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_libdir}/libcunit.so.1 %{_libdir}/libcunit.so.*
%{_libdir}/libcunit.so.1.0.1
%files doc %files doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -120,8 +130,4 @@ rm doc/Jamfile*
%{_libdir}/libcunit.so %{_libdir}/libcunit.so
%{_libdir}/pkgconfig/cunit.pc %{_libdir}/pkgconfig/cunit.pc
%files devel-static
%defattr(-,root,root,-)
%{_libdir}/libcunit.a
%changelog %changelog