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