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