osc copypac from project:devel:libraries:c_c++ package:CUnit revision:1
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cunit?expand=0&rev=1
This commit is contained in:
commit
820cfc0938
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
CUnit-2.1-0-src.tar.bz2
Normal file
3
CUnit-2.1-0-src.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b98e5cefdad583f7cef7c43e93cae4a11a941dcd602790801a3f098519e3a83e
|
||||
size 420839
|
43
CUnit-2.1-pkgconfig.patch
Normal file
43
CUnit-2.1-pkgconfig.patch
Normal file
@ -0,0 +1,43 @@
|
||||
diff -uNr old-CUnit-2.1-0//configure.in CUnit-2.1-0/configure.in
|
||||
--- old-CUnit-2.1-0//configure.in 2010-03-13 13:49:43.606490462 +0100
|
||||
+++ CUnit-2.1-0/configure.in 2010-03-13 13:55:58.586740381 +0100
|
||||
@@ -239,6 +239,7 @@
|
||||
|
||||
dnl Configure Makefile set.
|
||||
AC_CONFIG_FILES( Makefile \
|
||||
+ cunit.pc \
|
||||
CUnit.spec \
|
||||
CUnit/Makefile \
|
||||
CUnit/Headers/Makefile \
|
||||
diff -uNr old-CUnit-2.1-0//cunit.pc.in CUnit-2.1-0/cunit.pc.in
|
||||
--- old-CUnit-2.1-0//cunit.pc.in 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ CUnit-2.1-0/cunit.pc.in 2010-03-13 13:51:26.421496087 +0100
|
||||
@@ -0,0 +1,9 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=@exec_prefix@
|
||||
+libdir=@libdir@
|
||||
+includedir=@includedir@
|
||||
+
|
||||
+Name: CUnit
|
||||
+Description: CUnit is a unit testing framework for C
|
||||
+Version: @VERSION@
|
||||
+Libs: -L${libdir} -lcunit -lncurses
|
||||
diff -uNr old-CUnit-2.1-0//Makefile.am CUnit-2.1-0/Makefile.am
|
||||
--- old-CUnit-2.1-0//Makefile.am 2010-03-13 13:49:43.594495287 +0100
|
||||
+++ CUnit-2.1-0/Makefile.am 2010-03-13 14:04:14.626744275 +0100
|
||||
@@ -10,6 +10,15 @@
|
||||
|
||||
SUBDIRS = ${COMPILE_DIRS}
|
||||
|
||||
+EXTRA_DIST = \
|
||||
+ cunit.pc.in \
|
||||
+ $(NULL)
|
||||
+
|
||||
+pkgconfigdir = $(libdir)/pkgconfig
|
||||
+pkgconfig_DATA = \
|
||||
+ cunit.pc \
|
||||
+ $(NULL)
|
||||
+
|
||||
distdir=${PACKAGE}-${VERSION}-${RELEASE}
|
||||
|
||||
WD=`pwd`
|
15
CUnit.changes
Normal file
15
CUnit.changes
Normal file
@ -0,0 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 13 13:19:28 UTC 2010 - andrea@opensuse.org
|
||||
|
||||
- added CUnit-2.1-pkgconfig.patch to provide cunit.pc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 3 20:56:11 UTC 2010 - andrea@opensuse.org
|
||||
|
||||
- split into 3 subpackages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 2 15:45:52 UTC 2010 - andrea@opensuse.org
|
||||
|
||||
- New package
|
||||
|
129
CUnit.spec
Normal file
129
CUnit.spec
Normal file
@ -0,0 +1,129 @@
|
||||
#
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: CUnit
|
||||
Version: 2.1
|
||||
Release: 0
|
||||
Summary: It provides C programmers a basic testing functionality
|
||||
Group: Development/Libraries/C and C++
|
||||
License: GPLv2
|
||||
Url: http://cunit.sourceforge.net/
|
||||
BuildRequires: gcc ncurses-devel
|
||||
Source0: %name-%version-0-src.tar.bz2
|
||||
Patch0: %name-2.1-pkgconfig.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
# gcc error detected is a false positive
|
||||
# Curses.c:425: warning: implicit declaration of function 'snprintf'
|
||||
# E: CUnit implicit-fortify-decl Curses.c:425
|
||||
# but file already #include <stdio.h>
|
||||
BuildRequires: -post-build-checks
|
||||
|
||||
%description
|
||||
CUnit is a unit testing framework for C.
|
||||
This package installs the CUnit static library,
|
||||
headers, and documentation files.
|
||||
|
||||
|
||||
%package devel
|
||||
License: GPL
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: gcc ncurses-devel
|
||||
Requires: libcunit1 = %version
|
||||
Requires: pkg-config
|
||||
Recommends: %name-doc = %version
|
||||
Summary: %name development files
|
||||
|
||||
%description devel
|
||||
CUnit is a unit testing framework for C.
|
||||
This package installs the CUnit static library
|
||||
and headers files.
|
||||
|
||||
%package doc
|
||||
License: GPL
|
||||
Group: Documentation/Man
|
||||
Requires: libcunit1 = %version
|
||||
Summary: %name documentation
|
||||
|
||||
%description doc
|
||||
CUnit is a unit testing framework for C.
|
||||
This package installs the CUnit
|
||||
documentation files.
|
||||
|
||||
|
||||
%package -n libcunit1
|
||||
License: GPL
|
||||
Group: Development/Libraries/C and C++
|
||||
Summary: %name shared library
|
||||
|
||||
%description -n libcunit1
|
||||
CUnit is a unit testing framework for C.
|
||||
This package installs the CUnit shared library
|
||||
YOU HAVE TO LINK TO -lncurses TOO OR BUILD WILL FAIL
|
||||
|
||||
%prep
|
||||
%setup -q -n %name-%version-0
|
||||
%patch0 -p1
|
||||
chmod -x ChangeLog README COPYING
|
||||
chmod -x doc/*.html
|
||||
chmod -x doc/*.css
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
%configure \
|
||||
--enable-automated \
|
||||
--enable-basic \
|
||||
--enable-console \
|
||||
--enable-curses \
|
||||
--enable-examples \
|
||||
--enable-test
|
||||
%__make %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
%__rm %buildroot/%_libdir/*.la
|
||||
#%__rm %buildroot/%_libdir/*.a
|
||||
%__rm -rf %buildroot/%_prefix/doc
|
||||
# arch dependet files
|
||||
%__mkdir_p %buildroot/%_libdir/%name/
|
||||
%__mv %buildroot/%_datadir/%name/Examples/ %buildroot/%_libdir/%name/
|
||||
%__mv %buildroot/%_datadir/%name/Test/ %buildroot/%_libdir/%name/
|
||||
chmod -x doc/headers/*
|
||||
rm doc/headers/Makefile*
|
||||
rm doc/headers/Jamfile*
|
||||
rm doc/Makefile*
|
||||
rm doc/Jamfile*
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -n libcunit1 -p /sbin/ldconfig
|
||||
%postun -n libcunit1 -p /sbin/ldconfig
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog README COPYING
|
||||
%doc doc/*
|
||||
%_datadir/%name
|
||||
%_mandir/man3/%name.3.gz
|
||||
|
||||
%files -n libcunit1
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libcunit.so.1
|
||||
%{_libdir}/libcunit.so.1.0.1
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%_includedir/%name
|
||||
%_libdir/%name
|
||||
%_libdir/libcunit.a
|
||||
%_libdir/libcunit.so
|
||||
%_libdir/pkgconfig/cunit.pc
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user