]> git.pld-linux.org Git - packages/gpaste.git/blob - gpaste.spec
- updated to 3.22.3 (note: new library soname)
[packages/gpaste.git] / gpaste.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome_shell     # GNOME Shell extension
4 %bcond_with     appindicator    # Unity appindicators support
5 #
6 Summary:        Clipboard management system
7 Summary(pl.UTF-8):      System zarządzania schowkiem
8 Name:           gpaste
9 Version:        3.22.3
10 Release:        1
11 License:        BSD
12 Group:          X11/Applications
13 Source0:        http://www.imagination-land.org/files/gpaste/%{name}-%{version}.tar.xz
14 # Source0-md5:  e8b55d285e1b5f3d5f75edca9935cc15
15 URL:            https://github.com/Keruspe/GPaste
16 BuildRequires:  appstream-glib-devel
17 BuildRequires:  clutter-devel
18 BuildRequires:  dbus-devel
19 BuildRequires:  desktop-file-utils
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}
27 BuildRequires:  pango-devel
28 BuildRequires:  pkgconfig >= 1:0.29
29 BuildRequires:  rpmbuild(macros) >= 1.673
30 BuildRequires:  tar >= 1:1.22
31 BuildRequires:  vala >= 2:0.32
32 BuildRequires:  xorg-lib-libX11-devel
33 BuildRequires:  xorg-lib-libXi-devel
34 BuildRequires:  xz
35 Requires:       %{name}-libs = %{version}-%{release}
36 Requires:       glib2 >= 1:2.50
37 Suggests:       wgetpaste >= 2.26
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
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ń.
49
50 %package libs
51 Summary:        Library to manage the clipboard history
52 Summary(pl.UTF-8):      Biblioteka do zarządzania historią schowka
53 Group:          Libraries
54
55 %description libs
56 libgpaste is a library to manage the clipboard history (used by
57 gpasted).
58
59 %description libs -l pl.UTF-8
60 libgpaste to biblioteka do zarządzania historią schowka
61 (wykorzystywana przez gpasted).
62
63 %package devel
64 Summary:        Development files for libgpaste library
65 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libgpaste
66 Group:          Development/Libraries
67 Requires:       %{name}-libs = %{version}-%{release}
68
69 %description devel
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.
89
90 %package -n gnome-shell-extension-%{name}
91 Summary:        GNOME Shell extension for GPaste
92 Summary(pl.UTF-8):      Rozszerzenie powłoki GNOME (GNOME Shell) dla GPaste
93 Group:          X11/Applications
94 Requires:       %{name} = %{version}-%{release}
95 Requires:       gnome-shell >= 3.14.0
96 %if "%{_rpmversion}" >= "5"
97 BuildArch:      noarch
98 %endif
99
100 %description -n gnome-shell-extension-%{name}
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.
105
106 %package applet
107 Summary:        Tray icon to manage GPaste
108 Summary(pl.UTF-8):      Ikona tacki do zarządzania GPaste
109 Group:          X11/Applications
110 Requires:       %{name} = %{version}-%{release}
111
112 %description applet
113 Tray icon to manage GPaste.
114
115 %description applet -l pl.UTF-8
116 Ikona tacki do zarządzania GPaste.
117
118 %package -n bash-completion-%{name}
119 Summary:        Bash completion for GPaste commands
120 Summary(pl.UTF-8):      Bashowe dopełnianie parametrów poleceń GPaste
121 Group:          Applications/Shells
122 Requires:       %{name} = %{version}-%{release}
123 Requires:       bash-completion >= 2.0
124 %if "%{_rpmversion}" >= "5"
125 BuildArch:      noarch
126 %endif
127
128 %description -n bash-completion-%{name}
129 Bash completion for GPaste commands.
130
131 %description -n bash-completion-%{name} -l pl.UTF-8
132 Bashowe dopełnianie parametrów poleceń GPaste.
133
134 %package -n zsh-completion-%{name}
135 Summary:        ZSH completion for GPaste commands
136 Summary(pl.UTF-8):      Dopełnianie parametrów ZSH dla poleceń GPaste
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
146 %description -n zsh-completion-%{name} -l pl.UTF-8
147 Dopełnianie parametrów ZSH dla poleceń GPaste.
148
149 %prep
150 %setup -q
151
152 %build
153 %configure \
154         %{!?with_gnome_shell:--disable-gnome-shell-extension} \
155         --disable-schemas-compile \
156         --disable-silent-rules \
157         --enable-applet \
158         %{?with_appindicator:--enable-unity} \
159         --enable-vala \
160         --with-controlcenterdir=%{_datadir}/gnome-control-center/keybindings \
161         --with-systemduserunitdir=%{systemduserunitdir}
162 %{__make}
163
164 %install
165 rm -rf $RPM_BUILD_ROOT
166 %{__make} install \
167         DESTDIR=$RPM_BUILD_ROOT
168
169 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
170
171 # Install bash/zsh completion support
172 install -d $RPM_BUILD_ROOT%{bash_compdir}
173 cp -p data/completions/gpaste-client $RPM_BUILD_ROOT%{bash_compdir}
174 install -d $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
175 cp -p data/completions/_gpaste-client $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
176
177 %find_lang GPaste
178
179 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Ui.desktop
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
195 %files -f GPaste.lang
196 %defattr(644,root,root,755)
197 %doc AUTHORS COPYING ChangeLog NEWS README.md THANKS TODO
198 %attr(755,root,root) %{_bindir}/gpaste-client
199 %{_mandir}/man1/gpaste-client.1*
200 %dir %{_libdir}/%{name}
201 %attr(755,root,root) %{_libdir}/%{name}/gpaste-daemon
202 %{systemduserunitdir}/org.gnome.GPaste.service
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
206
207 %files libs
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libdir}/libgpaste.so.*.*.*
210 %attr(755,root,root) %ghost %{_libdir}/libgpaste.so.6
211 %{_libdir}/girepository-1.0/GPaste-1.0.typelib
212
213 %files devel
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/libgpaste.so
216 %{_datadir}/gir-1.0/GPaste-1.0.gir
217 %{_includedir}/%{name}
218 %{_pkgconfigdir}/gpaste-1.0.pc
219
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
225 %files applet
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/%{name}/%{name}-applet
228 %attr(755,root,root) %{_libdir}/%{name}/%{name}-ui
229 %{systemduserunitdir}/org.gnome.GPaste.Applet.service
230 %{systemduserunitdir}/org.gnome.GPaste.Ui.service
231 %{_datadir}/appdata/org.gnome.GPaste.Applet.appdata.xml
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
235 %{_desktopdir}/org.gnome.GPaste.Applet.desktop
236 %{_desktopdir}/org.gnome.GPaste.Ui.desktop
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
242 %{_datadir}/gnome-shell/search-providers/org.gnome.GPaste.search-provider.ini
243
244 %files -n bash-completion-%{name}
245 %defattr(644,root,root,755)
246 %{bash_compdir}/gpaste-client
247
248 %files -n zsh-completion-%{name}
249 %defattr(644,root,root,755)
250 %{_datadir}/zsh/site-functions/_gpaste-client
This page took 0.654539 seconds and 3 git commands to generate.