]>
Commit | Line | Data |
---|---|---|
77cbe844 JB |
1 | Summary: Pluma - MATE Text Editor |
2 | Summary(pl.UTF-8): Pluma - edytor tekstu dla środowiska MATE | |
3 | Name: mate-text-editor | |
4 | Version: 1.6.1 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
d2e3ce6f | 7 | Group: X11/Applications/Editors |
77cbe844 JB |
8 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 3cfbd6d709b74e57b9b907c141ba5fdb | |
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 | |
26 | BuildRequires: mate-doc-utils >= 0.9.0 | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: python-devel >= 1:2.5 | |
29 | BuildRequires: python-gtksourceview2-devel >= 2.9.2 | |
30 | BuildRequires: python-pygobject-devel >= 2.15.4 | |
31 | BuildRequires: python-pygtk-devel >= 2:2.12.0 | |
32 | BuildRequires: rpm-pythonprov | |
33 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
34 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 | |
35 | BuildRequires: xorg-lib-libX11-devel | |
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 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | Pluma is a small and lightweight UTF-8 text editor for the MATE | |
51 | environment. Based on gedit, the text editor for the GNOME 2 | |
52 | environment. | |
53 | ||
54 | %description -l pl.UTF-8 | |
55 | Pluma to mały i lekki edytor tekstu w UTF-8 dla środowiska MATE. | |
56 | Jest oparty na programie gedit - edytorze tekstu dla środowiska GNOME | |
57 | 2. | |
58 | ||
59 | %package devel | |
60 | Summary: Header files for Pluma plugins development | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek edytora Pluma | |
62 | Group: X11/Development/Libraries | |
63 | # doesn't require base | |
64 | Requires: glib2-devel >= 1:2.26.0 | |
65 | Requires: gtk+2-devel >= 2:2.20 | |
66 | Requires: gtksourceview2-devel >= 2.9.7 | |
67 | ||
68 | %description devel | |
69 | Header files for Pluma plugins development. | |
70 | ||
71 | %description devel -l pl.UTF-8 | |
72 | Pliki nagłówkowe do tworzenia wtyczek edytora Pluma. | |
73 | ||
74 | %package apidocs | |
75 | Summary: Pluma API documentation | |
76 | Summary(pl.UTF-8): Dokumentacja API edytora Pluma | |
77 | Group: Documentation | |
78 | ||
79 | %description apidocs | |
80 | Pluma API documentation. | |
81 | ||
82 | %description apidocs -l pl.UTF-8 | |
83 | Dokumentacja API edytora Pluma. | |
84 | ||
85 | %prep | |
86 | %setup -q | |
87 | %patch0 -p1 | |
88 | ||
89 | %build | |
90 | mate-doc-common --copy | |
91 | mate-doc-prepare --copy --force | |
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 | ||
115 | %find_lang pluma --with-mate --with-omf | |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post | |
121 | %glib_compile_schemas | |
122 | ||
123 | %postun | |
124 | %glib_compile_schemas | |
125 | ||
126 | %files -f pluma.lang | |
127 | %defattr(644,root,root,755) | |
128 | %doc AUTHORS ChangeLog NEWS README | |
129 | %attr(755,root,root) %{_bindir}/mate-text-editor | |
130 | %attr(755,root,root) %{_bindir}/pluma | |
131 | %dir %{_libdir}/pluma | |
132 | %attr(755,root,root) %{_libdir}/pluma/pluma-bugreport.sh | |
133 | %dir %{_libdir}/pluma/plugin-loaders | |
134 | %attr(755,root,root) %{_libdir}/pluma/plugin-loaders/libcloader.so | |
135 | %attr(755,root,root) %{_libdir}/pluma/plugin-loaders/libpythonloader.so | |
136 | %dir %{_libdir}/pluma/plugins | |
137 | # C plugins | |
138 | %attr(755,root,root) %{_libdir}/pluma/plugins/libchangecase.so | |
139 | %{_libdir}/pluma/plugins/changecase.pluma-plugin | |
140 | %attr(755,root,root) %{_libdir}/pluma/plugins/libdocinfo.so | |
141 | %{_libdir}/pluma/plugins/docinfo.pluma-plugin | |
142 | %attr(755,root,root) %{_libdir}/pluma/plugins/libfilebrowser.so | |
143 | %{_libdir}/pluma/plugins/filebrowser.pluma-plugin | |
144 | %attr(755,root,root) %{_libdir}/pluma/plugins/libmodelines.so | |
145 | %{_libdir}/pluma/plugins/modelines.pluma-plugin | |
146 | %attr(755,root,root) %{_libdir}/pluma/plugins/libsort.so | |
147 | %{_libdir}/pluma/plugins/sort.pluma-plugin | |
148 | %attr(755,root,root) %{_libdir}/pluma/plugins/libspell.so | |
149 | %{_libdir}/pluma/plugins/spell.pluma-plugin | |
150 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtaglist.so | |
151 | %{_libdir}/pluma/plugins/taglist.pluma-plugin | |
152 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtime.so | |
153 | %{_libdir}/pluma/plugins/time.pluma-plugin | |
154 | # Python plugins | |
155 | %{_libdir}/pluma/plugins/externaltools | |
156 | %{_libdir}/pluma/plugins/externaltools.pluma-plugin | |
157 | %{_libdir}/pluma/plugins/pythonconsole | |
158 | %{_libdir}/pluma/plugins/pythonconsole.pluma-plugin | |
159 | %{_libdir}/pluma/plugins/quickopen | |
160 | %{_libdir}/pluma/plugins/quickopen.pluma-plugin | |
161 | %{_libdir}/pluma/plugins/snippets | |
162 | %{_libdir}/pluma/plugins/snippets.pluma-plugin | |
163 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.gschema.xml | |
164 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.filebrowser.gschema.xml | |
165 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.time.gschema.xml | |
166 | %{_datadir}/pluma | |
167 | %{_desktopdir}/pluma.desktop | |
168 | %{_mandir}/man1/pluma.1* | |
169 | ||
170 | %files devel | |
171 | %defattr(644,root,root,755) | |
172 | %{_includedir}/pluma | |
173 | %{_pkgconfigdir}/pluma.pc | |
174 | ||
175 | %files apidocs | |
176 | %defattr(644,root,root,755) | |
177 | %{_gtkdocdir}/pluma |