]>
Commit | Line | Data |
---|---|---|
1 | Summary: Pluma - MATE Text Editor | |
2 | Summary(pl.UTF-8): Pluma - edytor tekstu dla środowiska MATE | |
3 | Name: pluma | |
4 | Version: 1.26.0 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: X11/Applications/Editors | |
8 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: 3d1dff6ae00d576574ef9a6308d6034b | |
10 | URL: https://wiki.mate-desktop.org/mate-desktop/applications/pluma/ | |
11 | BuildRequires: autoconf >= 2.63.2 | |
12 | BuildRequires: automake >= 1:1.10 | |
13 | BuildRequires: docbook-dtd412-xml | |
14 | BuildRequires: enchant2-devel >= 2 | |
15 | BuildRequires: gettext-tools >= 0.19.8 | |
16 | BuildRequires: glib2-devel >= 1:2.50.0 | |
17 | BuildRequires: gobject-introspection-devel >= 0.9.3 | |
18 | BuildRequires: gtk+3-devel >= 3.22 | |
19 | BuildRequires: gtk-doc >= 1.0 | |
20 | BuildRequires: gtksourceview4-devel >= 4.0.2 | |
21 | BuildRequires: iso-codes >= 0.35 | |
22 | BuildRequires: libpeas-devel >= 1.2.0 | |
23 | BuildRequires: libpeas-gtk-devel >= 1.2.0 | |
24 | BuildRequires: libsoup-devel >= 2.4 | |
25 | BuildRequires: libtool >= 2:2.2.6 | |
26 | BuildRequires: libxml2-devel >= 1:2.5.0 | |
27 | BuildRequires: mate-common | |
28 | BuildRequires: pkgconfig | |
29 | BuildRequires: python3-devel | |
30 | BuildRequires: rpm-pythonprov | |
31 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
32 | BuildRequires: rpmbuild(macros) >= 1.592 | |
33 | BuildRequires: sed >= 4.0 | |
34 | BuildRequires: tar >= 1:1.22 | |
35 | BuildRequires: xorg-lib-libICE-devel >= 1.0.0 | |
36 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 | |
37 | BuildRequires: xorg-lib-libX11-devel | |
38 | BuildRequires: xz | |
39 | BuildRequires: yelp-tools | |
40 | Requires(post,postun): glib2 >= 1:2.50.0 | |
41 | Requires: glib2 >= 1:2.50.0 | |
42 | Requires: gobject-introspection >= 0.9.3 | |
43 | Requires: gtk+3 >= 3.22 | |
44 | Requires: gtksourceview4 >= 4.0.2 | |
45 | Requires: iso-codes >= 0.35 | |
46 | Requires: libpeas >= 1.2.0 | |
47 | Requires: libpeas-gtk >= 1.2.0 | |
48 | Requires: libxml2 >= 1:2.5.0 | |
49 | Requires: python3-pygobject3 >= 3.0 | |
50 | Requires: xorg-lib-libSM >= 1.0.0 | |
51 | Obsoletes: mate-text-editor | |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
53 | ||
54 | %description | |
55 | Pluma is a small and lightweight UTF-8 text editor for the MATE | |
56 | environment. Based on gedit, the text editor for the GNOME 2 | |
57 | environment. | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | Pluma to mały i lekki edytor tekstu w UTF-8 dla środowiska MATE. Jest | |
61 | oparty na programie gedit - edytorze tekstu dla środowiska GNOME 2. | |
62 | ||
63 | %package devel | |
64 | Summary: Header files for Pluma plugins development | |
65 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek edytora Pluma | |
66 | Group: X11/Development/Libraries | |
67 | # doesn't require base | |
68 | Requires: glib2-devel >= 1:2.50.0 | |
69 | Requires: gtk+3-devel >= 3.22 | |
70 | Requires: gtksourceview4-devel >= 4.0.2 | |
71 | ||
72 | %description devel | |
73 | Header files for Pluma plugins development. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
76 | Pliki nagłówkowe do tworzenia wtyczek edytora Pluma. | |
77 | ||
78 | %package apidocs | |
79 | Summary: Pluma API documentation | |
80 | Summary(pl.UTF-8): Dokumentacja API edytora Pluma | |
81 | Group: Documentation | |
82 | BuildArch: noarch | |
83 | ||
84 | %description apidocs | |
85 | Pluma API documentation. | |
86 | ||
87 | %description apidocs -l pl.UTF-8 | |
88 | Dokumentacja API edytora Pluma. | |
89 | ||
90 | %prep | |
91 | %setup -q | |
92 | ||
93 | %{__sed} -i -e '1s|#!/usr/bin/python$|#!%{__python3}|' plugins/externaltools/data/switch-c.tool.in | |
94 | ||
95 | grep -lr '#!/usr/bin/sh' . | xargs %{__sed} -i -e '1 s,#!/usr/bin/sh,#!/bin/sh,' | |
96 | ||
97 | %build | |
98 | mate-doc-common --copy | |
99 | %{__libtoolize} | |
100 | %{__aclocal} -I m4 | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | %configure \ | |
105 | --disable-schemas-compile \ | |
106 | --disable-silent-rules \ | |
107 | --with-html-dir=%{_gtkdocdir} | |
108 | ||
109 | %{__make} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pluma/plugins/*.la | |
117 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,jv,ku_IQ,pms} | |
118 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{frp,ie,ku_IQ} | |
119 | ||
120 | %find_lang pluma --with-mate | |
121 | ||
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post | |
126 | %glib_compile_schemas | |
127 | ||
128 | %postun | |
129 | %glib_compile_schemas | |
130 | ||
131 | %files -f pluma.lang | |
132 | %defattr(644,root,root,755) | |
133 | %doc AUTHORS ChangeLog NEWS README.md | |
134 | %attr(755,root,root) %{_bindir}/pluma | |
135 | %if "%{_libexecdir}" != "%{_libdir}" | |
136 | %dir %{_libexecdir}/pluma | |
137 | %endif | |
138 | %attr(755,root,root) %{_libexecdir}/pluma/pluma-bugreport.sh | |
139 | %dir %{_libdir}/pluma | |
140 | %dir %{_libdir}/pluma/plugins | |
141 | # C plugins | |
142 | %attr(755,root,root) %{_libdir}/pluma/plugins/libdocinfo.so | |
143 | %{_libdir}/pluma/plugins/docinfo.plugin | |
144 | %attr(755,root,root) %{_libdir}/pluma/plugins/libfilebrowser.so | |
145 | %{_libdir}/pluma/plugins/filebrowser.plugin | |
146 | %attr(755,root,root) %{_libdir}/pluma/plugins/libmodelines.so | |
147 | %{_libdir}/pluma/plugins/modelines.plugin | |
148 | %attr(755,root,root) %{_libdir}/pluma/plugins/libsort.so | |
149 | %{_libdir}/pluma/plugins/sort.plugin | |
150 | %attr(755,root,root) %{_libdir}/pluma/plugins/libspell.so | |
151 | %{_libdir}/pluma/plugins/spell.plugin | |
152 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtaglist.so | |
153 | %{_libdir}/pluma/plugins/taglist.plugin | |
154 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtime.so | |
155 | %{_libdir}/pluma/plugins/time.plugin | |
156 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtrailsave.so | |
157 | %{_libdir}/pluma/plugins/trailsave.plugin | |
158 | # Python plugins | |
159 | %{_libdir}/pluma/plugins/externaltools | |
160 | %{_libdir}/pluma/plugins/externaltools.plugin | |
161 | %{_libdir}/pluma/plugins/pythonconsole | |
162 | %{_libdir}/pluma/plugins/pythonconsole.plugin | |
163 | %{_libdir}/pluma/plugins/quickopen | |
164 | %{_libdir}/pluma/plugins/quickopen.plugin | |
165 | %{_libdir}/pluma/plugins/snippets | |
166 | %{_libdir}/pluma/plugins/snippets.plugin | |
167 | %{_libdir}/girepository-1.0/Pluma-1.0.typelib | |
168 | %{_datadir}/metainfo/pluma.appdata.xml | |
169 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.gschema.xml | |
170 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.filebrowser.gschema.xml | |
171 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.pythonconsole.gschema.xml | |
172 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.spell.gschema.xml | |
173 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.time.gschema.xml | |
174 | %{_datadir}/pluma | |
175 | %{_desktopdir}/pluma.desktop | |
176 | %{_mandir}/man1/pluma.1* | |
177 | ||
178 | %files devel | |
179 | %defattr(644,root,root,755) | |
180 | %{_includedir}/pluma | |
181 | %{_pkgconfigdir}/pluma.pc | |
182 | %{_datadir}/gir-1.0/Pluma-1.0.gir | |
183 | ||
184 | %files apidocs | |
185 | %defattr(644,root,root,755) | |
186 | %{_gtkdocdir}/pluma |