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.
Wolfgang Ulbrich 41b9519
%global branch 1.12
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
Wolfgang Ulbrich 37a3f22
Version:       %{branch}.0
raveit65 514f6cc
%if 0%{?rel_build}
raveit65 6d74742
Release:       1%{?dist}
raveit65 514f6cc
%else
03a4421
Release:       0.2%{?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 2130f65
BuildRequires: zlib-devel
raveit65 617b9f6
BuildRequires: cairo-gobject-devel
raveit65 2130f65
BuildRequires: gtk2-devel
raveit65 2130f65
BuildRequires: libexif-devel
raveit65 2130f65
BuildRequires: exempi-devel
raveit65 7cab1b9
BuildRequires: gobject-introspection-devel
raveit65 2130f65
BuildRequires: libxml2-devel
raveit65 2130f65
BuildRequires: librsvg2-devel
raveit65 2130f65
BuildRequires: mate-desktop-devel
raveit65 2130f65
BuildRequires: lcms2-devel
raveit65 2130f65
BuildRequires: pygtk2-devel
raveit65 2130f65
BuildRequires: dbus-glib-devel
raveit65 2130f65
BuildRequires: libjpeg-turbo-devel
raveit65 2130f65
BuildRequires: desktop-file-utils
raveit65 2130f65
BuildRequires: mate-common
raveit65 2130f65
raveit65 2130f65
#fix rhbz (#1008249)
raveit65 2130f65
Requires:      mate-desktop-libs
raveit65 2130f65
raveit65 2fe8d04
%if 0%{?fedora} && 0%{?fedora} > 19
raveit65 2130f65
Provides: mate-image-viewer%{?_isa} = %{version}-%{release}
raveit65 2130f65
Provides: mate-image-viewer = %{version}-%{release}
raveit65 2130f65
Obsoletes: mate-image-viewer < %{version}-%{release}
raveit65 2130f65
%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 2fe8d04
%if 0%{?fedora} && 0%{?fedora} > 19
raveit65 a6da13c
Provides: mate-image-viewer-devel%{?_isa} = %{version}-%{release}
raveit65 a6da13c
Provides: mate-image-viewer-devel = %{version}-%{release}
raveit65 a6da13c
Obsoletes: mate-image-viewer-devel < %{version}-%{release}
raveit65 2130f65
%endif
raveit65 2130f65
raveit65 2130f65
%description devel
raveit65 2130f65
Development files for eom
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%prep
raveit65 2130f65
%setup -q%{!?rel_build:n %{name}-%{commit}}
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-gtk=2.0 \
raveit65 2130f65
   --enable-python \
raveit65 2130f65
   --with-x \
raveit65 7cab1b9
   --disable-schemas-compile \
raveit65 3e1f2f6
   --enable-introspection=no
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
# remove needless gsettings convert file
raveit65 2130f65
rm -f  $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/eom.convert
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%post
raveit65 2130f65
/usr/bin/update-desktop-database &> /dev/null || :
raveit65 2130f65
/bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%postun
raveit65 2130f65
/usr/bin/update-desktop-database &> /dev/null || :
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
  /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /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
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /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/*
raveit65 5d96b40
#%{_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/
raveit65 5d96b40
#%{_datadir}/gir-1.0/*.gir
raveit65 2130f65
raveit65 2130f65
raveit65 2130f65
%changelog
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