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