Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Fedora Release Engineering
4b63db698b dist-git conversion 2010-07-29 14:43:58 +00:00
Ionuț Arțăriși
9851404807 - initial CVS upload 2009-11-07 13:20:34 +00:00
924b0b7cd8 Initialize branch F-11 for unittest 2009-11-06 20:44:27 +00:00
5 changed files with 84 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
unittest-0.50-62.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: unittest
# $Id$
NAME := unittest
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
6eaa2823620c2e21fc745bd8da6a26b2 unittest-0.50-62.tar.gz

82
unittest.spec Normal file
View file

@ -0,0 +1,82 @@
%global debug_package %{nil}
%global revision 62
Name: unittest
Version: 0.50
Release: %{revision}.6%{?dist}
Summary: C++ Unit Test Framework
Group: Development/Libraries
License: BSD
URL: http://unittest.red-bean.com/
Source0: http://unittest.red-bean.com/tar/%{name}-%{version}-%{revision}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Provides: %{name}-static = %{version}-%{release}
%description
Unittest is a C++ unit test framework. Its design goals are to be simple, to
be idiomatic C++, and to follow the basic xUnit style to the extent that doing
so is compatible with the earlier goals. Its main differences from other xUnit
frameworks are that it uses constructors and destructors for setup/teardown
and that it requires you to represent tests as classes, instead of methods.
%prep
%setup -q -n %{name}-%{version}-%{revision}
# package wants to install directly into /
%{__sed} -i 's|@libdir@|%{buildroot}%{_libdir}|g' Makefile.in
%build
%configure
make %{?_smp_mflags} libdir=%{buildroot}%{_libdir}
%install
rm -rf %{buildroot}
make install prefix=%{buildroot} \
HTMLDIR=%{buildroot}%{_docdir}/%{name}-%{version} \
INCDIR=%{buildroot}%{_includedir}/%{name} \
%clean
rm -rf %{buildroot}
%check
./test/unittesttest
%files
%defattr(-,root,root,-)
%doc COPYING docs/*
%{_libdir}/libunittest.a
%{_includedir}/%{name}
%changelog
* Thu Nov 5 2009 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 0.50-62.6
- don't create an umbrella package, make only one main package instead
* Wed Nov 4 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 0.50-62.5
- use %%global instead of %%define
- comment escape doc macro
- added subpackage requires
- declare that there is no debug package
- add %%check
* Sat Oct 31 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 0.50-62.4
- use %%doc macro
* Fri Oct 2 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 0.50-62.3
- removed INSTALL file
- moved all doc files to the same dir
* Thu Oct 1 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 0.50-62.2
- don't include tests
- move html docs to the right dir
- add Provides: -static
- fixed Group:
- fixed /usr/lib problem for 64-bit systems in Makefile
* Wed Sep 30 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 0.50-62-1
- Initial release