summaryrefslogtreecommitdiff
path: root/cppunit.spec.in
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2005-07-15 18:03:30 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2005-07-15 18:03:30 +0000
commit7bdb8b0cd7c729caebf2883a2819e7c2e3bd210a (patch)
tree212a641544475e2dbeb63bcb3694cd26588c4536 /cppunit.spec.in
parent3ece1167b80d0f6abf18077fe5bb50fce6f3d3ab (diff)
downloadcppunit-7bdb8b0cd7c729caebf2883a2819e7c2e3bd210a.tar.gz
cppunit.spec.in: Applied patch #1232555 from Patrice Dumas. This file is
use for RPM packaging.
Diffstat (limited to 'cppunit.spec.in')
-rw-r--r--cppunit.spec.in57
1 files changed, 27 insertions, 30 deletions
diff --git a/cppunit.spec.in b/cppunit.spec.in
index 328704b..08cdab6 100644
--- a/cppunit.spec.in
+++ b/cppunit.spec.in
@@ -1,23 +1,14 @@
-%define RELEASE 1
-%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
-
-%define lib_name cppunit
-
-Name: @PACKAGE@
+Name: cppunit
Version: @VERSION@
-Release: %rel
+Release: 2
Summary: C++ Port of JUnit Testing Framework
-Copyright: LGPL
+License: 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/cppunit-%version.tar.gz
-Source: ftp://download.sourceforge.net/pub/sourceforge/cppunit/%name-%version.tar.gz
-
-Prefix: %_prefix
-BuildRoot: %_tmppath/%name-%version-root
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
CppUnit is the C++ port of the famous JUnit framework for unit testing.
@@ -33,32 +24,38 @@ 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
+%setup -q
%build
-make
+%configure --enable-doxygen
+make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
-
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+make install DESTDIR=$RPM_BUILD_ROOT
+rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+rm -rf $RPM_BUILD_ROOT/%{_datadir}/cppunit
%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
-%attr(755,root,root) %prefix/bin/cppunit-config
-%prefix/include/*
-%prefix/man/*
-%prefix/share/*
-%attr(755,root,root) %prefix/lib/lib*.so
-%attr(644,root,root) %prefix/lib/*.*a
+%defattr(-,root,root,-)
+%{_bindir}/cppunit-config
+%{_bindir}/DllPlugInTester
+%{_includedir}/cppunit/*
+%{_mandir}/man1/*
+%{_datadir}/aclocal/*
+%{_libdir}/libcppunit*.so.*
+%{_libdir}/libcppunit.so
+%{_libdir}/libcppunit.a
+%doc AUTHORS COPYING INSTALL NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
%files doc
%doc doc/html/*
+
+%changelog
+* Mon Jul 4 2005 Patrice Dumas <dumas@centre-cired.fr>
+- update using the fedora template
+* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
+- Initial release