raveit65 2130f65
# Conditional for release and snapshot builds. Uncomment for release-builds.
raveit65 2130f65
%global rel_build 1
raveit65 2130f65
raveit65 2130f65
# This is needed, because src-url contains branched part of versioning-scheme.
raveit65 aa8f2b2
%global branch 1.20
raveit65 2130f65
raveit65 2130f65
# Settings used for build from snapshots.
raveit65 2130f65
%{!?rel_build:%global commit 7ba7e03f4d5e2ecd3c77f9d9394521b7608ca05f}
raveit65 2130f65
%{!?rel_build:%global commit_date 20131212}
raveit65 2130f65
%{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})}
raveit65 2130f65
%{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}}
raveit65 2130f65
%{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}}
raveit65 2130f65
%{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz}
raveit65 2130f65
raveit65 2130f65
Name:          eom
raveit65 aa8f2b2
Version:       %{branch}.0
raveit65 514f6cc
%if 0%{?rel_build}
raveit65 aa8f2b2
Release:       1%{?dist}
raveit65 514f6cc
%else
635f8b9
Release:       0.6%{?git_rel}%{?dist}
raveit65 514f6cc
%endif
raveit65 2130f65
Summary:       Eye of MATE image viewer
raveit65 2130f65
License:       GPLv2+ and LGPLv2+ 
raveit65 2130f65
URL:           http://mate-desktop.org 
raveit65 2130f65
raveit65 2130f65
# for downloading the tarball use 'spectool -g -R eom.spec'
raveit65 2130f65
# Source for release-builds.
raveit65 2130f65
%{?rel_build:Source0:     http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz}
raveit65 2130f65
# Source for snapshot-builds.
raveit65 2130f65
%{!?rel_build:Source0:    http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}}
raveit65 2130f65
raveit65 53ea465
BuildRequires: mate-common
raveit65 2130f65
BuildRequires: zlib-devel
raveit65 7cab1b9
BuildRequires: gobject-introspection-devel
raveit65 53ea465
BuildRequires: libjpeg-turbo-devel
raveit65 570ae9a
BuildRequires: libpeas-devel
raveit65 2130f65
BuildRequires: libxml2-devel
raveit65 53ea465
BuildRequires: gtk3-devel
raveit65 2130f65
BuildRequires: mate-desktop-devel
raveit65 53ea465
BuildRequires: libexif-devel
raveit65 53ea465
BuildRequires: exempi-devel
raveit65 53ea465
BuildRequires: librsvg2-devel
raveit65 2130f65
BuildRequires: lcms2-devel
raveit65 2130f65
BuildRequires: dbus-glib-devel
raveit65 2130f65
BuildRequires: desktop-file-utils
raveit65 2130f65
raveit65 2130f65
#fix rhbz (#1008249)
raveit65 2130f65
Requires:      mate-desktop-libs
raveit65 f1d45a6
# libpeas isn't splited in rhel7
raveit65 f1d45a6
%if 0%{?fedora}
raveit65 fdadbd0
Requires:      libpeas-loader-python
raveit65 f1d45a6
%endif
raveit65 2130f65
raveit65 2130f65
%description
raveit65 2130f65
The Eye of MATE (eom) is the official image viewer for the
raveit65 2130f65
MATE desktop. It can view single image files in a variety of formats, as
raveit65 2130f65
well as large image collections.
raveit65 2130f65
Eye of Mate is extensible through a plugin system.
raveit65 2130f65
raveit65 2130f65
%package devel
raveit65 2130f65
Summary:  Support for developing plugins for the eom image viewer
raveit65 2130f65
Group:    Development/Libraries
raveit65 2130f65
Requires: %{name}%{?_isa} = %{version}-%{release}
raveit65 2130f65
raveit65 2130f65
%description devel
raveit65 2130f65
Development files for eom
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%prep
raveit65 aa8f2b2
%if 0%{?rel_build}
raveit65 aa8f2b2
%autosetup -p1
raveit65 aa8f2b2
%else
raveit65 aa8f2b2
%autosetup -n %{name}-%{commit} -p1
raveit65 aa8f2b2
%endif
raveit65 ca899ae
raveit65 514f6cc
%if 0%{?rel_build}
raveit65 2130f65
#NOCONFIGURE=1 ./autogen.sh
raveit65 514f6cc
%else # 0%{?rel_build}
raveit65 514f6cc
# needed for git snapshots
raveit65 514f6cc
NOCONFIGURE=1 ./autogen.sh
raveit65 514f6cc
%endif # 0%{?rel_build}
raveit65 2130f65
raveit65 2130f65
%build
raveit65 2130f65
%configure \
raveit65 2130f65
   --with-x \
