Group :: Gráficos
RPM: eog
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oldname eog2
%define ver_major 2.22
%def_enable color_management
Name: eog
Version: %ver_major.1
Release: alt1
Summary: Eye Of Gnome
License: %gpl2plus
Group: Graphics
Url: http://www.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Provides: %oldname = %version-%release
Obsoletes: %oldname < 2.14.2-alt1
%define rpm_ver 4.0.4-alt14
%define desktop_file_utils_ver 0.8
%define scrollkeeper_ver 0.3.14
PreReq: GConf2
PreReq: scrollkeeper >= %scrollkeeper_ver
Requires(post,postun): desktop-file-utils >= %desktop_file_utils_ver
BuildPreReq: rpm-build-gnome rpm-build-licenses
BuildPreReq: rpm >= %rpm_ver
BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver
# From configure.in
BuildPreReq: gnome-common
BuildPreReq: intltool >= 0.35.0
BuildPreReq: gnome-doc-utils >= 0.3.2
BuildPreReq: libgtk+2-devel >= 2.11.6
BuildPreReq: libgio-devel glib2-devel >= 2.15.3
BuildPreReq: gnome-vfs2-devel >= 2.10.0
BuildPreReq: libgnomeui-devel >= 2.6.0
BuildPreReq: libglade2-devel >= 2.3.6
BuildPreReq: libGConf-devel >= 2.5.90
BuildPreReq: libart_lgpl-devel >= 2.3.16
BuildPreReq: libgnome-desktop-devel >= 2.10.0
BuildPreReq: gnome-icon-theme >= 2.19.1
BuildPreReq: shared-mime-info >= 0.20
BuildPreReq: libexempi-devel >= 1.99.5
BuildPreReq: libexif-devel >= 0.6.14
%{?_enable_color_management:BuildPreReq: liblcms-devel}
BuildPreReq: libjpeg-devel
BuildPreReq: libdbus-glib-devel >= 0.71
# For Python bindings
BuildPreReq: python-module-pygobject-devel >= 2.11.5
BuildPreReq: python-module-pygtk-devel >= 2.9.7
BuildPreReq: python-module-pygnome-devel >= 2.18.2
BuildRequires: libXt-devel perl-XML-Parser scrollkeeper zlib-devel
%description
This is the Eye of GNOME, an image viewer program. It is meant to be
a fast and functional image viewer as well as an image cataloging
program.
%package devel
Summary: Development files for EOG viewer
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
%description devel
This package contains files necessary to develop plugins for Eye of GNOME.
%prep
%setup -q
# fix incorrect path to lcms.h
#__subst 's,<lcms\.h>,<lcms/lcms.h>,' libeog/eog-image* shell/eog-*
%build
autoreconf -fisv
%configure \
--with-libexif \
%{?_enable_color_management:--with-cms} \
--with-xmp \
--with-libjpeg \
--with-dbus \
--enable-python \
--disable-schemas-install --disable-scrollkeeper
%make_build
%install
%makeinstall
#%%gconf2_stripschemas
%find_lang --with-gnome %name
%post
%gconf2_install %name
%update_scrollkeeper
%update_desktopdb
%update_menus
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%postun
%clean_scrollkeeper
%clean_desktopdb
%clean_menus
%files -f %name.lang
%_bindir/*
%_desktopdir/*
%_datadir/%name
%_iconsdir/hicolor/*/apps/%name.*
#_datadir/gconf/locale/*
%config %gconf_schemasdir/*
%doc AUTHORS ChangeLog HACKING MAINTAINERS NEWS
%doc README THANKS TODO
%files devel
%dir %_includedir/%name-2.20
%dir %_includedir/%name-2.20/%name
%_includedir/%name-2.20/%name/*.h
%_pkgconfigdir/%name.pc
%exclude %_iconsdir/hicolor/icon-theme.cache
%changelog
…
Todas as alterações você pod ver aqui
%define ver_major 2.22
%def_enable color_management
Name: eog
Version: %ver_major.1
Release: alt1
Summary: Eye Of Gnome
License: %gpl2plus
Group: Graphics
Url: http://www.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Provides: %oldname = %version-%release
Obsoletes: %oldname < 2.14.2-alt1
%define rpm_ver 4.0.4-alt14
%define desktop_file_utils_ver 0.8
%define scrollkeeper_ver 0.3.14
PreReq: GConf2
PreReq: scrollkeeper >= %scrollkeeper_ver
Requires(post,postun): desktop-file-utils >= %desktop_file_utils_ver
BuildPreReq: rpm-build-gnome rpm-build-licenses
BuildPreReq: rpm >= %rpm_ver
BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver
# From configure.in
BuildPreReq: gnome-common
BuildPreReq: intltool >= 0.35.0
BuildPreReq: gnome-doc-utils >= 0.3.2
BuildPreReq: libgtk+2-devel >= 2.11.6
BuildPreReq: libgio-devel glib2-devel >= 2.15.3
BuildPreReq: gnome-vfs2-devel >= 2.10.0
BuildPreReq: libgnomeui-devel >= 2.6.0
BuildPreReq: libglade2-devel >= 2.3.6
BuildPreReq: libGConf-devel >= 2.5.90
BuildPreReq: libart_lgpl-devel >= 2.3.16
BuildPreReq: libgnome-desktop-devel >= 2.10.0
BuildPreReq: gnome-icon-theme >= 2.19.1
BuildPreReq: shared-mime-info >= 0.20
BuildPreReq: libexempi-devel >= 1.99.5
BuildPreReq: libexif-devel >= 0.6.14
%{?_enable_color_management:BuildPreReq: liblcms-devel}
BuildPreReq: libjpeg-devel
BuildPreReq: libdbus-glib-devel >= 0.71
# For Python bindings
BuildPreReq: python-module-pygobject-devel >= 2.11.5
BuildPreReq: python-module-pygtk-devel >= 2.9.7
BuildPreReq: python-module-pygnome-devel >= 2.18.2
BuildRequires: libXt-devel perl-XML-Parser scrollkeeper zlib-devel
%description
This is the Eye of GNOME, an image viewer program. It is meant to be
a fast and functional image viewer as well as an image cataloging
program.
%package devel
Summary: Development files for EOG viewer
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
%description devel
This package contains files necessary to develop plugins for Eye of GNOME.
%prep
%setup -q
# fix incorrect path to lcms.h
#__subst 's,<lcms\.h>,<lcms/lcms.h>,' libeog/eog-image* shell/eog-*
%build
autoreconf -fisv
%configure \
--with-libexif \
%{?_enable_color_management:--with-cms} \
--with-xmp \
--with-libjpeg \
--with-dbus \
--enable-python \
--disable-schemas-install --disable-scrollkeeper
%make_build
%install
%makeinstall
#%%gconf2_stripschemas
%find_lang --with-gnome %name
%post
%gconf2_install %name
%update_scrollkeeper
%update_desktopdb
%update_menus
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%postun
%clean_scrollkeeper
%clean_desktopdb
%clean_menus
%files -f %name.lang
%_bindir/*
%_desktopdir/*
%_datadir/%name
%_iconsdir/hicolor/*/apps/%name.*
#_datadir/gconf/locale/*
%config %gconf_schemasdir/*
%doc AUTHORS ChangeLog HACKING MAINTAINERS NEWS
%doc README THANKS TODO
%files devel
%dir %_includedir/%name-2.20
%dir %_includedir/%name-2.20/%name
%_includedir/%name-2.20/%name/*.h
%_pkgconfigdir/%name.pc
%exclude %_iconsdir/hicolor/icon-theme.cache
%changelog
…
Todas as alterações você pod ver aqui