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