Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gedit
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: rickju
      9 #
     10 Name:		gedit
     11 License:	GPL
     12 Group:		System/GUI/GNOME
     13 Version:	2.16.2
     14 Release:	1
     15 Distribution:	Java Desktop System
     16 Vendor:		Sun Microsystems, Inc.
     17 Summary:	Text Editor for GNOME
     18 Source:		http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
     19 Source1:	gedit.1.gz
     20 Source2:	gnome-text-editor.1.gz
     21 Patch1:		gedit-01-spellcheck-fallback-to-enus.diff
     22 Patch2:		gedit-02-gtksourceview-binding.diff
     23 Patch3:         gedit-03-no-zh_TW-help.diff
     24 Patch4:         gedit-04-menu-entry.diff
     25 URL:            http://www.gnome.org
     26 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
     27 Docdir:         %{_docdir}/doc
     28 Autoreqprov:    off
     29 Prereq:         GConf
     30 
     31 %define major_minor 2.12
     32 
     33 %define gtksourceview_version 1.0.0
     34 %define libglade_version 2.3.6
     35 %define libgnomeprintui_version 2.6.0
     36 %define libgnomeui_version 2.6.0
     37 %define scrollkeeper_version 0.3.14
     38 %define intltool_version 0.31.3
     39 %define pygtk2_version 2.7.0
     40 
     41 BuildRequires: gtksourceview-devel >= %{gtksourceview_version}
     42 BuildRequires: libglade-devel >= %{libglade_version}
     43 BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
     44 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     45 BuildRequires: scrollkeeper >= %{scrollkeeper_version}
     46 BuildRequires: intltool >= %intltool_version
     47 BuildRequires: pygtk2-devel >= %{pygtk2_version}
     48 Requires: gtksourceview >= %{gtksourceview_version}
     49 Requires: libglade >= %{libglade_version}
     50 Requires: libgnomeprintui >= %{libgnomeprintui_version}
     51 Requires: libgnomeui >= %{libgnomeui_version}
     52 Requires: pygtk2 >= %{pygtk2_version}
     53 
     54 %description
     55 GEdit is a graphical text editor for GNOME
     56 
     57 %package devel
     58 Summary:      Developer files for gedit
     59 Group:        Development/Libraries/GNOME
     60 Requires:     %name = %version-%release
     61 
     62 %description devel
     63 GEdit is a graphical text editor for GNOME.  This package contains files
     64 required for building or developing gedit plugins.
     65 
     66 %prep
     67 %setup -q
     68 %patch1 -p1
     69 %patch2 -p1
     70 %patch3 -p1
     71 %patch4 -p1
     72 
     73 %build
     74 %ifos linux
     75 if [ -x /usr/bin/getconf ]; then
     76   CPUS=`getconf _NPROCESSORS_ONLN`
     77 fi
     78 %else
     79   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     80 %endif
     81 if test "x$CPUS" = "x" -o $CPUS = 0; then
     82   CPUS=1
     83 fi
     84 
     85 intltoolize --copy --force --automake
     86 libtoolize --force
     87 aclocal $ACLOCAL_FLAGS -I m4
     88 automake -a -c -f
     89 autoconf
     90 
     91 CFLAGS="$RPM_OPT_FLAGS"				\
     92 ./configure --prefix=%{_prefix}			\
     93 	    --sysconfdir=%{_sysconfdir}		\
     94 	    --localstatedir=%{_localstatedir}   \
     95 	    --mandir=%{_mandir}			\
     96 	    --disable-scrollkeeper
     97 make -j $CPUS
     98 
     99 %install
    100 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1    
    101 make DESTDIR=$RPM_BUILD_ROOT install
    102 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL   
    103 rm -rf $RPM_BUILD_ROOT%{_mandir}/man1
    104 rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
    105 install -d $RPM_BUILD_ROOT%{_mandir}/man1
    106 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
    107 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1
    108 
    109 
    110 #remove unpackaged files
    111 rm $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.la
    112 rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.pyo
    113 rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*/*.pyo
    114 
    115 %post
    116 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    117 SCHEMAS="gedit.schemas"
    118 for S in $SCHEMAS; do
    119   gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
    120 done
    121 
    122 %clean
    123 rm -rf $RPM_BUILD_ROOT
    124 
    125 %files
    126 %defattr(-, root, root)
    127 %{_bindir}/*
    128 %{_libdir}/gedit-2/plugins/*.so
    129 %{_libdir}/gedit-2/plugins/*/*.py
    130 %{_libdir}/gedit-2/plugins/*/*.pyc
    131 %{_libdir}/gedit-2/plugins/*.py
    132 %{_libdir}/gedit-2/plugins/*.pyc
    133 %{_libdir}/gedit-2/plugins/*.gedit-plugin
    134 %{_libdir}/gedit-2/plugins/*/*.glade
    135 %{_sysconfdir}/gconf/schemas/gedit.schemas
    136 %{_datadir}/applications/*.desktop
    137 %{_datadir}/gedit-2
    138 %{_datadir}/gnome/help/gedit
    139 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    140 %{_datadir}/omf/gedit
    141 %{_datadir}/pixmaps/*.png
    142 %{_mandir}/man1/*
    143 
    144 %files devel
    145 %defattr(-, root, root)
    146 %{_includedir}/*
    147 %{_libdir}/pkgconfig/*
    148 
    149 %changelog
    150 * Tue Oct 31 2006 - damien.carbery@sun.com
    151 - Bump to 2.16.2.
    152 
    153 * Mon Oct 02 2006 - damien.carbery@sun.com
    154 - Bump to 2.16.1.
    155 
    156 * Tue Sep 05 2006 - damien.carbery@sun.com
    157 - Bump to 2.16.0.
    158 
    159 * Tue Aug 22 2006 - damien.carbery@sun.com
    160 - Bump to 2.15.8.
    161 
    162 * Tue Aug 15 2006 - damien.carbery@sun.com
    163 - Bump to 2.15.7.
    164 
    165 * Tue Aug 08 2006 - damien.carbery@sun.com
    166 - Bump to 2.15.6.
    167 
    168 * Wed Jul 26 2006 - damien.carbery@sun.com
    169 - Bump to 2.15.5.
    170 
    171 * Tue Jul 25 2006 - dermot.mccluskey@sun.com
    172 - Bump to 2.15.4.
    173 
    174 * Fri Jun 23 2006 - brian.cameron@sun.com
    175 - Bump to 2.14.3.
    176 
    177 * Fri Jun 01 2006 - glynn.foster@sun.com
    178 - Add menu entry patch.
    179 
    180 * Mon Apr 10 2006 - damien.carbery@sun.com
    181 - Bump to 2.14.2.
    182 
    183 * Thu Mar 16 2006 - damien.carbery@sun.com
    184 - Bump to 2.14.1.
    185 
    186 * Tue Mar 14 2006 - damien.carbery@sun.com
    187 - Add patch, 02-gtksourceview-binding, to skip non-existant python binding file.
    188   The file is not in pygtk2 like the other .defs files.
    189 - Add patch, 03-no-zh_TW-help, to skip zh_TW help as it crashes xml2po.
    190 
    191 * Mon Mar 13 2006 - damien.carbery@sun.com
    192 - Bump to 2.14.0.
    193 
    194 * Mon Mar  6 2006 - damien.carbery@sun.com
    195 - Bump to 2.13.93.
    196 
    197 * Mon Feb 27 2006 - damien.carbery@sun.com
    198 - Bump to 2.13.92.
    199 
    200 * Wed Feb 22 2006 - damien.carbery@sun.com
    201 - Remove patch, 02-no-zh-help, as issue resolved in latest tarball.
    202 
    203 * Tue Feb 14 2006 - damien.carbery@sun.com
    204 - Bump to 2.13.91.
    205 
    206 * Tue Jan 31 2006 - damien.carbery@sun.com
    207 - Bump to 2.13.90.
    208 
    209 * Fri Jan 27 2006 - damien.carbery@sun.com
    210 - Add patch, 02-no-zh-help, to workaround #328888.
    211 
    212 * Sat Jan 21 2006 - damien.carbery@sun.com
    213 - Bump to 2.13.4
    214 
    215 * Tue Jan 17 2006 - damien.carbery@sun.com
    216 - Bump to 2.13.3
    217 
    218 * Sun Jan 15 2006 - damien.carbery@sun.com
    219 - Bump to 2.13.2
    220 
    221 * Sat Jan 07 2006 - damien.carbery@sun.com
    222 - Point aclocal to module's m4 files.
    223 
    224 * Tue Jan 03 2006 - damien.carbery (at] sun.com
    225 - Remove obsolete patches, 
    226 
    227 * Tue Dec 20 2005 - dermot.mccluskey (at] sun.com
    228 - Bump to 2.13.0
    229 
    230 * Tue Nov 29 2005 - laca.com
    231 - remove javahelp stuff
    232 
    233 * Tue Oct 11 2005 - damien.carbery (at] sun.com
    234 - Bump to 2.12.1
    235 
    236 * Sat Sep 17 2005 - glynn.foster (at] sun.com
    237 - Bump to 2.12.0
    238 
    239 * Mon Aug 15 2005 - damien.carbery (at] sun.com
    240 - Bump to 2.11.91.
    241 
    242 * Wed Jun 15 2005 - matt.keenan (at] sun.com
    243 - Bump to 2.10.3
    244 
    245 * Thu May 19 2005 - glynn.foster (at] sun.com
    246 - Really port to 2.10.2
    247 
    248 * Fri May 05 2005 - kieran.colfer (at] sun.com
    249 - updating l10n po tarball for CR 6265858
    250 
    251 * Thu Mar 31 2005 - vinay.mandyakoppal (at] wipro.com
    252 - Added intltoolize to get the latest intltool-update/merge to fix 
    253   intall errors. Fixes bug #6243610.
    254 
    255 * Tue Jan 25 2005 - damien.carbery (at] sun.com
    256 - Update docs with Linux specific tarball from maeve.anslow (at] sun.com.
    257 
    258 * Fri Jan 14 2005 - kazuhiko.maekawa (at] sun.com
    259 - Updated l10n help tarball for cinnabar-linux
    260                                                                                 
    261 * Wed Dec 22 2004 - srirama.sharma (at] wipro.com
    262 - Added patch gedit-11-a11y_page_setup.diff so that gnopernicus
    263   does not read the labels of File->Pagesetup->font tab multiple times.
    264   Fixes Bug #6199112.
    265 
    266 * Wed Dec 22 2004 - srirama.sharma (at] wipro.com
    267 - Added patch gedit-10-a11y_open_location.diff so that gnopernicus 
    268   reads the label of File->Open Location dialog. Fixes Bug #6199089. 
    269 
    270 * Wed Nov 17 2004 - matt.keenan (at] sun.com
    271 - #6195855, install correct manpage
    272 
    273 * Fri Nov 12 2004 - hidetoshi.tajima (at] sun.com
    274 - Added patch : gedit-09-spellcheck-fallback-to-enus.diff, #6194573
    275 
    276 * Fri Nov 12 2004 - kazuhiko.maekawa (at] sun.com
    277 - Added patch : gedit-08-g11n-i18n-ms-euc.diff for bug 6194514
    278 
    279 * Thu Oct 28 2004 - kazuhiko.maekawa (at] sun.com
    280 - Updated l10n help tarball and added pt_BR
    281 
    282 * Fri Sep 24 2004 vinay.mandyakoppal (at] wipro.com
    283 - Added patch gedit-06-help.diff to fix help issues.
    284   Fixes bugs #5094026,5094027,5094029,5101694.
    285  
    286 * Wed Aug 25 2004 Kazuhiko.Maekawa (at] sun.com
    287 - Updated help tar name for Cinnabar
    288 
    289 * Fri Aug 20 2004 damien.carbery (at] sun.com
    290 - Integrated updated docs tarball from breda.mccolgan (at] sun.com.
    291 
    292 * Fri Aug 20 2004 johan.steyn (at] sun.com
    293 - Removed  gedit-06-spellchecker-plugin.diff as it won't work on Solaris,
    294   and also because it has to do with a problem in aspell being built using
    295   a version of libtool older than 1.5.
    296 
    297 * Fri Aug 20 2004 johan.steyn@sun.com
    298 - Added gedit-06-spellchecker-plugin.diff to check the apsell library correctly
    299   so that spellchecker plugin is built. Fixed bug 5084894.
    300 
    301 * Thu Aug 12 2004 takao.fujiwara@sun.com
    302 - Added gedit-05-g11n-i18n-ui.diff to localize taglist. Fixed 5068944.
    303 
    304 * Thu Aug 05 2004 damien.carbery@sun.com
    305 - Incorporate new docs tarball from breda.mccolgan@sun.com.
    306 
    307 * Mon Jul 26 2004 - johan.steyn@sun.com
    308 - added gedit-04-command-pipe.diff to fix bugtraq #5046785
    309 
    310 * Fri Jul 23 2004 - hidetoshi.tajima@sun.com
    311 - added gedit-03-g11n-utf8-autodect.diff to fix bugtraq
    312   5063167
    313 
    314 * Tue Jul 20 2004 - glynn.foster@sun.com
    315 - Bump to 2.6.2
    316 
    317 * Thu Jul 08 2004 - damien.donlon@sun.com
    318 - Updated l10n content to gedit-l10n-po-1.2.tar.bz2
    319 
    320 * Thu Jul 08 2004 - stephen.browne@sun.com
    321 - ported to rpm4/suse91
    322 
    323 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    324 - added "-j $CPUS" to make to speed up builds
    325 
    326 * Thu Jun 24 2004 - takao.fujiwara@sun.com
    327 - Add gedit-03-g11n-i18n-ui.diff to localize open dialog. bugzilla #144525
    328 
    329 * Wed Jun 02 2004 damien.carbery@sun.com
    330 - Incorporate new docs tarball from breda.mccolgan@sun.com.
    331 
    332 * Wed May 12 2004 - damien.donlon@sun.com
    333 - Updated l10n content to gedit-l10n-po-1.1.tar.bz2
    334 
    335 * Sun Apr 18 2004 - laca@sun.com
    336 - enable javahelp conversion on Solaris
    337 
    338 * Thu Apr 01 2004 - matt.keenan@sun.com
    339 - javahelp conversion
    340 
    341 * Mon Mar 29 2004 - damien.donlon@sun.com
    342 - Updated l10n content to gedit-l10n-po-1.0.tar.bz2
    343 
    344 * Tue Mar 17 2004 - glynn.foster@sun.com
    345 - Add bak schema patch, since we still need it.
    346 
    347 * Tue Mar 17 2004 - glynn.foster@sun.com
    348 - Bump to 2.5.92. Remove man page, schema includes, pixmap sources
    349   build fix and desktop g11n patch.
    350 
    351 * Mon Mar 15 2004 - takao.fujiwara@sun.com
    352 - Replaced gedit-04-default-schemas.diff with gedit-04-g11n-schemas.diff 
    353   to fix 4924569 and 4996253
    354 - Added gedit-06-g11n-desktop.diff to fix 4969602
    355 - Added gedit-07-g11n-potfiles.diff
    356 
    357 * Wed Feb 18 2004 - <matt.keenan@sun.com>
    358 - Bump to 2.5.3, add l10n online line
    359 - Ported default schemas patch 04
    360 
    361 * Fri Jan 09 2004 - <matt.keenan@sun.com>
    362 - Patch to remove extra includes
    363 
    364 * Wed Dec 17 2003 - <glynn.foster@sun.com>
    365 - Bump to 2.5.0
    366 
    367 * Fri Oct 31 2003 - <glynn.foster@sun.com>
    368 - Remove the Sun Supported keyword patch since we're removing
    369   the Extras menu.
    370 
    371 * Tue Oct 21 2003 - <michael.twomey (at] sun.com>
    372 - Updated to GNOME 2.4.0 version, updated POTFILES.in patch,
    373   and add patch to use libgnomeprintui 2.3.0 instead of 2.3.1.
    374 
    375 * Fri Sep 26 2003 - <laca (at] sun.com>
    376 - integrate Sun docs
    377 
    378 * Wed Jul 09 2003 - <michael.twomey (at] sun.com>
    379 - add in sun po files
    380 
    381 * Wed May 14 2003 - Matt.Keenan (at] sun.com
    382 - Initial Sun Release
    383