]> git.pld-linux.org Git - packages/gedit.git/blob - gedit.spec
- added BR aspell-devel for building spell checker plugin
[packages/gedit.git] / gedit.spec
1 Summary:        gEdit - small but powerful text editor for X Window
2 Summary(pl):    gEdit - ma³y ale potê¿ny edytor tekstu dla X Window
3 Name:           gedit2
4 Version:        2.1.0.1
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Editors
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/gedit/2.1/gedit-%{version}.tar.bz2
9 URL:            http://gedit.sourceforge.net/
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  libtool
13 BuildRequires:  GConf2-devel >= 1.2.1
14 BuildRequires:  intltool >= 0.22
15 BuildRequires:  libgnomeui-devel >= 2.1.0
16 BuildRequires:  libglade2-devel >= 2.0.1
17 BuildRequires:  libgnomeprintui-devel >= 1.116.0
18 BuildRequires:  libbonoboui-devel >= 2.0.3
19 BuildRequires:  glib2-devel >= 2.1.0
20 BuildRequires:  aspell-devel
21 BuildRequires:  scrollkeeper >= 0.3.11
22 Requires(post,postun):  scrollkeeper
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Obsoletes:      gedit-devel
25
26 %define         _prefix         /usr/X11R6
27 %define         _sysconfdir     /etc/X11/GNOME2
28 %define         _mandir         %{_prefix}/man
29 %define         _omf_dest_dir   %(scrollkeeper-config --omfdir)
30
31 %description
32 gEdit is a small but powerful text editor for GTK+ and/or GNOME. It
33 includes such features as split-screen mode, a plugin API, which
34 allows gEdit to be extended to support many features while remaining
35 small at its core, multiple document editing and many more functions.
36
37 %description -l pl
38 gEdit jest ma³ym ale potê¿nym edytorem tekstu dla GTK+ i/lub GNOME.
39 Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek",
40 który umo¿liwia rozszerzenie funkcji gEdita o dodatkowe mo¿liwo¶ci,
41 nie zwiêkszaj±c rozmiarów samego programu, mo¿liwo¶æ edycji wielu
42 dokumentów naraz i wiele innych.
43
44 %prep
45 %setup -q -n gedit-%{version}
46
47 %build
48 rm -f missing acinclude.m4
49 %{__libtoolize}
50 glib-gettextize --copy --force
51 %{__aclocal} 
52 %{__autoconf}
53 sed -e 's/-ourdir/ourdir/' xmldocs.make >xmldocs.make.tmp
54 mv xmldocs.make.tmp xmldocs.make
55 %{__automake}
56 %configure 
57
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT \
65         omf_dest_dir=%{_omf_dest_dir}/%{name} 
66
67
68 %find_lang %{name} --with-gnome --all-name
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post
74 scrollkeeper-update
75 GCONF_CONFIG_SOURCE="`%{_bindir}/gconftool-2 --get-default-source`" \
76 %{_bindir}/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas > /dev/null 
77
78 %postun
79 scrollkeeper-update
80
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc README ChangeLog TODO AUTHORS THANKS
84 %{_sysconfdir}/gconf/schemas/*
85 %attr(755,root,root) %{_bindir}/*
86 %dir %{_libdir}/gedit-2
87 %dir %{_libdir}/gedit-2/plugins
88 %attr(755,root,root) %{_libdir}/gedit-2/plugins/*.so*
89 %{_libdir}/bonobo/servers/*
90 %{_pixmapsdir}/*
91 %{_datadir}/applications/*
92 %{_datadir}/gedit-2
93 %{_datadir}/mime-info/*
94 %{_datadir}/idl/*
95 %{_omf_dest_dir}/%{name}
96 %{_mandir}/man1/*.gz
This page took 0.040198 seconds and 4 git commands to generate.