]> git.pld-linux.org Git - packages/gedit.git/blob - gedit.spec
- en@shaw locale is now supported (via LANGUAGE)
[packages/gedit.git] / gedit.spec
1 Summary:        gedit - small but powerful text editor for X Window
2 Summary(pl.UTF-8):      gedit - mały ale potężny edytor tekstu dla X Window
3 Name:           gedit2
4 Version:        2.30.4
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications/Editors
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gedit/2.30/gedit-%{version}.tar.bz2
9 # Source0-md5:  e1eecb0a92a1a363b3d375ec5ac0fb3b
10 URL:            http://www.gnome.org/projects/gedit/
11 BuildRequires:  GConf2-devel >= 2.24.0
12 BuildRequires:  attr-devel
13 BuildRequires:  autoconf >= 2.64
14 BuildRequires:  automake >= 1:1.10
15 BuildRequires:  docbook-dtd412-xml
16 BuildRequires:  enchant-devel >= 1.2.0
17 BuildRequires:  gettext-devel
18 BuildRequires:  glib2-devel >= 1:2.24.0
19 BuildRequires:  gnome-common >= 2.24.0
20 BuildRequires:  gnome-doc-utils >= 0.14.0
21 BuildRequires:  gtk+2-devel >= 2:2.18.0
22 BuildRequires:  gtk-doc >= 1.8
23 BuildRequires:  gtksourceview2-devel >= 2.10.0
24 BuildRequires:  intltool >= 0.40.0
25 BuildRequires:  iso-codes >= 0.35
26 BuildRequires:  libsoup-devel
27 BuildRequires:  libtool
28 BuildRequires:  libxml2-devel >= 1:2.6.31
29 BuildRequires:  pkgconfig
30 BuildRequires:  python-devel >= 2.3
31 BuildRequires:  python-gtksourceview2-devel >= 2.10.0
32 BuildRequires:  python-pygobject-devel >= 2.16.0
33 BuildRequires:  python-pygtk-devel >= 2:2.12.0
34 BuildRequires:  rpm-pythonprov
35 BuildRequires:  rpmbuild(find_lang) >= 1.23
36 BuildRequires:  rpmbuild(macros) >= 1.197
37 BuildRequires:  scrollkeeper >= 0.3.12
38 BuildRequires:  sed >= 4.0
39 BuildRequires:  xorg-lib-libSM-devel
40 Requires(post,postun):  desktop-file-utils
41 Requires(post,postun):  scrollkeeper
42 Requires(post,preun):   GConf2
43 Requires:       python-gtksourceview2 >= 2.10.0
44 Requires:       python-pygobject >= 2.16.0
45 Suggests:       python-vte
46 Obsoletes:      gedit-devel
47 Obsoletes:      gedit-plugins < 2.3.3-2
48 # sr@Latn vs. sr@latin
49 Conflicts:      glibc-misc < 6:2.7
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %description
53 gedit is a small but powerful text editor for GTK+ and/or GNOME. It
54 includes such features as split-screen mode, a plugin API, which
55 allows gedit to be extended to support many features while remaining
56 small at its core, multiple document editing and many more functions.
57
58 %description -l pl.UTF-8
59 gedit jest małym ale potężnym edytorem tekstu dla GTK+ i/lub GNOME.
60 Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek",
61 który umożliwia rozszerzenie funkcji gedita o dodatkowe możliwości,
62 nie zwiększając rozmiarów samego programu, możliwość edycji wielu
63 dokumentów naraz i wiele innych.
64
65 %package devel
66 Summary:        gedit header files
67 Summary(pl.UTF-8):      Pliki nagłówkowe gedit
68 Group:          X11/Development/Libraries
69 Requires:       %{name} = %{version}-%{release}
70 Requires:       gtksourceview2-devel >= 2.9.7
71
72 %description devel
73 gedit header files.
74
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe gedit.
77
78 %package apidocs
79 Summary:        gedit API documentation
80 Summary(pl.UTF-8):      Dokumentacja API gedit
81 Group:          Documentation
82 Requires:       gtk-doc-common
83
84 %description apidocs
85 gedit API documentation.
86
87 %description apidocs -l pl.UTF-8
88 Dokumentacja API gedit.
89
90 %prep
91 %setup -q -n gedit-%{version}
92
93 sed -i 's/codegen.py/codegen.pyc/' configure.ac
94 sed -i 's/h2def.py/h2def.pyc/' configure.ac
95
96 %build
97 %{__gtkdocize}
98 %{__libtoolize}
99 %{__intltoolize}
100 %{__aclocal} -I m4
101 %{__autoconf}
102 %{__autoheader}
103 %{__automake}
104 %configure \
105         --disable-schemas-install \
106         --disable-scrollkeeper \
107         --disable-silent-rules \
108         --enable-python \
109         --enable-gtk-doc \
110         --with-html-dir=%{_gtkdocdir}
111 %{__make}
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT \
118         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
119
120 # Remove unneeded *.la files
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit-2/{plugins,plugin-loaders}/*.la
122 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.py
123 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*/*.py
124
125 %find_lang gedit --with-gnome --with-omf
126
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %post
131 /sbin/ldconfig
132 %gconf_schema_install gedit-file-browser.schemas
133 %gconf_schema_install gedit.schemas
134 %scrollkeeper_update_post
135 %update_desktop_database_post
136
137 %preun
138 %gconf_schema_uninstall gedit-file-browser.schemas
139 %gconf_schema_uninstall gedit.schemas
140
141 %postun
142 /sbin/ldconfig
143 %scrollkeeper_update_postun
144 %update_desktop_database_postun
145
146 %files -f gedit.lang
147 %defattr(644,root,root,755)
148 %doc README ChangeLog AUTHORS
149 %{_sysconfdir}/gconf/schemas/gedit.schemas
150 %{_sysconfdir}/gconf/schemas/gedit-file-browser.schemas
151 %attr(755,root,root) %{_bindir}/gedit
152 %attr(755,root,root) %{_bindir}/gnome-text-editor
153 %dir %{_libdir}/gedit-2
154 %dir %{_libdir}/gedit-2/plugin-loaders
155 %attr(755,root,root) %{_libdir}/gedit-2/plugin-loaders/*.so
156 %dir %{_libdir}/gedit-2/plugins
157 %dir %{_libdir}/gedit-2/plugins/externaltools
158 %dir %{_libdir}/gedit-2/plugins/pythonconsole
159 %dir %{_libdir}/gedit-2/plugins/quickopen
160 %dir %{_libdir}/gedit-2/plugins/snippets
161 %attr(755,root,root) %{_libdir}/gedit-2/gedit-bugreport.sh
162 %attr(755,root,root) %{_libdir}/gedit-2/plugins/*.so
163 %{_libdir}/gedit-2/plugins/externaltools/*.py[co]
164 %{_libdir}/gedit-2/plugins/*.gedit-plugin
165 %{_libdir}/gedit-2/plugins/pythonconsole/*.py[co]
166 %{_libdir}/gedit-2/plugins/quickopen/*.py[co]
167 %{_libdir}/gedit-2/plugins/snippets/*.py[co]
168 %{_datadir}/gedit-2
169 %{_desktopdir}/gedit.desktop
170 %{_mandir}/man1/gedit.1*
171
172 %files devel
173 %defattr(644,root,root,755)
174 %{_includedir}/gedit-2.20
175 %{_pkgconfigdir}/gedit-2.20.pc
176
177 %files apidocs
178 %defattr(644,root,root,755)
179 %{_gtkdocdir}/gedit
This page took 0.102675 seconds and 3 git commands to generate.