]>
Commit | Line | Data |
---|---|---|
77cbe844 JB |
1 | Summary: Pluma - MATE Text Editor |
2 | Summary(pl.UTF-8): Pluma - edytor tekstu dla środowiska MATE | |
cf9e9c57 JP |
3 | Name: pluma |
4 | Version: 1.8.0 | |
77cbe844 JB |
5 | Release: 1 |
6 | License: GPL v2+ | |
d2e3ce6f | 7 | Group: X11/Applications/Editors |
cf9e9c57 JP |
8 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
9 | # Source0-md5: cdebd8c3e32bb4624354f2b435fecc23 | |
77cbe844 JB |
10 | Patch0: %{name}-python.patch |
11 | URL: http://mate-desktop.org/ | |
12 | BuildRequires: autoconf >= 2.63.2 | |
13 | BuildRequires: automake >= 1:1.10 | |
14 | BuildRequires: docbook-dtd412-xml | |
15 | BuildRequires: enchant-devel >= 1.2.0 | |
16 | BuildRequires: gettext-devel >= 0.17 | |
17 | BuildRequires: glib2-devel >= 1:2.26.0 | |
18 | BuildRequires: gtk+2-devel >= 2:2.20 | |
19 | BuildRequires: gtk-doc >= 1.0 | |
20 | BuildRequires: gtksourceview2-devel >= 2.9.7 | |
21 | BuildRequires: intltool >= 0.40.0 | |
22 | BuildRequires: iso-codes >= 0.35 | |
23 | BuildRequires: libtool >= 2:2.2.6 | |
24 | BuildRequires: libxml2-devel >= 1:2.5.0 | |
25 | BuildRequires: mate-common | |
77cbe844 JB |
26 | BuildRequires: pkgconfig |
27 | BuildRequires: python-devel >= 1:2.5 | |
28 | BuildRequires: python-gtksourceview2-devel >= 2.9.2 | |
29 | BuildRequires: python-pygobject-devel >= 2.15.4 | |
30 | BuildRequires: python-pygtk-devel >= 2:2.12.0 | |
31 | BuildRequires: rpm-pythonprov | |
32 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
33 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 | |
34 | BuildRequires: xorg-lib-libX11-devel | |
cf9e9c57 | 35 | BuildRequires: yelp-tools |
77cbe844 JB |
36 | Requires(post,postun): glib2 >= 1:2.26.0 |
37 | Requires: enchant >= 1.2.0 | |
38 | Requires: glib2 >= 1:2.26.0 | |
39 | Requires: gtk+2 >= 2:2.20 | |
40 | Requires: gtksourceview2 >= 2.9.7 | |
41 | Requires: iso-codes >= 0.35 | |
42 | Requires: libxml2 >= 1:2.5.0 | |
43 | Requires: python-gtksourceview2 >= 2.9.2 | |
44 | Requires: python-pygobject >= 2.15.4 | |
45 | Requires: python-pygtk-gtk >= 2:2.12.0 | |
46 | Requires: xorg-lib-libSM >= 1.0.0 | |
cf9e9c57 | 47 | Obsoletes: mate-text-editor |
77cbe844 JB |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | Pluma is a small and lightweight UTF-8 text editor for the MATE | |
52 | environment. Based on gedit, the text editor for the GNOME 2 | |
53 | environment. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Pluma to mały i lekki edytor tekstu w UTF-8 dla środowiska MATE. | |
57 | Jest oparty na programie gedit - edytorze tekstu dla środowiska GNOME | |
58 | 2. | |
59 | ||
60 | %package devel | |
61 | Summary: Header files for Pluma plugins development | |
62 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek edytora Pluma | |
63 | Group: X11/Development/Libraries | |
64 | # doesn't require base | |
65 | Requires: glib2-devel >= 1:2.26.0 | |
66 | Requires: gtk+2-devel >= 2:2.20 | |
67 | Requires: gtksourceview2-devel >= 2.9.7 | |
68 | ||
69 | %description devel | |
70 | Header files for Pluma plugins development. | |
71 | ||
72 | %description devel -l pl.UTF-8 | |
73 | Pliki nagłówkowe do tworzenia wtyczek edytora Pluma. | |
74 | ||
75 | %package apidocs | |
76 | Summary: Pluma API documentation | |
77 | Summary(pl.UTF-8): Dokumentacja API edytora Pluma | |
78 | Group: Documentation | |
79 | ||
80 | %description apidocs | |
81 | Pluma API documentation. | |
82 | ||
83 | %description apidocs -l pl.UTF-8 | |
84 | Dokumentacja API edytora Pluma. | |
85 | ||
86 | %prep | |
87 | %setup -q | |
88 | %patch0 -p1 | |
89 | ||
90 | %build | |
91 | mate-doc-common --copy | |
77cbe844 JB |
92 | %{__intltoolize} |
93 | %{__libtoolize} | |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
98 | %configure \ | |
99 | --disable-schemas-compile \ | |
100 | --disable-silent-rules \ | |
101 | --with-html-dir=%{_gtkdocdir} | |
102 | ||
103 | %{__make} | |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
110 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pluma/{plugin-loaders,plugins}/*.la | |
111 | ||
112 | # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf | |
113 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/pluma.convert | |
114 | ||
cf9e9c57 JP |
115 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
116 | ||
77cbe844 JB |
117 | %find_lang pluma --with-mate --with-omf |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post | |
123 | %glib_compile_schemas | |
124 | ||
125 | %postun | |
126 | %glib_compile_schemas | |
127 | ||
128 | %files -f pluma.lang | |
129 | %defattr(644,root,root,755) | |
130 | %doc AUTHORS ChangeLog NEWS README | |
77cbe844 JB |
131 | %attr(755,root,root) %{_bindir}/pluma |
132 | %dir %{_libdir}/pluma | |
133 | %attr(755,root,root) %{_libdir}/pluma/pluma-bugreport.sh | |
134 | %dir %{_libdir}/pluma/plugin-loaders | |
135 | %attr(755,root,root) %{_libdir}/pluma/plugin-loaders/libcloader.so | |
136 | %attr(755,root,root) %{_libdir}/pluma/plugin-loaders/libpythonloader.so | |
137 | %dir %{_libdir}/pluma/plugins | |
138 | # C plugins | |
139 | %attr(755,root,root) %{_libdir}/pluma/plugins/libchangecase.so | |
140 | %{_libdir}/pluma/plugins/changecase.pluma-plugin | |
141 | %attr(755,root,root) %{_libdir}/pluma/plugins/libdocinfo.so | |
142 | %{_libdir}/pluma/plugins/docinfo.pluma-plugin | |
143 | %attr(755,root,root) %{_libdir}/pluma/plugins/libfilebrowser.so | |
144 | %{_libdir}/pluma/plugins/filebrowser.pluma-plugin | |
145 | %attr(755,root,root) %{_libdir}/pluma/plugins/libmodelines.so | |
146 | %{_libdir}/pluma/plugins/modelines.pluma-plugin | |
147 | %attr(755,root,root) %{_libdir}/pluma/plugins/libsort.so | |
148 | %{_libdir}/pluma/plugins/sort.pluma-plugin | |
149 | %attr(755,root,root) %{_libdir}/pluma/plugins/libspell.so | |
150 | %{_libdir}/pluma/plugins/spell.pluma-plugin | |
151 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtaglist.so | |
152 | %{_libdir}/pluma/plugins/taglist.pluma-plugin | |
153 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtime.so | |
154 | %{_libdir}/pluma/plugins/time.pluma-plugin | |
155 | # Python plugins | |
156 | %{_libdir}/pluma/plugins/externaltools | |
157 | %{_libdir}/pluma/plugins/externaltools.pluma-plugin | |
158 | %{_libdir}/pluma/plugins/pythonconsole | |
159 | %{_libdir}/pluma/plugins/pythonconsole.pluma-plugin | |
160 | %{_libdir}/pluma/plugins/quickopen | |
161 | %{_libdir}/pluma/plugins/quickopen.pluma-plugin | |
162 | %{_libdir}/pluma/plugins/snippets | |
163 | %{_libdir}/pluma/plugins/snippets.pluma-plugin | |
164 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.gschema.xml | |
165 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.filebrowser.gschema.xml | |
166 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.time.gschema.xml | |
167 | %{_datadir}/pluma | |
168 | %{_desktopdir}/pluma.desktop | |
169 | %{_mandir}/man1/pluma.1* | |
170 | ||
171 | %files devel | |
172 | %defattr(644,root,root,755) | |
173 | %{_includedir}/pluma | |
174 | %{_pkgconfigdir}/pluma.pc | |
175 | ||
176 | %files apidocs | |
177 | %defattr(644,root,root,755) | |
178 | %{_gtkdocdir}/pluma |