File diffimg.spec of Package diffimg

Name: diffimg
Summary: Simple image comparison tool
Version: 2.2.0
Release: 0
Group: Applications/Multimedia
License: GPLv2
BuildRequires: unzip
BuildRequires: dos2unix
BuildRequires: libqt4-devel
BuildRequires: qwt-devel
BuildRequires: opencv-devel

DiffImg is a simple image comparison tool which take two images with the same
size as input. Some statitics are computed and the positions where pixel differ
are displayed as a color mask.

%setup -q -n Diffimg-%{version}-src
sh ./

cd build
qmake-qt4 -recursive INSTALL_PREFIX=$RPM_BUILD_ROOT/usr %{name}.pro
%{__make} %{?_smp_mflags}

%{__rm} -rf $RPM_BUILD_ROOT
cd build
make install
# remove doc
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}
sed -i 's|%{buildroot}||' %{buildroot}%{_datadir}/applications/%{name}.desktop

%{__rm} -rf $RPM_BUILD_ROOT

%doc *.txt

* Wed Apr 15 2015 Huaren Zhong <> - 2.2.0
- Rebuild for Fedora