raveit65 7cab1b9
   --disable-schemas-compile \
Wolfgang Ulbrich 82eee6e
   --enable-introspection=yes
raveit65 2130f65
           
raveit65 2130f65
make %{?_smp_mflags} V=1
raveit65 2130f65
raveit65 2130f65
%install
raveit65 2130f65
%{make_install}
raveit65 2130f65
raveit65 2130f65
desktop-file-install                               \
raveit65 2130f65
  --delete-original                                \
raveit65 2130f65
  --dir $RPM_BUILD_ROOT%{_datadir}/applications    \
raveit65 2130f65
$RPM_BUILD_ROOT%{_datadir}/applications/eom.desktop
raveit65 2130f65
raveit65 2130f65
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
raveit65 2130f65
raveit65 2130f65
%find_lang %{name} --with-gnome --all-name
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%post
raveit65 2130f65
/bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
raveit65 2130f65
raveit65 2130f65
%postun
raveit65 2130f65
if [ $1 -eq 0 ]; then
raveit65 2130f65
  /bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
raveit65 2130f65
  /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
raveit65 2130f65
fi
raveit65 2130f65
raveit65 2130f65
%posttrans
raveit65 2130f65
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%files -f %{name}.lang
raveit65 2130f65
%doc AUTHORS COPYING NEWS README
raveit65 2130f65
%{_mandir}/man1/*
raveit65 2130f65
%{_bindir}/eom
raveit65 2130f65
%dir %{_libdir}/eom
raveit65 2130f65
%dir %{_libdir}/eom/plugins
raveit65 2130f65
%{_libdir}/eom/plugins/*
Wolfgang Ulbrich 82eee6e
%{_libdir}/girepository-1.0/Eom-1.0.typelib
raveit65 2130f65
%{_datadir}/applications/eom.desktop
raveit65 2130f65
%{_datadir}/eom/
raveit65 2130f65
%{_datadir}/icons/hicolor/*
raveit65 2130f65
%{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml
raveit65 4595bfa
%{_datadir}/glib-2.0/schemas/org.mate.eom.enums.xml
raveit65 7cab1b9
%{_datadir}/appdata/eom.appdata.xml
raveit65 2130f65
raveit65 2130f65
%files devel
raveit65 2130f65
%{_libdir}/pkgconfig/eom.pc
raveit65 2130f65
%dir %{_includedir}/eom-2.20
raveit65 2130f65
%dir %{_includedir}/eom-2.20/eom
raveit65 2130f65
%{_includedir}/eom-2.20/eom/*.h
raveit65 2130f65
%{_datadir}/gtk-doc/html/eom/
Wolfgang Ulbrich 82eee6e
%{_datadir}/gir-1.0/*.gir
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%changelog
raveit65 aa8f2b2
* Sat Feb 10 2018 Wolfgang Ulbrich <fedora@raveit.de> - 1.20.0-1
raveit65 aa8f2b2
- update to 1.20 release
raveit65 aa8f2b2
- drop desktop-database rpm scriptlet
raveit65 aa8f2b2
- drop GSettings Schema rpm scriptlet
raveit65 aa8f2b2
- switch to using autosetup
raveit65 aa8f2b2
635f8b9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.1-2
635f8b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
635f8b9
raveit65 dd4e3be
* Sat Oct 14 2017 Wolfgang Ulbrich <fedora@raveit.de> - 1.19.1-1
472d951
- update to 1.19.1
472d951
472d951
* Wed Aug 09 2017 Wolfgang Ulbrich <fedora@raveit.de> - 1.19.0-4
5d25f19
- remove virtual provides
5d25f19
95d0045
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-3
95d0045
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
95d0045
59f8a48
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-2
59f8a48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
59f8a48
472d951
* Wed May 10 2017 Wolfgang Ulbrich <fedora@raveit.de> - 1.19.0-1
1be31c7
- update to 1.19.0 release
1be31c7
472d951
* Mon May 08 2017 Wolfgang Ulbrich <fedora@raveit.de> - 1.18.2-1
60ec8e8
- update to 1.18.2
60ec8e8
472d951
* Wed Apr 05 2017 Wolfgang Ulbrich <fedora@raveit.de> - 1.18.1-1
188fa02
- update to 1.18.1
188fa02
472d951
* Tue Mar 14 2017 Wolfgang Ulbrich <fedora@raveit.de> - 1.18.0-1
328df2e
- update to 1.18.0 release
328df2e
raveit65 f1d45a6
* Wed Feb 08 2017 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.17.2-2
raveit65 f1d45a6
- use BR libpeas-loader-python only for fedora
raveit65 f1d45a6
raveit65 fdadbd0
* Mon Jan 09 2017 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.17.2-1
raveit65 fdadbd0
- update to 1.17.2
raveit65 fdadbd0
- add BR libpeas-loader-python
raveit65 fdadbd0
- fix running in wayland session
raveit65 fdadbd0
raveit65 570ae9a
* Mon Dec 12 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.17.1-1
raveit65 570ae9a
- update to 1.17.1 release
raveit65 570ae9a
raveit65 aaef2cb
* Tue Dec 06 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.17.0-1
raveit65 aaef2cb
- update 1.17.0 release
raveit65 aaef2cb
raveit65 dff975b
* Thu Sep 22 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.16.0-1
raveit65 dff975b
- update to 1.16.0 release
raveit65 dff975b
raveit65 6149f10
* Wed Sep 07 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.15.1-1
raveit65 6149f10
- update to 1.15.1 release
raveit65 6149f10
raveit65 53ea465
* Thu Jun 09 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.15.0-1
raveit65 53ea465
- update to 1.15.0 release
raveit65 53ea465
- switch to gtk+3
raveit65 53ea465
raveit65 53ff9c2
* Sat May 21 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.14.1-1
raveit65 53ff9c2
- update to 1.14.1 release
raveit65 53ff9c2
raveit65 7794e48
* Wed Apr 06 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.14.0-1
raveit65 7794e48
- update to 1.14.0 release
raveit65 7794e48
Wolfgang Ulbrich 160a2a6
* Mon Feb 22 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.13.1-1
Wolfgang Ulbrich 160a2a6
- update to 1.13.1 release
Wolfgang Ulbrich 160a2a6
Wolfgang Ulbrich b55c853
* Sun Feb 07 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.13.0-1
Wolfgang Ulbrich b55c853
- update to 1.13.0 release
Wolfgang Ulbrich b55c853
3a85b2c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
3a85b2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3a85b2c
Wolfgang Ulbrich 82eee6e
* Mon Dec 14 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.12.1-1
Wolfgang Ulbrich 82eee6e
- update to 1.12.1 release
Wolfgang Ulbrich 82eee6e
- fix gir compilation
Wolfgang Ulbrich 82eee6e
Wolfgang Ulbrich 41b9519
* Fri Nov 06 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.12.0-1
Wolfgang Ulbrich 41b9519
- update to 1.12.0 release
Wolfgang Ulbrich 41b9519
Wolfgang Ulbrich 37a3f22
* Thu Oct 22 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.11.0-1
Wolfgang Ulbrich 37a3f22
- update to 1.11.0 release
Wolfgang Ulbrich 37a3f22
raveit65 85a6923
* Thu Oct 08 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.10.5-1
raveit65 85a6923
- update to 1.10.5 release
raveit65 85a6923
raveit65 6d74742
* Tue Jul 14 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.10.3.1
raveit65 6d74742
- update to 1.10.3 release
raveit65 1f1df08
- remove upstreamed patches
raveit65 6d74742
raveit65 93d29b8
* Sat Jun 27 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.10.2-2
raveit65 93d29b8
- fix rhbz (#1230244)
raveit65 93d29b8
raveit65 9d497f6
* Wed Jun 17 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.10.2-1
raveit65 9d497f6
- update to 1.10.2 release
raveit65 9d497f6
03a4421
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-3
03a4421
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
03a4421
raveit65 ca899ae
* Mon Jun 15 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.10.1.2
raveit65 ca899ae
- fix broken translations in gsettings key
raveit65 ca899ae
- fix issue in finen and korean laguages
raveit65 ca899ae
- fix build with --strict option
raveit65 ca899ae
- fix a eom-critical warning
raveit65 ca899ae
raveit65 514f6cc
* Fri Jun 12 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.10.1.1
raveit65 514f6cc
- update to 1.10.1 release
raveit65 514f6cc
raveit65 2f327e6
* Tue May 05 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.10.0-1
raveit65 2f327e6
- update to 1.10.0 release
raveit65 02748f3
- fix glib-compile-schemas
raveit65 2f327e6
raveit65 617b9f6
* Sun Apr 05 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.9.90-1
raveit65 617b9f6
- update to 1.9.90 release
raveit65 617b9f6
- add BR cairo-gobject-devel
raveit65 3e1f2f6
- disable introspection build temporarily
raveit65 617b9f6
raveit65 1cda192
* Thu Jan 22 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.9.1-1
raveit65 1cda192
- update to 1.9.1 release
raveit65 1cda192
- enable inrospection build
raveit65 1cda192
raveit65 906a66f
* Sun Oct 26 2014 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.9.0-1
raveit65 906a66f
- update to 1.9.0
raveit65 906a66f
- support gnome-software
raveit65 906a66f
raveit65 67685a9
* Tue Sep 30 2014 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.8.1-1
raveit65 67685a9
- update to 1.8.1 release
raveit65 2fe8d04
- fix obsoletes/provides
raveit65 67685a9
ea4acb6
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
ea4acb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ea4acb6
raveit65 a6da13c
* Fri Jul 18 2014 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.8.0.3
raveit65 a6da13c
- fix obsoletes/provides for -devel subpackage
raveit65 a6da13c
f5b157e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
f5b157e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f5b157e
Dan Mashal 7781caf
* Wed Mar 05 2014 Dan Mashal <dan.mashal@fedoraproject.org> - 1.8.0-1
Dan Mashal 7781caf
- Update to 1.8.0
Dan Mashal 7781caf
raveit65 0f90e95
* Wed Feb 19 2014 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.7.90-1
raveit65 0f90e95
- update to 1.7.90
raveit65 0f90e95
raveit65 2130f65
* Thu Feb 13 2014 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.7.0-1
raveit65 2130f65
- update to 1.7.0
raveit65 2130f65
- add --with-x configure flag
raveit65 2130f65
- use -devel subpackage for release builds
raveit65 2130f65
raveit65 2130f65
* Wed Dec 18 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.7.0-0.1.git20131212.7ba7e03
raveit65 2130f65
- rename mate-image-viewer to eom
raveit65 2130f65
- use latest git snapshot
raveit65 2130f65
- make maintainers life easier and use better git snapshot usage, thanks to Björn Esser
raveit65 2130f65
- use --with-gnome --all-name for find locale
raveit65 2130f65
raveit65 2130f65
* Fri Dec 06 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.7.0-1
raveit65 2130f65
- Update to 1.7.0 from mate-desktop git
raveit65 2130f65
raveit65 2130f65
* Mon Sep 16 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.1-2
raveit65 2130f65
- add mate-desktop-libs runtime require, fix rhbz (#1008249)
raveit65 2130f65
- remove gsettings-desktop-schemas BR and runtime require
raveit65 2130f65
- add BR pkgconfig(zlib)
raveit65 2130f65
- cleanup BRs
raveit65 2130f65
- update descriptions
raveit65 2130f65
- use modern make install macro
raveit65 2130f65
- remove needless check for "*.a" files
raveit65 2130f65
- remove needless --with-gnome from find locale
raveit65 2130f65
- remove needless 'save space by linking identical images in translated docs'
raveit65 2130f65
- remove needless gsettings convert file
raveit65 2130f65
- fix rpm scriptlets
raveit65 2130f65
- add omf directory
raveit65 2130f65
- own directories
raveit65 2130f65
- add python-libdir patch
raveit65 2130f65
raveit65 2130f65
* Mon Jul 29 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.6.1-1
raveit65 2130f65
- Update to latest 1.6.1 stable release.
raveit65 2130f65
raveit65 2130f65
* Wed Apr 03 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.6.0-1
raveit65 2130f65
- Update to latest 1.6.0 stable release.
raveit65 2130f65
raveit65 2130f65
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-4
raveit65 2130f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
raveit65 2130f65
raveit65 2130f65
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.5.0-3
raveit65 2130f65
- rebuild due to "jpeg8-ABI" feature drop
raveit65 2130f65
raveit65 2130f65
* Tue Nov 06 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.5.0-2
raveit65 2130f65
- Fix scriptlet mistake
raveit65 2130f65
raveit65 2130f65
* Mon Nov 05 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.5.0-1
raveit65 2130f65
- Initial build
raveit65 2130f65