summaryrefslogtreecommitdiff
path: root/cppunit.spec.in
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-13 23:19:37 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-13 23:19:37 +0000
commit293dbbfe8fa9d202620b997266e765d2448bec63 (patch)
treece3972da69ecec19a1c35ad407e3a5deb75c2c89 /cppunit.spec.in
parent12546b189e14b8bb061285734c8bc28346b44966 (diff)
downloadcppunit-293dbbfe8fa9d202620b997266e765d2448bec63.tar.gz
Added support for building RPMs using 'make rpm'.
Diffstat (limited to 'cppunit.spec.in')
-rw-r--r--cppunit.spec.in63
1 files changed, 63 insertions, 0 deletions
diff --git a/cppunit.spec.in b/cppunit.spec.in
new file mode 100644
index 0000000..7813313
--- /dev/null
+++ b/cppunit.spec.in
@@ -0,0 +1,63 @@
+%define RELEASE 1
+%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
+
+%define lib_name cppunit
+
+Name: @PACKAGE@
+Version: @VERSION@
+Release: %rel
+
+Summary: C++ Port of JUnit Testing Framework
+Copyright: LGPL
+Group: Development/Libraries
+Vendor: The CppUnit Project
+Packager: Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
+Url: http://cppunit.sourceforge.net/
+
+Source: ftp://download.sourceforge.net/pub/sourceforge/cppunit/%name-%version.tar.gz
+
+Prefix: %_prefix
+BuildRoot: %_tmppath/%name-%version-root
+
+%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 doc
+Summary: HTML formatted API documention for Log for C++
+Group: Development/Libraries
+Requires: %name = %version
+
+%description doc
+The %name-doc package contains HTML formatted API documention generated by
+the popular doxygen documentation generation tool.
+
+%prep
+rm -rf $RPM_BUILD_ROOT
+
+%setup
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --enable-doxygen
+
+%build
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make prefix=$RPM_BUILD_ROOT%{prefix} install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,755)
+%attr(755,root,root) %prefix/lib/lib*.so.*
+%doc AUTHORS COPYING INSTALL NEWS README THANKS ChangeLog
+%prefix/include/*
+%prefix/man/*
+%prefix/share/*
+%attr(755,root,root) %prefix/lib/lib*.so
+%attr(644,root,root) %prefix/lib/*.*a
+
+%files doc
+%doc doc/@PACKAGE@-@VERSION@/html/*