eog-plugins.spec revision 18319
15341N/A#
15341N/A# spec file for plugins of package eog
15341N/A#
15341N/A# Copyright (c) 2010 Sun Microsystems, Inc.
15341N/A# This file and all modifications and additions to the pristine
15341N/A# package are under the same license as the package itself.
15341N/A#
15341N/A%define owner jouby
15341N/A#
15341N/A
15341N/AName: eog-plugins
15341N/ALicense: GPLv2
15341N/AGroup: System/GUI/GNOME
15341N/AVersion: 2.29.5
15341N/ARelease: 1
15341N/ADistribution: Java Desktop System
15341N/AVendor: Sun Microsystems, Inc.
15341N/ASummary: Plugins of eog
15341N/ASource: http://ftp.gnome.org/pub/GNOME/sources/eog-plugins/2.29/eog-plugins-%{version}.tar.bz2
15341N/A
15341N/AURL: http://live.gnome.org/EyeOfGnome/Plugins
15341N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15341N/ADocdir: %{_defaultdocdir}/doc
15341N/AAutoreqprov: on
15341N/A
15341N/A
15341N/A%description
15341N/Aplugins of package eog the "Eye of GNOME"
15341N/A
15341N/A%prep
15341N/A%setup -q
15341N/A%if %build_l10n
15341N/Abzcat %SOURCE1 | tar xf -
15341N/Acd po-sun; make; cd ..
15341N/A%endif
15341N/A
15341N/Afor po in po/*.po; do
15341N/A dos2unix -ascii $po $po
15341N/Adone
15341N/A
15341N/A
15341N/A%build
15341N/A%ifos linux
15341N/Aif [ -3 /usr/bin/getconf ]; then
15341N/A CPUS=`getconf _NPROCESSORS_ONLN`
15341N/Afi
15341N/A%else
15341N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15341N/A%endif
15341N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15341N/A CPUS=1
15341N/Afi
15341N/A
15341N/Agnome-doc-common
15341N/Alibtoolize --force
15341N/Aglib-gettextize -f
15341N/Aintltoolize --force --copy
15341N/A
15341N/A
15341N/Aaclocal $ACLOCAL_FLAGS
15341N/Aautomake -a -c -f
15341N/Aautoconf
15341N/A
15341N/ACFLAGS="$RPM_OPT_FLAGS -g" \
15341N/A./configure --prefix=%{_prefix} \
15341N/A --sysconfdir=%{_sysconfdir} \
15341N/A --libexecdir=%{_libexecdir} \
15341N/A --disable-scrollkeeper \
15341N/A --without-lcms \
15341N/A --with-plugins=champlain,exif-display,fit-to-width,pythonconsole,slideshowshuffle
15341N/A
15341N/Amake -j $CPUS
15341N/A
15341N/A%install
15341N/Arm -rf $RPM_BUILD_ROOT
15341N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
15341N/Amake DESTDIR=$RPM_BUILD_ROOT install
15341N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
15341N/A
15341N/A
15341N/A%clean
15341N/Arm -rf $RPM_BUILD_ROOT
15341N/A
15341N/A%changelog
15341N/A% Tue Jan 19 2010 - yuntong.jin@sun.com
15341N/A- Init
15341N/A