switch to new upstream

This commit is contained in:
David Tardon 2016-02-13 08:43:51 +01:00
commit b8f63c4263
6 changed files with 41 additions and 61 deletions

View file

@ -1,17 +1,14 @@
Name: cppunit
Version: 1.12.1
Release: 17%{?dist}
Version: 1.13.2
Release: 1%{?dist}
Summary: C++ unit testing framework
# no license in files
License: LGPLv2+
Url: http://cppunit.sourceforge.net/
Source: http://downloads.sourceforge.net/cppunit/cppunit-%{version}.tar.gz
Url: https://www.freedesktop.org/wiki/Software/cppunit/
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
Patch0: cppunit-1.12.0-nolibdir.patch
Patch1: cppunit-msg.patch
#https://sourceforge.net/tracker/?func=detail&aid=2912630&group_id=11795&atid=311795
Patch2: cppunit-warnings-sf2912630.patch
Patch3: cppunit-aarch64.patch
Patch1: 0001-Update-FSF-address-in-LGPL-license.patch
BuildRequires: doxygen, graphviz
@ -39,25 +36,22 @@ the popular doxygen documentation generation tool.
%prep
%setup -q
%patch0 -p1 -b .nolibdir
%patch1 -p1 -b .fsf-address
for file in THANKS ChangeLog NEWS; do
iconv -f latin1 -t utf8 < $file > ${file}.utf8
touch -c -r $file ${file}.utf8
mv ${file}.utf8 $file
done
%patch1 -p1 -b .nomsg
%patch2 -p1 -b .warnings-sf2912630
%patch3 -p1 -b .aarch64
%build
export LDFLAGS=-ldl
%configure --enable-doxygen --disable-static
%configure --enable-doxygen --disable-static --disable-silent-rules
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
rm $RPM_BUILD_ROOT%{_libdir}/*.la
# remove double of doc
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit $RPM_BUILD_ROOT%{_datadir}/%{name}/html
# ensure that timestamp of cppunit-config is the same for all arches
touch -c -r cppunit-config.in.nolibdir $RPM_BUILD_ROOT%{_bindir}/cppunit-config
@ -96,6 +90,9 @@ mv __dist-examples __dist-examples-dir/examples
%doc doc/html
%changelog
* Sat Feb 13 2016 David Tardon <dtardon@redhat.com> - 1.13.2-1
- switch to new upstream
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild