sergiomb / rpms / nomacs

Forked from rpms/nomacs 5 years ago
Clone

Blame nomacs.spec

79be854
Name:		nomacs
520bd13
Version:	2.4.6
d5d72c0
Release:	2%{?dist}
79be854
License:	GPLv3+
79be854
Url:		http://nomacs.org
b4e2e50
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.tar.bz2
79be854
Summary:	Lightweight image viewer
79be854
BuildRequires:	cmake, dos2unix, desktop-file-utils
9a74119
BuildRequires:	pkgconfig(QtGui) >= 4.7
9a74119
# exiv2-devel
9a74119
BuildRequires:	pkgconfig(exiv2) >= 0.20
9a74119
# opencv-devel
9a74119
BuildRequires:	pkgconfig(opencv) >= 2.1.0
9a74119
# LibRaw-devel
9a74119
BuildRequires:	pkgconfig(libraw) >= 0.12.0
9a74119
# libtiff-devel
9a74119
BuildRequires:	pkgconfig(libtiff-4)
f1a21bf
# libwebp-devel >= 0.3.1
9a74119
BuildRequires:	pkgconfig(libwebp)
9a74119
# quazip-devel >= 0.7
9a74119
BuildRequires:	quazip-devel
79be854
79be854
%description
79be854
nomacs is image viewer based on Qt4 library.
79be854
nomacs is small, fast and able to handle the most common image formats.
79be854
Additionally it is possible to synchronize multiple viewers
79be854
running on the same computer or via LAN is possible.
79be854
It allows to compare images and spot the differences
79be854
e.g. schemes of architects to show the progress).
79be854
9a74119
79be854
%prep
9a74119
%setup0 -q
79be854
dos2unix Readme/*
9a74119
rm -rf 3rdparty/libwebp
9a74119
rm -rf 3rdparty/quazip-0.7
9a74119
79be854
79be854
%build
79be854
mkdir build
79be854
pushd build
9a74119
%cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2" -DENABLE_RAW=1 -DUSE_SYSTEM_WEBP=ON -DUSE_SYSTEM_QUAZIP=ON ..
79be854
make %{?_smp_mflags}
79be854
popd
79be854
9a74119
79be854
%post
79be854
/usr/bin/update-desktop-database &> /dev/null || :
79be854
9a74119
79be854
%postun
79be854
/usr/bin/update-desktop-database &> /dev/null || :
79be854
9a74119
79be854
%install
79be854
pushd build
79be854
make DESTDIR=%{buildroot} install
79be854
popd
7cc6ff6
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
7cc6ff6
# hack - wrong lang code "als" (http://www.nomacs.org/redmine/issues/228)
7cc6ff6
rm -f translations/nomacs_als.ts
7cc6ff6
rm -f %{buildroot}/%{_datadir}/%{name}/translations/nomacs_als.qm
Richard Hughes ecc9fb6
Richard Hughes ecc9fb6
# Register as an application to be visible in the software center
Richard Hughes ecc9fb6
#
Richard Hughes ecc9fb6
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes ecc9fb6
# project, translated and installed into the right place during `make install`.
Richard Hughes ecc9fb6
#
Richard Hughes ecc9fb6
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes ecc9fb6
#
Richard Hughes ecc9fb6
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes ecc9fb6
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes ecc9fb6
Richard Hughes ecc9fb6
Richard Hughes ecc9fb6
Richard Hughes ecc9fb6
BugReportURL: http://www.nomacs.org/redmine/issues/364
Richard Hughes ecc9fb6
SentUpstream: 2014-09-22
Richard Hughes ecc9fb6
-->
Richard Hughes ecc9fb6
<application>
Richard Hughes ecc9fb6
  <id type="desktop">nomacs.desktop</id>
Richard Hughes ecc9fb6
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes ecc9fb6
  <summary>View and edit images</summary>
Richard Hughes ecc9fb6
  <description>
Richard Hughes ecc9fb6
    

Richard Hughes ecc9fb6
      Nomacs is a fast image viewer with additional image editing functionality.
Richard Hughes ecc9fb6
      When viewing images, it features fast thumbnail previews, a zoomable grid
Richard Hughes ecc9fb6
      display of thumbnails, a chromeless view, and display of metadata and
Richard Hughes ecc9fb6
      image details with a histogram.
Richard Hughes ecc9fb6
      It also has the ability to edit images, including cropping, resizing,
Richard Hughes ecc9fb6
      rotating and color correction.
Richard Hughes ecc9fb6
    

Richard Hughes ecc9fb6
  </description>
Richard Hughes ecc9fb6
  <url type="homepage">http://nomacs.org</url>
Richard Hughes ecc9fb6
  <screenshots>
Richard Hughes ecc9fb6
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/nomacs/a.png</screenshot>
Richard Hughes ecc9fb6
  </screenshots>
Richard Hughes ecc9fb6
</application>
Richard Hughes ecc9fb6
EOF
Richard Hughes ecc9fb6
7cc6ff6
%find_lang %{name} --with-qt --without-mo
79be854
9a74119
7cc6ff6
%files -f %{name}.lang
79be854
%doc Readme/[CLR]*
79be854
%{_bindir}/%{name}
7cc6ff6
%dir %{_datadir}/%{name}/
7cc6ff6
%dir %{_datadir}/%{name}/translations/
Richard Hughes ecc9fb6
%{_datadir}/appdata/%{name}.appdata.xml
79be854
%{_datadir}/applications/%{name}.desktop
79be854
%{_datadir}/pixmaps/%{name}.png
79be854
%{_mandir}/man1/%{name}.*
79be854
9a74119
79be854
%changelog
d5d72c0
* Thu Aug 20 2015 Jon Ciesla <limburgher@gmail.com> - 2.6.4-2
d5d72c0
- Rebuild for new LibRaw.
d5d72c0
520bd13
* Thu Aug 20 2015 TI_Eugene <ti.eugene@gmail.com> 2.6.4-1
520bd13
- Version bump
520bd13
Rex Dieter 16884a2
* Wed Jun 24 2015 Rex Dieter <rdieter@fedoraproject.org> - 2.4.4-3
Rex Dieter 16884a2
- rebuild (exiv2)
Rex Dieter 16884a2
bea8333
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.4-2
bea8333
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bea8333
df9ca21
* Wed Apr 15 2015 TI_Eugene <ti.eugene@gmail.com> 2.4.4-1
df9ca21
- Version bump
df9ca21
Richard Hughes ecc9fb6
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 2.4.2-3
Richard Hughes ecc9fb6
- Add an AppData file for the software center
Richard Hughes ecc9fb6
f1a21bf
* Tue Mar 03 2015 TI_Eugene <ti.eugene@gmail.com> 2.4.2-2
f1a21bf
- Version bump.
f1a21bf
9a74119
* Sun Nov 16 2014 TI_Eugene <ti.eugene@gmail.com> 2.2.0-2
9a74119
- Use system libwebp and quazip.
9a74119
e5fe3e7
* Thu Nov 13 2014 TI_Eugene <ti.eugene@gmail.com> 2.2.0-1
e5fe3e7
- Version bump.
e5fe3e7
15201d2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
15201d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
15201d2
85e0959
* Thu Jul 31 2014 TI_Eugene <ti.eugene@gmail.com> 2.0.2-1
85e0959
- Version bump.
85e0959
d17eaf6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-2
d17eaf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d17eaf6
179b9db
* Fri Feb 21 2014 TI_Eugene <ti.eugene@gmail.com> 1.6.4-1
179b9db
- Version bump.
179b9db
68ded8e
* Wed Jan 22 2014 Jon Ciesla <limburgher@gmail.com> 1.6.2-2
68ded8e
- Rebuild for new LibRaw.
68ded8e
2fb9f3b
* Fri Dec 20 2013 TI_Eugene <ti.eugene@gmail.com> 1.6.2-1
2fb9f3b
- Version bump.
2fb9f3b
Rex Dieter e13a85e
* Tue Dec 03 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.6.0.2-2
Rex Dieter e13a85e
- rebuild (exiv2)
Rex Dieter e13a85e
64df314
* Wed Oct 23 2013 TI_Eugene <ti.eugene@gmail.com> 1.6.0.2-1
64df314
- Version bump (hotfix).
64df314
a8dbe1a
* Wed Oct 16 2013 TI_Eugene <ti.eugene@gmail.com> 1.6.0-1
a8dbe1a
- Version bump.
a8dbe1a
9c0ae5e
* Mon Jul 15 2013 TI_Eugene <ti.eugene@gmail.com> 1.4.0-1
9c0ae5e
- Version bump.
9c0ae5e
- BR libtiff-devel added
9c0ae5e
b4e2e50
* Sat Jun 15 2013 TI_Eugene <ti.eugene@gmail.com> 1.2.0-1
b4e2e50
- Version bump.
7cc6ff6
- %%find_lang macro added
7cc6ff6
- _als translation removed
b4e2e50
9acdd07
* Fri May 31 2013 Jon Ciesla <limburgher@gmail.com> 1.0.2-4
9acdd07
- Rebuild for new LibRaw.
9acdd07
79be854
* Tue Apr 09 2013 TI_Eugene <ti.eugene@gmail.com> 1.0.2-3
79be854
- CXX flags - -O3 only
79be854
79be854
* Tue Apr 09 2013 TI_Eugene <ti.eugene@gmail.com> 1.0.2-2
79be854
- CXX flags added to %%cmake macro
79be854
79be854
* Sun Apr 07 2013 TI_Eugene <ti.eugene@gmail.com> 1.0.2-1
79be854
- next version
79be854
- source url fixed
79be854
- description update (removed "free", "windows", licensing)
79be854
- update-desktop-database added
79be854
79be854
* Fri Mar 29 2013 TI_Eugene <ti.eugene@gmail.com> 1.0.0-3
79be854
- BuildRequires libraries versions defined
79be854
79be854
* Fri Mar 29 2013 TI_Eugene <ti.eugene@gmail.com> 1.0.0-2
79be854
- disabled EL6/CentOS6 build (due qt < 4.7)
79be854
79be854
* Fri Mar 29 2013 TI_Eugene <ti.eugene@gmail.com> 1.0.0-1
79be854
- initial packaging for Fedora