]> git.pld-linux.org Git - packages/gedit.git/blob - gedit.spec
- updated to 2.8.3, STBR
[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.8.3
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Editors
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/gedit/2.8/gedit-%{version}.tar.bz2
9 # Source0-md5:  091b399294b8f5f9598da00c05868e23
10 Patch0:         %{name}-use_default_font.patch
11 Patch1:         %{name}-desktop.patch
12 URL:            http://gedit.sourceforge.net/
13 BuildRequires:  GConf2-devel >= 2.7.92
14 BuildRequires:  ORBit2-devel
15 BuildRequires:  aspell-devel
16 BuildRequires:  autoconf >= 2.52
17 BuildRequires:  automake
18 BuildRequires:  eel-devel >= 2.7.92
19 BuildRequires:  gnome-common >= 2.8.0-2
20 BuildRequires:  gtksourceview-devel >= 1.1.0
21 BuildRequires:  intltool >= 0.31
22 BuildRequires:  libglade2-devel >= 1:2.4.0
23 BuildRequires:  libgnomeprintui-devel >= 2.7.90
24 BuildRequires:  libgnomeui-devel >= 2.7.92
25 BuildRequires:  libtool
26 BuildRequires:  popt-devel >= 1.5
27 BuildRequires:  rpm-build >= 4.1-10
28 BuildRequires:  scrollkeeper >= 0.3.12
29 BuildRequires:  xft-devel >= 2.1.2
30 Requires(post): GConf2
31 Requires(post,postun):  /sbin/ldconfig
32 Requires(post,postun):  scrollkeeper
33 Requires:       libgnomeprintui >= 2.7.90
34 Obsoletes:      gedit-devel
35 Obsoletes:      gedit-plugins < 2.3.3-2
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 gEdit is a small but powerful text editor for GTK+ and/or GNOME. It
40 includes such features as split-screen mode, a plugin API, which
41 allows gEdit to be extended to support many features while remaining
42 small at its core, multiple document editing and many more functions.
43
44 %description -l pl
45 gEdit jest ma³ym ale potê¿nym edytorem tekstu dla GTK+ i/lub GNOME.
46 Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek",
47 który umo¿liwia rozszerzenie funkcji gEdita o dodatkowe mo¿liwo¶ci,
48 nie zwiêkszaj±c rozmiarów samego programu, mo¿liwo¶æ edycji wielu
49 dokumentów naraz i wiele innych.
50
51 %package devel
52 Summary:        gEdit header files
53 Summary(pl):    pliki nag³ówkowe gEdit
54 Group:          X11/Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       eel-devel >= 2.7.92
57 Requires:       gtksourceview-devel >= 1.1.0
58 Requires:       libglade2-devel >= 1:2.4.0
59 Requires:       libgnomeprintui-devel >= 2.7.90
60 Requires:       libgnomeui-devel >= 2.7.92
61
62 %description devel
63 gEdit header files
64
65 %description devel -l pl
66 Pliki nag³ówkowe gEdit.
67
68 %prep
69 %setup -q -n gedit-%{version}
70 %patch0 -p1
71 %patch1 -p1
72
73 %build
74 cp /usr/share/gnome-common/data/omf.make .
75 %{__libtoolize}
76 intltoolize --copy --force
77 %{__aclocal}
78 %{__autoconf}
79 %{__automake}
80 %configure \
81         --disable-schemas-install
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT \
90         omf_dest_dir=%{_omf_dest_dir}/%{name} \
91         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
92
93 # Remove obsoleted *.la files
94 rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.la
95 rm -f $RPM_BUILD_ROOT%{_libdir}/bonobo/*.la
96
97 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
98
99 %find_lang %{name} --with-gnome --all-name
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post
105 umask 022
106 scrollkeeper-update
107 %gconf_schema_install
108 /sbin/ldconfig
109 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
110
111 %postun
112 umask 022
113 scrollkeeper-update
114 /sbin/ldconfig
115 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
116
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc README ChangeLog TODO AUTHORS THANKS
120 %{_sysconfdir}/gconf/schemas/*
121 %attr(755,root,root) %{_bindir}/*
122 %dir %{_libdir}/gedit-2
123 %dir %{_libdir}/gedit-2/plugins
124 %attr(755,root,root) %{_libdir}/bonobo/libgedit-control.so
125 %attr(755,root,root) %{_libdir}/gedit-2/plugins/*.so*
126 %{_libdir}/gedit-2/plugins/*.gedit-plugin
127 %{_libdir}/bonobo/servers/*
128 %{_pixmapsdir}/*
129 %{_datadir}/application-registry/*
130 %{_desktopdir}/*
131 %{_datadir}/gedit-2
132 %{_datadir}/gnome-2.0/ui/*
133 %{_datadir}/mime-info/*
134 %{_datadir}/idl/*
135 %{_omf_dest_dir}/%{name}
136 %{_mandir}/man1/*
137
138 %files devel
139 %defattr(644,root,root,755)
140 %{_includedir}/gedit-*
141 %{_pkgconfigdir}/gedit-*.pc
This page took 0.038965 seconds and 4 git commands to generate.