gedit-plugins.spec revision 18337
18326N/A#
18326N/A# spec file for package: gedit-plugins
18326N/A#
18326N/A# Copyright (c) 2010 Sun Microsystems, Inc.
18326N/A# This file and all modifications and additions to the pristine
18326N/A# package are under the same license as the package itself.
18326N/A#
18326N/A%define owner jouby
18326N/A#
18326N/A
18326N/A
18326N/AName: gedit-plugins
18326N/ASummary: Plugins for gedit
18326N/AVersion: 2.28.0
18326N/ARelease: 1
18326N/ALicense: GPLv2
18326N/AUrl: http://live.gnome.org/Gedit/Plugins
18326N/ASource: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.28/%{name}-%{version}.tar.bz2
18337N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18326N/A
18326N/A
18326N/A%description
18326N/APlugins for gedit including: bracketcompletion charmap codecomment colorpicker
18326N/Adrawspaces joinlines sessionsaver showtabbar smartspaces terminal
18326N/A
18326N/A%prep
18326N/Arm -rf %name-%version
18326N/A%setup -q -n %name-%version
18326N/A
18326N/A%build
18326N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18326N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18326N/A CPUS=1
18326N/Afi
18326N/A
18326N/A
18326N/Aexport CFLAGS="%optflags"
18326N/Aexport LDFLAGS="%{_ldflags}"
18326N/A./configure --prefix=%{_prefix} \
18326N/A --bindir=%{_bindir} \
18326N/A --mandir=%{_mandir} \
18326N/A --infodir=%{_infodir} \
18326N/A --sysconfdir=%{_sysconfdir} \
18326N/A --disable-scrollkeeper
18326N/A
18326N/Amake -j$CPUS
18326N/A
18326N/A%install
18326N/Arm -rf $RPM_BUILD_ROOT
18326N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
18326N/Amake install DESTDIR=$RPM_BUILD_ROOT
18326N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
18326N/A
18326N/Arm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.la
18326N/Arm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.pyo
18326N/Arm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*/*.pyo
18326N/A
18326N/A%post
18326N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
18326N/ASCHEMAS="gedit-show-tabbar-plugin.schemas"
18326N/Afor S in $SCHEMAS; do
18326N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
18326N/Adone
18326N/A
18326N/A%clean
18326N/Arm -rf $RPM_BUILD_ROOT
18326N/A
18326N/A%changelog
18326N/A* Tue Feb 23 2010 - yuntong.jin@sun.com
18337N/A- Initial base spec
18326N/A
18326N/A