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