]> git.pld-linux.org Git - packages/nomacs.git/commitdiff
new, version 2.4.4
authorElan Ruusamäe <glen@delfi.ee>
Sun, 17 May 2015 20:58:57 +0000 (23:58 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 17 May 2015 20:58:57 +0000 (23:58 +0300)
based on fedora package df9ca21

nomacs.appdata.xml [new file with mode: 0644]
nomacs.spec [new file with mode: 0644]

diff --git a/nomacs.appdata.xml b/nomacs.appdata.xml
new file mode 100644 (file)
index 0000000..d51d698
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com>-->
+<!--
+BugReportURL: http://www.nomacs.org/redmine/issues/364
+SentUpstream: 2014-09-22
+-->
+<application>
+  <id type="desktop">nomacs.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>View and edit images</summary>
+  <description>
+    <p>
+      Nomacs is a fast image viewer with additional image editing functionality.
+      When viewing images, it features fast thumbnail previews, a zoomable grid
+      display of thumbnails, a chromeless view, and display of metadata and
+      image details with a histogram.
+      It also has the ability to edit images, including cropping, resizing,
+      rotating and color correction.
+    </p>
+  </description>
+  <url type="homepage">http://nomacs.org</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/nomacs/a.png</screenshot>
+  </screenshots>
+</application>
diff --git a/nomacs.spec b/nomacs.spec
new file mode 100644 (file)
index 0000000..29d2c53
--- /dev/null
@@ -0,0 +1,90 @@
+Summary:       Lightweight image viewer
+Name:          nomacs
+Version:       2.4.4
+Release:       1
+License:       GPL v3+
+Group:         X11/Applications
+Source0:       http://downloads.sourceforge.net/nomacs/%{name}-%{version}-source.tar.bz2
+# Source0-md5: 88c1e2f9adc37bbd4c2fbbc4b7aabd37
+Source1:       nomacs.appdata.xml
+URL:           http://nomacs.org/
+BuildRequires: QtGui-devel >= 4.7
+BuildRequires: cmake
+BuildRequires: desktop-file-utils
+BuildRequires: dos2unix
+BuildRequires: exiv2-devel >= 0.20
+BuildRequires: libraw-devel >= 0.12.0
+BuildRequires: libtiff-devel
+BuildRequires: libwebp-devel >= 0.3.1
+BuildRequires: opencv-devel >= 2.1.0
+BuildRequires: quazip-devel >= 0.7
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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/*
+
+rm -r 3rdparty/libwebp
+rm -r 3rdparty/quazip-0.7
+
+%build
+install -d build
+cd build
+%cmake \
+       -DCMAKE_BUILD_TYPE=Release \
+       -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2" \
+       -DENABLE_RAW=1 \
+       -DUSE_SYSTEM_WEBP=ON \
+       -DUSE_SYSTEM_QUAZIP=ON \
+       ..
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# the "als" hack, see below
+cp translations/nomacs_{az,als}.ts
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# hack - wrong lang code "als" (http://www.nomacs.org/redmine/issues/228)
+# yes, the hack needs to be in make install, not in prep or build
+rm translations/nomacs_als.ts
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/translations/nomacs_als.qm
+
+desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+
+install -d $RPM_BUILD_ROOT%{_datadir}/appdata
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
+
+%find_lang %{name} --with-qm --without-mo
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_desktop_database
+
+%postun
+%update_desktop_database
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc Readme/[CLR]*
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/%{name}.*
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/translations
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
This page took 0.112313 seconds and 4 git commands to generate.