]>
Commit | Line | Data |
---|---|---|
af8af55b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x (disables python) | |
4 | %bcond_without python # Python support | |
5 | ||
6 | %if %{with gtk3} | |
7 | %undefine with_python | |
8 | %endif | |
77cbe844 JB |
9 | Summary: Pluma - MATE Text Editor |
10 | Summary(pl.UTF-8): Pluma - edytor tekstu dla środowiska MATE | |
cf9e9c57 | 11 | Name: pluma |
f46a2d6f | 12 | Version: 1.16.0 |
37c02ab2 | 13 | Release: 1 |
77cbe844 | 14 | License: GPL v2+ |
d2e3ce6f | 15 | Group: X11/Applications/Editors |
f46a2d6f JP |
16 | Source0: http://pub.mate-desktop.org/releases/1.16/%{name}-%{version}.tar.xz |
17 | # Source0-md5: 0c171f4892db34688938777e359834db | |
77cbe844 JB |
18 | Patch0: %{name}-python.patch |
19 | URL: http://mate-desktop.org/ | |
20 | BuildRequires: autoconf >= 2.63.2 | |
21 | BuildRequires: automake >= 1:1.10 | |
22 | BuildRequires: docbook-dtd412-xml | |
23 | BuildRequires: enchant-devel >= 1.2.0 | |
758b61ed | 24 | BuildRequires: gettext-tools >= 0.17 |
37c02ab2 JB |
25 | BuildRequires: glib2-devel >= 1:2.36.0 |
26 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} | |
af8af55b | 27 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} |
77cbe844 | 28 | BuildRequires: gtk-doc >= 1.0 |
af8af55b JB |
29 | %{!?with_gtk3:BuildRequires: gtksourceview2-devel >= 2.9.7} |
30 | %{?with_gtk3:BuildRequires: gtksourceview3-devel >= 3.0} | |
66a714c4 | 31 | BuildRequires: intltool >= 0.50.1 |
77cbe844 | 32 | BuildRequires: iso-codes >= 0.35 |
af8af55b | 33 | BuildRequires: libsoup-devel >= 2.4 |
77cbe844 JB |
34 | BuildRequires: libtool >= 2:2.2.6 |
35 | BuildRequires: libxml2-devel >= 1:2.5.0 | |
36 | BuildRequires: mate-common | |
77cbe844 | 37 | BuildRequires: pkgconfig |
af8af55b | 38 | %if %{with python} |
77cbe844 JB |
39 | BuildRequires: python-devel >= 1:2.5 |
40 | BuildRequires: python-gtksourceview2-devel >= 2.9.2 | |
41 | BuildRequires: python-pygobject-devel >= 2.15.4 | |
42 | BuildRequires: python-pygtk-devel >= 2:2.12.0 | |
af8af55b | 43 | %endif |
77cbe844 JB |
44 | BuildRequires: rpm-pythonprov |
45 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
46 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 | |
47 | BuildRequires: xorg-lib-libX11-devel | |
cf9e9c57 | 48 | BuildRequires: yelp-tools |
37c02ab2 | 49 | Requires(post,postun): glib2 >= 1:2.36.0 |
77cbe844 | 50 | Requires: enchant >= 1.2.0 |
37c02ab2 JB |
51 | Requires: glib2 >= 1:2.36.0 |
52 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} | |
af8af55b JB |
53 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} |
54 | %{!?with_gtk3:Requires: gtksourceview2 >= 2.9.7} | |
55 | %{?with_gtk3:Requires: gtksourceview3 >= 3.0} | |
77cbe844 JB |
56 | Requires: iso-codes >= 0.35 |
57 | Requires: libxml2 >= 1:2.5.0 | |
af8af55b | 58 | %if %{with python} |
77cbe844 JB |
59 | Requires: python-gtksourceview2 >= 2.9.2 |
60 | Requires: python-pygobject >= 2.15.4 | |
61 | Requires: python-pygtk-gtk >= 2:2.12.0 | |
af8af55b | 62 | %endif |
77cbe844 | 63 | Requires: xorg-lib-libSM >= 1.0.0 |
cf9e9c57 | 64 | Obsoletes: mate-text-editor |
77cbe844 JB |
65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
66 | ||
67 | %description | |
68 | Pluma is a small and lightweight UTF-8 text editor for the MATE | |
69 | environment. Based on gedit, the text editor for the GNOME 2 | |
70 | environment. | |
71 | ||
72 | %description -l pl.UTF-8 | |
ac849814 ER |
73 | Pluma to mały i lekki edytor tekstu w UTF-8 dla środowiska MATE. Jest |
74 | oparty na programie gedit - edytorze tekstu dla środowiska GNOME 2. | |
77cbe844 JB |
75 | |
76 | %package devel | |
77 | Summary: Header files for Pluma plugins development | |
78 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek edytora Pluma | |
79 | Group: X11/Development/Libraries | |
80 | # doesn't require base | |
37c02ab2 JB |
81 | Requires: glib2-devel >= 1:2.36.0 |
82 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0} | |
af8af55b JB |
83 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} |
84 | %{!?with_gtk3:Requires: gtksourceview2-devel >= 2.9.7} | |
85 | %{?with_gtk3:Requires: gtksourceview3-devel >= 3.0} | |
77cbe844 JB |
86 | |
87 | %description devel | |
88 | Header files for Pluma plugins development. | |
89 | ||
90 | %description devel -l pl.UTF-8 | |
91 | Pliki nagłówkowe do tworzenia wtyczek edytora Pluma. | |
92 | ||
93 | %package apidocs | |
94 | Summary: Pluma API documentation | |
95 | Summary(pl.UTF-8): Dokumentacja API edytora Pluma | |
96 | Group: Documentation | |
ac849814 ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
77cbe844 JB |
100 | |
101 | %description apidocs | |
102 | Pluma API documentation. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API edytora Pluma. | |
106 | ||
107 | %prep | |
108 | %setup -q | |
109 | %patch0 -p1 | |
110 | ||
111 | %build | |
112 | mate-doc-common --copy | |
77cbe844 JB |
113 | %{__intltoolize} |
114 | %{__libtoolize} | |
115 | %{__aclocal} -I m4 | |
116 | %{__autoconf} | |
117 | %{__autoheader} | |
118 | %{__automake} | |
119 | %configure \ | |
af8af55b | 120 | %{!?with_python:--disable-python} \ |
77cbe844 JB |
121 | --disable-schemas-compile \ |
122 | --disable-silent-rules \ | |
af8af55b | 123 | %{?with_gtk3:--with-gtk=3.0} \ |
77cbe844 JB |
124 | --with-html-dir=%{_gtkdocdir} |
125 | ||
126 | %{__make} | |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | %{__make} install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
133 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pluma/{plugin-loaders,plugins}/*.la | |
ce44a8eb | 134 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pms |
77cbe844 | 135 | |
af8af55b | 136 | %find_lang pluma --with-mate |
77cbe844 JB |
137 | |
138 | %clean | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %post | |
142 | %glib_compile_schemas | |
143 | ||
144 | %postun | |
145 | %glib_compile_schemas | |
146 | ||
147 | %files -f pluma.lang | |
148 | %defattr(644,root,root,755) | |
149 | %doc AUTHORS ChangeLog NEWS README | |
77cbe844 JB |
150 | %attr(755,root,root) %{_bindir}/pluma |
151 | %dir %{_libdir}/pluma | |
152 | %attr(755,root,root) %{_libdir}/pluma/pluma-bugreport.sh | |
153 | %dir %{_libdir}/pluma/plugin-loaders | |
154 | %attr(755,root,root) %{_libdir}/pluma/plugin-loaders/libcloader.so | |
af8af55b | 155 | %if %{with python} |
77cbe844 | 156 | %attr(755,root,root) %{_libdir}/pluma/plugin-loaders/libpythonloader.so |
af8af55b | 157 | %endif |
77cbe844 JB |
158 | %dir %{_libdir}/pluma/plugins |
159 | # C plugins | |
160 | %attr(755,root,root) %{_libdir}/pluma/plugins/libchangecase.so | |
161 | %{_libdir}/pluma/plugins/changecase.pluma-plugin | |
162 | %attr(755,root,root) %{_libdir}/pluma/plugins/libdocinfo.so | |
163 | %{_libdir}/pluma/plugins/docinfo.pluma-plugin | |
164 | %attr(755,root,root) %{_libdir}/pluma/plugins/libfilebrowser.so | |
165 | %{_libdir}/pluma/plugins/filebrowser.pluma-plugin | |
166 | %attr(755,root,root) %{_libdir}/pluma/plugins/libmodelines.so | |
167 | %{_libdir}/pluma/plugins/modelines.pluma-plugin | |
168 | %attr(755,root,root) %{_libdir}/pluma/plugins/libsort.so | |
169 | %{_libdir}/pluma/plugins/sort.pluma-plugin | |
170 | %attr(755,root,root) %{_libdir}/pluma/plugins/libspell.so | |
171 | %{_libdir}/pluma/plugins/spell.pluma-plugin | |
172 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtaglist.so | |
173 | %{_libdir}/pluma/plugins/taglist.pluma-plugin | |
174 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtime.so | |
175 | %{_libdir}/pluma/plugins/time.pluma-plugin | |
66a714c4 JP |
176 | %attr(755,root,root) %{_libdir}/pluma/plugins/libtrailsave.so |
177 | %{_libdir}/pluma/plugins/trailsave.pluma-plugin | |
af8af55b | 178 | %if %{with python} |
77cbe844 JB |
179 | # Python plugins |
180 | %{_libdir}/pluma/plugins/externaltools | |
181 | %{_libdir}/pluma/plugins/externaltools.pluma-plugin | |
182 | %{_libdir}/pluma/plugins/pythonconsole | |
183 | %{_libdir}/pluma/plugins/pythonconsole.pluma-plugin | |
184 | %{_libdir}/pluma/plugins/quickopen | |
185 | %{_libdir}/pluma/plugins/quickopen.pluma-plugin | |
186 | %{_libdir}/pluma/plugins/snippets | |
187 | %{_libdir}/pluma/plugins/snippets.pluma-plugin | |
af8af55b | 188 | %endif |
37c02ab2 | 189 | %{_datadir}/appdata/pluma.appdata.xml |
77cbe844 JB |
190 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.gschema.xml |
191 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.filebrowser.gschema.xml | |
05c73260 | 192 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.spell.gschema.xml |
77cbe844 JB |
193 | %{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.time.gschema.xml |
194 | %{_datadir}/pluma | |
195 | %{_desktopdir}/pluma.desktop | |
196 | %{_mandir}/man1/pluma.1* | |
197 | ||
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
200 | %{_includedir}/pluma | |
201 | %{_pkgconfigdir}/pluma.pc | |
202 | ||
203 | %files apidocs | |
204 | %defattr(644,root,root,755) | |
205 | %{_gtkdocdir}/pluma |