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