libcppunit/libcppunit.spec

107 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

%define majversion %(echo %version | cut -d. -f 1-2)
Name: libcppunit
Version: 1.13.2
Release: 1mamba
Summary: C++ Port of JUnit Testing Framework
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.freedesktop.org/wiki/Software/cppunit
Source: http://dev-www.libreoffice.org/src/cppunit-%{version}.tar.gz
#Source: http://downloads.sourceforge.net/sourceforge/cppunit/cppunit-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: bash
BuildRequires: glibc-devel
BuildRequires: gtk-doc
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: doxygen
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 devel
Summary: Devel package for CppUnit
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
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.
This package contains static libraries and header files need for development.
%package apidocs
Summary: CppUnit API documentation
Group: Documentation
Requires: gtk-doc
%description apidocs
CppUnit API documentation.
%prep
%setup -q -n cppunit-%{version}
%build
%configure \
--enable-doxygen \
--docdir=%{_docdir}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libcppunit-%{majversion}.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/DllPlugInTester
%{_bindir}/cppunit-config
%dir %{_includedir}/cppunit/
%{_includedir}/cppunit/*
%{_libdir}/libcppunit.a
%{_libdir}/libcppunit.la
%{_libdir}/libcppunit.so
%{_libdir}/pkgconfig/cppunit.pc
%{_datadir}/aclocal/cppunit.m4
%{_mandir}/man1/cppunit-config.*
%doc BUGS ChangeLog NEWS README THANKS TODO
%files apidocs
%defattr(-,root,root)
%{_datadir}/cppunit/*
%changelog
* Sat Nov 09 2013 Automatic Build System <autodist@mambasoft.it> 1.13.2-1mamba
- automatic update by autodist
* Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 1.13.1-1mamba
- update to 1.13.1
* Sat Jan 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12.1-1mamba
- automatic update by autodist
* Mon Dec 03 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12.0-1mamba
- update to 1.12.0
* Thu Jan 25 2007 Davide Madrisan <davide.madrisan@qilinux.it> 1.10.2-1qilnx
- package created by autospec