remove cruft

This commit is contained in:
David Tardon 2016-02-12 21:34:04 +01:00
parent d477b49a62
commit 9f0aaab9f5

View File

@ -5,7 +5,6 @@ Release: 17%{?dist}
Summary: C++ unit testing framework
# no license in files
License: LGPLv2+
Group: Development/Libraries
Url: http://cppunit.sourceforge.net/
Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz
Patch0: cppunit-1.12.0-nolibdir.patch
@ -14,7 +13,6 @@ Patch1: cppunit-msg.patch
Patch2: cppunit-warnings-sf2912630.patch
Patch3: cppunit-aarch64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: doxygen, graphviz
%description
@ -24,7 +22,6 @@ tests.
%package devel
Summary: Libraries and headers for cppunit development
Group: Development/Libraries
Requires: pkgconfig, automake
Requires: %{name} = %{version}-%{release}
@ -34,7 +31,6 @@ programs that use cppunit.
%package doc
Summary: HTML formatted API documention for cppunit
Group: Documentation
%description doc
The cppunit-doc package contains HTML formatted API documention generated by
@ -58,7 +54,6 @@ export LDFLAGS=-ldl
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
rm $RPM_BUILD_ROOT%{_libdir}/*.la
# remove double of doc
@ -77,21 +72,16 @@ chmod a-x __dist-examples/qt/run.bat
mkdir __dist-examples-dir
mv __dist-examples __dist-examples-dir/examples
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
%{_bindir}/DllPlugInTester
%{_libdir}/libcppunit*.so.*
%files devel
%defattr(-,root,root,-)
%{_bindir}/cppunit-config
%{_includedir}/cppunit
%{_libdir}/libcppunit.so
@ -100,7 +90,6 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/cppunit.pc
%files doc
%defattr(-,root,root,-)
%doc __dist-examples-dir/examples/
%doc doc/html