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