]>
Commit | Line | Data |
---|---|---|
fe0023f8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gnome_shell # GNOME Shell extension | |
4 | %bcond_with appindicator # Unity appindicators support | |
5 | # | |
6f5eaac5 | 6 | Summary: Clipboard management system |
fe0023f8 | 7 | Summary(pl.UTF-8): System zarządzania schowkiem |
6f5eaac5 | 8 | Name: gpaste |
fe0023f8 | 9 | Version: 3.22.3 |
2aa69239 | 10 | Release: 1 |
fe0023f8 | 11 | License: BSD |
6f5eaac5 ER |
12 | Group: X11/Applications |
13 | Source0: http://www.imagination-land.org/files/gpaste/%{name}-%{version}.tar.xz | |
fe0023f8 | 14 | # Source0-md5: e8b55d285e1b5f3d5f75edca9935cc15 |
6f5eaac5 | 15 | URL: https://github.com/Keruspe/GPaste |
fe0023f8 | 16 | BuildRequires: appstream-glib-devel |
6f5eaac5 ER |
17 | BuildRequires: clutter-devel |
18 | BuildRequires: dbus-devel | |
19 | BuildRequires: desktop-file-utils | |
fe0023f8 JB |
20 | BuildRequires: gdk-pixbuf2-devel >= 2.26.0 |
21 | BuildRequires: gettext-tools >= 0.19.7 | |
22 | BuildRequires: glib2-devel >= 1:2.50 | |
23 | BuildRequires: gobject-introspection-devel >= 1.50 | |
24 | BuildRequires: gtk+3-devel >= 3.22 | |
25 | %{?with_appindicator:BuildRequires: libappindicator-gtk3-devel} | |
26 | %{?with_gnome_shell:BuildRequires: mutter-devel} | |
6f5eaac5 | 27 | BuildRequires: pango-devel |
fe0023f8 | 28 | BuildRequires: pkgconfig >= 1:0.29 |
59d6ede0 | 29 | BuildRequires: rpmbuild(macros) >= 1.673 |
6f5eaac5 | 30 | BuildRequires: tar >= 1:1.22 |
fe0023f8 | 31 | BuildRequires: vala >= 2:0.32 |
6f5eaac5 ER |
32 | BuildRequires: xorg-lib-libX11-devel |
33 | BuildRequires: xorg-lib-libXi-devel | |
34 | BuildRequires: xz | |
35 | Requires: %{name}-libs = %{version}-%{release} | |
fe0023f8 | 36 | Requires: glib2 >= 1:2.50 |
2aa69239 | 37 | Suggests: wgetpaste >= 2.26 |
6f5eaac5 ER |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
6f5eaac5 | 40 | %description |
fe0023f8 JB |
41 | gpasted is a clipboard management daemon with DBus interface. |
42 | gpaste-client is its CLI client and gpaste-settings is a tool to edit | |
43 | gpasted settings. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | gpasted to demon zarządzający schowkiem przy użyciu interfejsu DBus. | |
47 | gpaste-client to klient linii poleceń, a gpaste-settings to narzędzie | |
48 | do modyfikowania ustawień. | |
6f5eaac5 ER |
49 | |
50 | %package libs | |
51 | Summary: Library to manage the clipboard history | |
fe0023f8 | 52 | Summary(pl.UTF-8): Biblioteka do zarządzania historią schowka |
6f5eaac5 ER |
53 | Group: Libraries |
54 | ||
55 | %description libs | |
56 | libgpaste is a library to manage the clipboard history (used by | |
57 | gpasted). | |
58 | ||
fe0023f8 JB |
59 | %description libs -l pl.UTF-8 |
60 | libgpaste to biblioteka do zarządzania historią schowka | |
61 | (wykorzystywana przez gpasted). | |
62 | ||
6f5eaac5 | 63 | %package devel |
fe0023f8 JB |
64 | Summary: Development files for libgpaste library |
65 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libgpaste | |
6f5eaac5 ER |
66 | Group: Development/Libraries |
67 | Requires: %{name}-libs = %{version}-%{release} | |
68 | ||
69 | %description devel | |
fe0023f8 JB |
70 | This package contains the header files for developing applications |
71 | that use libgpaste library. | |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
75 | wykorzystujących bibliotekę libgpaste. | |
76 | ||
77 | %package -n vala-gpaste | |
78 | Summary: Vala API for libgpaste library | |
79 | Summary(pl.UTF-8): API języka Vala do biblioteki libgpaste | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | Requires: vala >= 2:0.32 | |
83 | ||
84 | %description -n vala-gpaste | |
85 | Vala API for libgpaste library. | |
86 | ||
87 | %description -n vala-gpaste -l pl.UTF-8 | |
88 | API języka Vala do biblioteki libgpaste. | |
6f5eaac5 ER |
89 | |
90 | %package -n gnome-shell-extension-%{name} | |
91 | Summary: GNOME Shell extension for GPaste | |
fe0023f8 | 92 | Summary(pl.UTF-8): Rozszerzenie powłoki GNOME (GNOME Shell) dla GPaste |
6f5eaac5 ER |
93 | Group: X11/Applications |
94 | Requires: %{name} = %{version}-%{release} | |
59d6ede0 | 95 | Requires: gnome-shell >= 3.14.0 |
6f5eaac5 ER |
96 | %if "%{_rpmversion}" >= "5" |
97 | BuildArch: noarch | |
98 | %endif | |
99 | ||
100 | %description -n gnome-shell-extension-%{name} | |
fe0023f8 JB |
101 | GNOME Shell extension for GPaste. |
102 | ||
103 | %description -n gnome-shell-extension-%{name} -l pl.UTF-8 | |
104 | Rozszerzenie powłoki GNOME (GNOME Shell) dla GPaste. | |
6f5eaac5 ER |
105 | |
106 | %package applet | |
107 | Summary: Tray icon to manage GPaste | |
fe0023f8 | 108 | Summary(pl.UTF-8): Ikona tacki do zarządzania GPaste |
6f5eaac5 ER |
109 | Group: X11/Applications |
110 | Requires: %{name} = %{version}-%{release} | |
111 | ||
112 | %description applet | |
fe0023f8 JB |
113 | Tray icon to manage GPaste. |
114 | ||
115 | %description applet -l pl.UTF-8 | |
116 | Ikona tacki do zarządzania GPaste. | |
6f5eaac5 | 117 | |
565ab163 ER |
118 | %package -n bash-completion-%{name} |
119 | Summary: Bash completion for GPaste commands | |
fe0023f8 | 120 | Summary(pl.UTF-8): Bashowe dopełnianie parametrów poleceń GPaste |
565ab163 ER |
121 | Group: Applications/Shells |
122 | Requires: %{name} = %{version}-%{release} | |
59d6ede0 | 123 | Requires: bash-completion >= 2.0 |
565ab163 ER |
124 | %if "%{_rpmversion}" >= "5" |
125 | BuildArch: noarch | |
126 | %endif | |
127 | ||
128 | %description -n bash-completion-%{name} | |
129 | Bash completion for GPaste commands. | |
130 | ||
fe0023f8 JB |
131 | %description -n bash-completion-%{name} -l pl.UTF-8 |
132 | Bashowe dopełnianie parametrów poleceń GPaste. | |
133 | ||
565ab163 | 134 | %package -n zsh-completion-%{name} |
fe0023f8 JB |
135 | Summary: ZSH completion for GPaste commands |
136 | Summary(pl.UTF-8): Dopełnianie parametrów ZSH dla poleceń GPaste | |
565ab163 ER |
137 | Group: Applications/Shells |
138 | Requires: %{name} = %{version}-%{release} | |
139 | %if "%{_rpmversion}" >= "5" | |
140 | BuildArch: noarch | |
141 | %endif | |
142 | ||
143 | %description -n zsh-completion-%{name} | |
144 | zsh completion for GPaste commands. | |
145 | ||
fe0023f8 JB |
146 | %description -n zsh-completion-%{name} -l pl.UTF-8 |
147 | Dopełnianie parametrów ZSH dla poleceń GPaste. | |
148 | ||
6f5eaac5 ER |
149 | %prep |
150 | %setup -q | |
151 | ||
152 | %build | |
6f5eaac5 | 153 | %configure \ |
fe0023f8 | 154 | %{!?with_gnome_shell:--disable-gnome-shell-extension} \ |
ba8b70bb ER |
155 | --disable-schemas-compile \ |
156 | --disable-silent-rules \ | |
ba8b70bb | 157 | --enable-applet \ |
fe0023f8 JB |
158 | %{?with_appindicator:--enable-unity} \ |
159 | --enable-vala \ | |
160 | --with-controlcenterdir=%{_datadir}/gnome-control-center/keybindings \ | |
161 | --with-systemduserunitdir=%{systemduserunitdir} | |
6f5eaac5 ER |
162 | %{__make} |
163 | ||
164 | %install | |
165 | rm -rf $RPM_BUILD_ROOT | |
166 | %{__make} install \ | |
167 | DESTDIR=$RPM_BUILD_ROOT | |
168 | ||
fe0023f8 | 169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
6f5eaac5 ER |
170 | |
171 | # Install bash/zsh completion support | |
59d6ede0 | 172 | install -d $RPM_BUILD_ROOT%{bash_compdir} |
eca4b56d | 173 | cp -p data/completions/gpaste-client $RPM_BUILD_ROOT%{bash_compdir} |
6f5eaac5 | 174 | install -d $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions |
eca4b56d | 175 | cp -p data/completions/_gpaste-client $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions |
6f5eaac5 | 176 | |
fe0023f8 | 177 | %find_lang GPaste |
6f5eaac5 | 178 | |
eca4b56d | 179 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Ui.desktop |
6f5eaac5 ER |
180 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Applet.desktop |
181 | desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/org.gnome.GPaste.Applet.desktop | |
182 | ||
183 | %clean | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %post libs -p /sbin/ldconfig | |
187 | %postun libs -p /sbin/ldconfig | |
188 | ||
189 | %post | |
190 | %glib_compile_schemas | |
191 | ||
192 | %postun | |
193 | %glib_compile_schemas | |
194 | ||
fe0023f8 | 195 | %files -f GPaste.lang |
6f5eaac5 | 196 | %defattr(644,root,root,755) |
fe0023f8 | 197 | %doc AUTHORS COPYING ChangeLog NEWS README.md THANKS TODO |
eca4b56d ER |
198 | %attr(755,root,root) %{_bindir}/gpaste-client |
199 | %{_mandir}/man1/gpaste-client.1* | |
6f5eaac5 | 200 | %dir %{_libdir}/%{name} |
59d6ede0 | 201 | %attr(755,root,root) %{_libdir}/%{name}/gpaste-daemon |
fe0023f8 | 202 | %{systemduserunitdir}/org.gnome.GPaste.service |
6f5eaac5 ER |
203 | %{_datadir}/dbus-1/services/org.gnome.GPaste.service |
204 | %{_datadir}/glib-2.0/schemas/org.gnome.GPaste.gschema.xml | |
205 | %{_datadir}/gnome-control-center/keybindings/*-gpaste.xml | |
6f5eaac5 ER |
206 | |
207 | %files libs | |
208 | %defattr(644,root,root,755) | |
59d6ede0 | 209 | %attr(755,root,root) %{_libdir}/libgpaste.so.*.*.* |
fe0023f8 | 210 | %attr(755,root,root) %ghost %{_libdir}/libgpaste.so.6 |
6f5eaac5 ER |
211 | %{_libdir}/girepository-1.0/GPaste-1.0.typelib |
212 | ||
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
fe0023f8 | 215 | %attr(755,root,root) %{_libdir}/libgpaste.so |
6f5eaac5 | 216 | %{_datadir}/gir-1.0/GPaste-1.0.gir |
6f5eaac5 | 217 | %{_includedir}/%{name} |
59d6ede0 | 218 | %{_pkgconfigdir}/gpaste-1.0.pc |
6f5eaac5 | 219 | |
fe0023f8 JB |
220 | %files -n vala-gpaste |
221 | %defattr(644,root,root,755) | |
222 | %{_datadir}/vala/vapi/gpaste-1.0.deps | |
223 | %{_datadir}/vala/vapi/gpaste-1.0.vapi | |
224 | ||
6f5eaac5 ER |
225 | %files applet |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_libdir}/%{name}/%{name}-applet | |
2aa69239 | 228 | %attr(755,root,root) %{_libdir}/%{name}/%{name}-ui |
fe0023f8 JB |
229 | %{systemduserunitdir}/org.gnome.GPaste.Applet.service |
230 | %{systemduserunitdir}/org.gnome.GPaste.Ui.service | |
6f5eaac5 | 231 | %{_datadir}/appdata/org.gnome.GPaste.Applet.appdata.xml |
2aa69239 ER |
232 | %{_datadir}/appdata/org.gnome.GPaste.Ui.appdata.xml |
233 | %{_datadir}/dbus-1/services/org.gnome.GPaste.Applet.service | |
234 | %{_datadir}/dbus-1/services/org.gnome.GPaste.Ui.service | |
6f5eaac5 | 235 | %{_desktopdir}/org.gnome.GPaste.Applet.desktop |
2aa69239 | 236 | %{_desktopdir}/org.gnome.GPaste.Ui.desktop |
6f5eaac5 ER |
237 | /etc/xdg/autostart/org.gnome.GPaste.Applet.desktop |
238 | ||
239 | %files -n gnome-shell-extension-%{name} | |
240 | %defattr(644,root,root,755) | |
241 | %{_datadir}/gnome-shell/extensions/GPaste@gnome-shell-extensions.gnome.org | |
eca4b56d | 242 | %{_datadir}/gnome-shell/search-providers/org.gnome.GPaste.search-provider.ini |
565ab163 ER |
243 | |
244 | %files -n bash-completion-%{name} | |
245 | %defattr(644,root,root,755) | |
eca4b56d | 246 | %{bash_compdir}/gpaste-client |
565ab163 ER |
247 | |
248 | %files -n zsh-completion-%{name} | |
249 | %defattr(644,root,root,755) | |
eca4b56d | 250 | %{_datadir}/zsh/site-functions/_gpaste-client |