diff --git a/CUnit-2.1-3.tar.bz2 b/CUnit-2.1-3.tar.bz2 new file mode 100644 index 0000000..4dfe551 --- /dev/null +++ b/CUnit-2.1-3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214 +size 514500 diff --git a/CUnit-2.1.2+svn139.tar.bz2 b/CUnit-2.1.2+svn139.tar.bz2 deleted file mode 100644 index 9120891..0000000 --- a/CUnit-2.1.2+svn139.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b24ebf9b37150f1c1056026d280b1e7bcc8cf6c20becf59370434ec1cdaa4014 -size 371046 diff --git a/cunit.changes b/cunit.changes index 83e1ef8..3ae2c9f 100644 --- a/cunit.changes +++ b/cunit.changes @@ -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 diff --git a/cunit.spec b/cunit.spec index fc469a5..00ff693 100644 --- a/cunit.spec +++ b/cunit.spec @@ -1,108 +1,118 @@ # -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. +# spec file for package cunit +# +# 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. # Pulled a new copy from svn. #Svn-Clone: https://cunit.svn.sourceforge.net/svnroot/cunit/trunk -Source: CUnit-2.1.2+svn139.tar.bz2 -Patch1: cunit-link-ncurses.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build +#Source: CUnit-2.1.2+svn139.tar.bz2 +Source0: http://download.sourceforge.net/cunit/%{_name}-%{_version}.tar.bz2 +Patch0: cunit-link-ncurses.diff +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: ncurses-devel +BuildRequires: pkg-config +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description CUnit is a unit testing framework for C. This package installs the CUnit static library, headers, and documentation files. - %package devel -Summary: CUnit development files -Group: Development/Libraries/C and C++ -Requires: ncurses-devel -Requires: libcunit1 = %{version} -Requires: pkg-config -Recommends: %{name}-doc = %{version} +Summary: CUnit development files +Group: Development/Libraries/C and C++ +Requires: %{_libname} = %{version} +Requires: ncurses-devel +Requires: pkg-config +Recommends: %{name}-doc = %{version} %description devel CUnit is a unit testing framework for C. 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 -Summary: CUnit documentation -Group: Documentation/Man -Requires: libcunit1 = %{version} +Summary: CUnit documentation +Group: Documentation/Man +Requires: %{_libname} = %{version} %description doc CUnit is a unit testing framework for C. This package installs the CUnit documentation files. -%package -n libcunit1 -Summary: CUnit shared library -Group: Development/Libraries/C and C++ +%package -n %{_libname} +Summary: CUnit shared library +Group: Development/Libraries/C and C++ -%description -n libcunit1 +%description -n %{_libname} CUnit is a unit testing framework for C. This package installs the CUnit shared library. %prep -%setup -qn cunit -%patch -P 1 -p1 +%setup -q -n %{_name}-%{_version} +%patch0 -p1 chmod -x AUTHORS ChangeLog COPYING NEWS README TODO doc/*.html doc/*.css %build autoreconf -fi %configure \ - --enable-automated \ - --enable-basic \ - --enable-console \ - --enable-curses \ - --enable-examples \ - --enable-test + --disable-static \ + --enable-automated \ + --enable-basic \ + --enable-console \ + --enable-curses \ + --enable-examples \ + --enable-test make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install -%__rm %{buildroot}%{_libdir}/*.la -%__rm -rf %{buildroot}%{_prefix}/doc +make DESTDIR=%{buildroot} install %{?_smp_mflags} +find %{buildroot} -type f -name "*.la" -delete -print +rm -rf %{buildroot}%{_prefix}/doc # arch dependent files -%__mkdir_p %{buildroot}%{_libdir}/CUnit/ -%__mv %{buildroot}%{_datadir}/CUnit/Examples/ %{buildroot}%{_libdir}/CUnit/ -%__mv %{buildroot}%{_datadir}/CUnit/Test/ %{buildroot}%{_libdir}/CUnit/ +mkdir -p %{buildroot}%{_libdir}/CUnit/ +mv %{buildroot}%{_datadir}/CUnit/Examples/ %{buildroot}%{_libdir}/CUnit/ +mv %{buildroot}%{_datadir}/CUnit/Test/ %{buildroot}%{_libdir}/CUnit/ chmod -x doc/headers/* rm doc/headers/Makefile* rm doc/headers/Jamfile* rm doc/Makefile* 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,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_libdir}/libcunit.so.1 -%{_libdir}/libcunit.so.1.0.1 +%{_libdir}/libcunit.so.* %files doc %defattr(-,root,root,-) @@ -120,8 +130,4 @@ rm doc/Jamfile* %{_libdir}/libcunit.so %{_libdir}/pkgconfig/cunit.pc -%files devel-static -%defattr(-,root,root,-) -%{_libdir}/libcunit.a - %changelog