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