Name: nomacs Version: 1.0.2 Release: 3%{?dist} License: GPLv3+ Url: http://nomacs.org Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Summary: Lightweight image viewer BuildRequires: cmake, dos2unix, desktop-file-utils # exiv2-devel opencv-devel LibRaw-devel BuildRequires: pkgconfig(QtGui) >= 4.7, pkgconfig(exiv2) >= 0.20, pkgconfig(opencv) >= 2.1.0, pkgconfig(libraw) >= 0.12.0 %description nomacs is image viewer based on Qt4 library. nomacs is small, fast and able to handle the most common image formats. Additionally it is possible to synchronize multiple viewers running on the same computer or via LAN is possible. It allows to compare images and spot the differences e.g. schemes of architects to show the progress). %prep %setup -q dos2unix Readme/* %build mkdir build pushd build %cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2" -DENABLE_RAW=1 .. make %{?_smp_mflags} popd %post /usr/bin/update-desktop-database &> /dev/null || : %postun /usr/bin/update-desktop-database &> /dev/null || : %install pushd build make DESTDIR=%{buildroot} install desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop popd %files %doc Readme/[CLR]* %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_mandir}/man1/%{name}.* %changelog * Tue Apr 09 2013 TI_Eugene 1.0.2-3 - CXX flags - -O3 only * Tue Apr 09 2013 TI_Eugene 1.0.2-2 - CXX flags added to %%cmake macro * Sun Apr 07 2013 TI_Eugene 1.0.2-1 - next version - source url fixed - description update (removed "free", "windows", licensing) - update-desktop-database added * Fri Mar 29 2013 TI_Eugene 1.0.0-3 - BuildRequires libraries versions defined * Fri Mar 29 2013 TI_Eugene 1.0.0-2 - disabled EL6/CentOS6 build (due qt < 4.7) * Fri Mar 29 2013 TI_Eugene 1.0.0-1 - initial packaging for Fedora