3 %bcond_without gnome_shell # GNOME Shell extension
5 Summary: Clipboard management system
6 Summary(pl.UTF-8): System zarządzania schowkiem
11 Group: X11/Applications
12 Source0: http://www.imagination-land.org/files/gpaste/%{name}-%{version}.tar.xz
13 # Source0-md5: 3bd71852b7a0fe9a94994698c38c91e6
14 Patch0: %{name}-sh.patch
15 URL: https://github.com/Keruspe/GPaste
16 BuildRequires: appstream-glib-devel
17 BuildRequires: autoconf >= 2.69
18 BuildRequires: automake >= 1:1.15
19 BuildRequires: dbus-devel
20 BuildRequires: desktop-file-utils
21 BuildRequires: gdk-pixbuf2-devel >= 2.38.0
22 BuildRequires: gettext-tools >= 0.19.7
23 BuildRequires: gjs-devel >= 1.54.0
24 BuildRequires: glib2-devel >= 1:2.58
25 BuildRequires: gobject-introspection-devel >= 1.58.0
26 BuildRequires: gtk+3-devel >= 3.24
27 BuildRequires: libtool >= 2:2.2.6
28 %{?with_gnome_shell:BuildRequires: mutter-devel >= 3.36}
29 BuildRequires: pango-devel
30 BuildRequires: pkgconfig >= 1:0.29
31 BuildRequires: rpmbuild(macros) >= 1.673
32 BuildRequires: tar >= 1:1.22
33 BuildRequires: vala >= 2:0.42
34 BuildRequires: xorg-lib-libX11-devel
35 BuildRequires: xorg-lib-libXi-devel
37 Requires: %{name}-libs = %{version}-%{release}
38 Obsoletes: gpaste-applet < 3.20
39 Suggests: wgetpaste >= 2.26
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 gpasted is a clipboard management daemon with DBus interface.
44 gpaste-client is its CLI client and gpaste-settings is a tool to edit
47 %description -l pl.UTF-8
48 gpasted to demon zarządzający schowkiem przy użyciu interfejsu DBus.
49 gpaste-client to klient linii poleceń, a gpaste-settings to narzędzie
50 do modyfikowania ustawień.
53 Summary: Library to manage the clipboard history
54 Summary(pl.UTF-8): Biblioteka do zarządzania historią schowka
56 Requires: gdk-pixbuf2 >= 2.38.0
57 Requires: glib2 >= 1:2.58
58 Requires: gtk+3 >= 3.24
61 libgpaste is a library to manage the clipboard history (used by
64 %description libs -l pl.UTF-8
65 libgpaste to biblioteka do zarządzania historią schowka
66 (wykorzystywana przez gpasted).
69 Summary: Development files for libgpaste library
70 Summary(pl.UTF-8): Pliki programistyczne biblioteki libgpaste
71 Group: Development/Libraries
72 Requires: %{name}-libs = %{version}-%{release}
73 Requires: gdk-pixbuf2-devel >= 2.38.0
74 Requires: glib2-devel >= 1:2.58
75 Requires: gtk+3-devel >= 3.24
78 This package contains the header files for developing applications
79 that use libgpaste library.
81 %description devel -l pl.UTF-8
82 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
83 wykorzystujących bibliotekę libgpaste.
85 %package -n vala-gpaste
86 Summary: Vala API for libgpaste library
87 Summary(pl.UTF-8): API języka Vala do biblioteki libgpaste
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
90 Requires: vala >= 2:0.42
92 %description -n vala-gpaste
93 Vala API for libgpaste library.
95 %description -n vala-gpaste -l pl.UTF-8
96 API języka Vala do biblioteki libgpaste.
98 %package -n gnome-shell-extension-%{name}
99 Summary: GNOME Shell extension for GPaste
100 Summary(pl.UTF-8): Rozszerzenie powłoki GNOME (GNOME Shell) dla GPaste
101 Group: X11/Applications
102 Requires: %{name} = %{version}-%{release}
103 Requires: gnome-shell >= 3.36
104 %if "%{_rpmversion}" >= "4.6"
108 %description -n gnome-shell-extension-%{name}
109 GNOME Shell extension for GPaste.
111 %description -n gnome-shell-extension-%{name} -l pl.UTF-8
112 Rozszerzenie powłoki GNOME (GNOME Shell) dla GPaste.
114 %package -n bash-completion-%{name}
115 Summary: Bash completion for GPaste commands
116 Summary(pl.UTF-8): Bashowe dopełnianie parametrów poleceń GPaste
117 Group: Applications/Shells
118 Requires: %{name} = %{version}-%{release}
119 Requires: bash-completion >= 2.0
120 %if "%{_rpmversion}" >= "4.6"
124 %description -n bash-completion-%{name}
125 Bash completion for GPaste commands.
127 %description -n bash-completion-%{name} -l pl.UTF-8
128 Bashowe dopełnianie parametrów poleceń GPaste.
130 %package -n zsh-completion-%{name}
131 Summary: ZSH completion for GPaste commands
132 Summary(pl.UTF-8): Dopełnianie parametrów ZSH dla poleceń GPaste
133 Group: Applications/Shells
134 Requires: %{name} = %{version}-%{release}
135 %if "%{_rpmversion}" >= "4.6"
139 %description -n zsh-completion-%{name}
140 zsh completion for GPaste commands.
142 %description -n zsh-completion-%{name} -l pl.UTF-8
143 Dopełnianie parametrów ZSH dla poleceń GPaste.
156 %{!?with_gnome_shell:--disable-gnome-shell-extension} \
157 --disable-schemas-compile \
158 --disable-silent-rules \
160 --with-controlcenterdir=%{_datadir}/gnome-control-center/keybindings \
161 --with-systemduserunitdir=%{systemduserunitdir}
165 rm -rf $RPM_BUILD_ROOT
168 DESTDIR=$RPM_BUILD_ROOT
170 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
172 # Install bash/zsh completion support
173 install -d $RPM_BUILD_ROOT%{bash_compdir}
174 cp -p data/completions/gpaste-client $RPM_BUILD_ROOT%{bash_compdir}
175 install -d $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
176 cp -p data/completions/_gpaste-client $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
180 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Ui.desktop
183 rm -rf $RPM_BUILD_ROOT
185 %post libs -p /sbin/ldconfig
186 %postun libs -p /sbin/ldconfig
189 %glib_compile_schemas
192 %glib_compile_schemas
194 %files -f GPaste.lang
195 %defattr(644,root,root,755)
196 %doc AUTHORS COPYING ChangeLog NEWS README.md THANKS TODO
197 %attr(755,root,root) %{_bindir}/gpaste-client
198 %{_mandir}/man1/gpaste-client.1*
199 %dir %{_libexecdir}/gpaste
200 %attr(755,root,root) %{_libexecdir}/gpaste/gpaste-daemon
201 %attr(755,root,root) %{_libexecdir}/gpaste/gpaste-ui
202 %{systemduserunitdir}/org.gnome.GPaste.service
203 %{systemduserunitdir}/org.gnome.GPaste.Ui.service
204 %{_datadir}/dbus-1/services/org.gnome.GPaste.service
205 %{_datadir}/dbus-1/services/org.gnome.GPaste.Ui.service
206 %{_datadir}/glib-2.0/schemas/org.gnome.GPaste.gschema.xml
207 %{_datadir}/gnome-control-center/keybindings/*-gpaste.xml
208 %{_datadir}/metainfo/org.gnome.GPaste.Ui.appdata.xml
209 %{_desktopdir}/org.gnome.GPaste.Ui.desktop
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/libgpaste.so.*.*.*
214 %attr(755,root,root) %ghost %{_libdir}/libgpaste.so.11
215 %{_libdir}/girepository-1.0/GPaste-1.0.typelib
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libgpaste.so
220 %{_datadir}/gir-1.0/GPaste-1.0.gir
221 %{_includedir}/gpaste
222 %{_pkgconfigdir}/gpaste-1.0.pc
224 %files -n vala-gpaste
225 %defattr(644,root,root,755)
226 %{_datadir}/vala/vapi/gpaste-1.0.deps
227 %{_datadir}/vala/vapi/gpaste-1.0.vapi
229 %files -n gnome-shell-extension-%{name}
230 %defattr(644,root,root,755)
231 %{_datadir}/gnome-shell/extensions/GPaste@gnome-shell-extensions.gnome.org
232 %{_datadir}/gnome-shell/search-providers/org.gnome.GPaste.search-provider.ini
234 %files -n bash-completion-%{name}
235 %defattr(644,root,root,755)
236 %{bash_compdir}/gpaste-client
238 %files -n zsh-completion-%{name}
239 %defattr(644,root,root,755)
240 %{_datadir}/zsh/site-functions/_gpaste-client