sergiomb / rpms / nomacs

Forked from rpms/nomacs 5 years ago
Clone

Blame nomacs.spec

79be854
Name:		nomacs
9c0100e
Version:	3.8.0
9c0100e
Release:	1%{?dist}
883c617
License:	GPLv3+ and CC-BY
79be854
Url:		http://nomacs.org
42941ab
Source0:	https://github.com/nomacs/nomacs/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
883c617
# This file is CC-BY, offered by upstream as a replacement for the lena files.
883c617
Source1:	lena-replacement.jpg
79be854
Summary:	Lightweight image viewer
11bdba1
BuildRequires:	cmake, desktop-file-utils
aad7e9a
BuildRequires:	pkgconfig(Qt5Gui)
11bdba1
# qt5-qtsvg-devel
aad7e9a
BuildRequires:	pkgconfig(Qt5Svg)
aad7e9a
BuildRequires:	qt5-linguist
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
9c0100e
BuildRequires:	lcov
63fcb86
Requires:	qt5-qtsvg libicu
79be854
79be854
%description
aad7e9a
nomacs is image viewer based on Qt5 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
aad7e9a
#rm -rf 3rdparty/quazip-0.7
883c617
cp -a %{SOURCE1} ImageLounge/src/img/lena.jpg
883c617
cp -a %{SOURCE1} ImageLounge/src/img/lena-full.jpg
79be854
79be854
%build
79be854
mkdir build
79be854
pushd build
aad7e9a
# builtin quazip because of qt5
9c0100e
%cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2" -DENABLE_RAW=1 -DUSE_SYSTEM_WEBP=ON -DUSE_SYSTEM_QUAZIP=ON -DENABLE_TRANSLATIONS=ON ../ImageLounge
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
# Register as an application to be visible in the software center
Richard Hughes ecc9fb6
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
42941ab
cp ImageLounge/%{name}.appdata.xml $RPM_BUILD_ROOT%{_datadir}/appdata/
7cc6ff6
%find_lang %{name} --with-qt --without-mo
79be854
9a74119
7cc6ff6
%files -f %{name}.lang
42941ab
%license ImageLounge/Readme/[CL]*
42941ab
%doc ImageLounge/Readme/README
79be854
%{_bindir}/%{name}
972ad18
%{_libdir}/libnomac*.*
7cc6ff6
%dir %{_datadir}/%{name}/
7cc6ff6
%dir %{_datadir}/%{name}/translations/
Richard Hughes ecc9fb6
%{_datadir}/appdata/%{name}.appdata.xml
9c0100e
%{_datadir}/metainfo/%{name}.appdata.xml
79be854
%{_datadir}/applications/%{name}.desktop
972ad18
%{_datadir}/pixmaps/%{name}.svg
79be854
%{_mandir}/man1/%{name}.*
79be854
9a74119
79be854
%changelog
9c0100e
* Sun Jan 07 2018 TI_Eugene <ti.eugene@gmail.com> 3.8.0-1
9c0100e
- Version bump
9c0100e
- lcov dependency added
9c0100e
a5df496
* Sun Jan 07 2018 Sérgio Basto <sergio@serjux.com> - 3.6.1-6
a5df496
- Rebuild (opencv-3.3.1)
a5df496
b38acdd
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 3.6.1-5
b38acdd
- Rebuild for ICU 60.1
b38acdd
27f3094
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-4
27f3094
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
27f3094
cfb6aee
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-3
cfb6aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cfb6aee
Rex Dieter d537a22
* Tue May 02 2017 Rex Dieter <rdieter@fedoraproject.org> - 3.6.1-2
Rex Dieter d537a22
- rebuild (exiv2)
Rex Dieter d537a22
42941ab
* Sat Mar 25 2017 TI_Eugene <ti.eugene@gmail.com> 3.6.1-1
42941ab
- Version bump
42941ab
883c617
* Mon Mar 20 2017 Tom Callaway <spot@fedoraproject.org> - 3.4-4
883c617
- replace non-free lena files with CC-BY licensed image
883c617
476ba4c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-3
476ba4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
476ba4c
d02c731
* Tue Dec 27 2016 Jon Ciesla <limburgher@gmail.com> 3.4.0-2
d02c731
- Rebuild for new LibRaw.
d02c731
11bdba1
* Mon Jul 25 2016 TI_Eugene <ti.eugene@gmail.com> 3.4.0-1
11bdba1
- Version bump
11bdba1
fb4a183
* Sat May 21 2016 TI_Eugene <ti.eugene@gmail.com> 3.2.0-2
fb4a183
- Rawhide patch
fb4a183
972ad18
* Thu Apr 28 2016 TI_Eugene <ti.eugene@gmail.com> 3.2.0-1
972ad18
- Version bump
972ad18
ff0da1d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
ff0da1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ff0da1d
63fcb86
* Thu Jan 07 2016 TI_Eugene <ti.eugene@gmail.com> 3.0.0-3
63fcb86
- "Requires" added (qt5-qtsvg, libicu)
63fcb86
d06bc7f
* Tue Dec 29 2015 Kalev Lember <klember@redhat.com> - 3.0.0-2
d06bc7f
- Rebuilt for libwebp soname bump
d06bc7f
aad7e9a
* Fri Dec 18 2015 TI_Eugene <ti.eugene@gmail.com> 3.0.0-1
aad7e9a
- Version bump
aad7e9a
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