]>
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 |
a01b6667 | 9 | Release: 3 |
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 |
a01b6667 | 31 | BuildRequires: rpmbuild(macros) >= 2.011 |
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 | |
a01b6667 | 37 | Requires(post,preun): systemd-units >= 250.1 |
6f5eaac5 | 38 | Requires: %{name}-libs = %{version}-%{release} |
a01b6667 | 39 | Requires: systemd-units >= 250.1 |
ed6db707 | 40 | Obsoletes: gpaste-applet < 3.20 |
2aa69239 | 41 | Suggests: wgetpaste >= 2.26 |
6f5eaac5 ER |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
6f5eaac5 | 44 | %description |
fe0023f8 JB |
45 | gpasted is a clipboard management daemon with DBus interface. |
46 | gpaste-client is its CLI client and gpaste-settings is a tool to edit | |
47 | gpasted settings. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | gpasted to demon zarządzający schowkiem przy użyciu interfejsu DBus. | |
51 | gpaste-client to klient linii poleceń, a gpaste-settings to narzędzie | |
52 | do modyfikowania ustawień. | |
6f5eaac5 ER |
53 | |
54 | %package libs | |
55 | Summary: Library to manage the clipboard history | |
fe0023f8 | 56 | Summary(pl.UTF-8): Biblioteka do zarządzania historią schowka |
6f5eaac5 | 57 | Group: Libraries |
ed6db707 JB |
58 | Requires: gdk-pixbuf2 >= 2.38.0 |
59 | Requires: glib2 >= 1:2.58 | |
60 | Requires: gtk+3 >= 3.24 | |
6f5eaac5 ER |
61 | |
62 | %description libs | |
63 | libgpaste is a library to manage the clipboard history (used by | |
64 | gpasted). | |
65 | ||
fe0023f8 JB |
66 | %description libs -l pl.UTF-8 |
67 | libgpaste to biblioteka do zarządzania historią schowka | |
68 | (wykorzystywana przez gpasted). | |
69 | ||
6f5eaac5 | 70 | %package devel |
fe0023f8 JB |
71 | Summary: Development files for libgpaste library |
72 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libgpaste | |
6f5eaac5 ER |
73 | Group: Development/Libraries |
74 | Requires: %{name}-libs = %{version}-%{release} | |
ed6db707 JB |
75 | Requires: gdk-pixbuf2-devel >= 2.38.0 |
76 | Requires: glib2-devel >= 1:2.58 | |
77 | Requires: gtk+3-devel >= 3.24 | |
6f5eaac5 ER |
78 | |
79 | %description devel | |
fe0023f8 JB |
80 | This package contains the header files for developing applications |
81 | that use libgpaste library. | |
82 | ||
83 | %description devel -l pl.UTF-8 | |
84 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
85 | wykorzystujących bibliotekę libgpaste. | |
86 | ||
87 | %package -n vala-gpaste | |
88 | Summary: Vala API for libgpaste library | |
89 | Summary(pl.UTF-8): API języka Vala do biblioteki libgpaste | |
90 | Group: Development/Libraries | |
91 | Requires: %{name}-devel = %{version}-%{release} | |
ed6db707 | 92 | Requires: vala >= 2:0.42 |
fe0023f8 JB |
93 | |
94 | %description -n vala-gpaste | |
95 | Vala API for libgpaste library. | |
96 | ||
97 | %description -n vala-gpaste -l pl.UTF-8 | |
98 | API języka Vala do biblioteki libgpaste. | |
6f5eaac5 ER |
99 | |
100 | %package -n gnome-shell-extension-%{name} | |
101 | Summary: GNOME Shell extension for GPaste | |
fe0023f8 | 102 | Summary(pl.UTF-8): Rozszerzenie powłoki GNOME (GNOME Shell) dla GPaste |
6f5eaac5 ER |
103 | Group: X11/Applications |
104 | Requires: %{name} = %{version}-%{release} | |
ed6db707 | 105 | Requires: gnome-shell >= 3.36 |
6f5eaac5 | 106 | BuildArch: noarch |
6f5eaac5 ER |
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 |
565ab163 | 120 | BuildArch: noarch |
565ab163 ER |
121 | |
122 | %description -n bash-completion-%{name} | |
123 | Bash completion for GPaste commands. | |
124 | ||
fe0023f8 JB |
125 | %description -n bash-completion-%{name} -l pl.UTF-8 |
126 | Bashowe dopełnianie parametrów poleceń GPaste. | |
127 | ||
565ab163 | 128 | %package -n zsh-completion-%{name} |
fe0023f8 JB |
129 | Summary: ZSH completion for GPaste commands |
130 | Summary(pl.UTF-8): Dopełnianie parametrów ZSH dla poleceń GPaste | |
565ab163 ER |
131 | Group: Applications/Shells |
132 | Requires: %{name} = %{version}-%{release} | |
565ab163 | 133 | BuildArch: noarch |
565ab163 ER |
134 | |
135 | %description -n zsh-completion-%{name} | |
136 | zsh completion for GPaste commands. | |
137 | ||
fe0023f8 JB |
138 | %description -n zsh-completion-%{name} -l pl.UTF-8 |
139 | Dopełnianie parametrów ZSH dla poleceń GPaste. | |
140 | ||
6f5eaac5 ER |
141 | %prep |
142 | %setup -q | |
ed6db707 | 143 | %patch0 -p1 |
6f5eaac5 ER |
144 | |
145 | %build | |
ed6db707 JB |
146 | %{__libtoolize} |
147 | %{__aclocal} -I m4 | |
148 | %{__autoconf} | |
149 | %{__autoheader} | |
150 | %{__automake} | |
6f5eaac5 | 151 | %configure \ |
fe0023f8 | 152 | %{!?with_gnome_shell:--disable-gnome-shell-extension} \ |
ba8b70bb ER |
153 | --disable-schemas-compile \ |
154 | --disable-silent-rules \ | |
fe0023f8 JB |
155 | --enable-vala \ |
156 | --with-controlcenterdir=%{_datadir}/gnome-control-center/keybindings \ | |
157 | --with-systemduserunitdir=%{systemduserunitdir} | |
6f5eaac5 ER |
158 | %{__make} |
159 | ||
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
ed6db707 | 162 | |
6f5eaac5 ER |
163 | %{__make} install \ |
164 | DESTDIR=$RPM_BUILD_ROOT | |
165 | ||
fe0023f8 | 166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
6f5eaac5 ER |
167 | |
168 | # Install bash/zsh completion support | |
59d6ede0 | 169 | install -d $RPM_BUILD_ROOT%{bash_compdir} |
eca4b56d | 170 | cp -p data/completions/gpaste-client $RPM_BUILD_ROOT%{bash_compdir} |
6f5eaac5 | 171 | install -d $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions |
eca4b56d | 172 | cp -p data/completions/_gpaste-client $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions |
6f5eaac5 | 173 | |
1e1e4f42 JB |
174 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl} |
175 | ||
fe0023f8 | 176 | %find_lang GPaste |
6f5eaac5 | 177 | |
eca4b56d | 178 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Ui.desktop |
6f5eaac5 ER |
179 | |
180 | %clean | |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
183 | %post libs -p /sbin/ldconfig | |
184 | %postun libs -p /sbin/ldconfig | |
185 | ||
186 | %post | |
187 | %glib_compile_schemas | |
a01b6667 JR |
188 | %systemd_user_post org.gnome.GPaste.service org.gnome.GPaste.Ui.service |
189 | ||
190 | %preun | |
191 | %systemd_user_preun org.gnome.GPaste.service org.gnome.GPaste.Ui.service | |
6f5eaac5 ER |
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 |