]> git.pld-linux.org Git - packages/gpaste.git/blob - gpaste.spec
8fb4834c157718e844f29c7fc6a0aa5cab54f76e
[packages/gpaste.git] / gpaste.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome_shell     # GNOME Shell extension
4 #
5 Summary:        Clipboard management system
6 Summary(pl.UTF-8):      System zarządzania schowkiem
7 Name:           gpaste
8 Version:        3.36.3
9 Release:        1
10 License:        BSD
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
36 BuildRequires:  xz
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)
41
42 %description
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ń.
51
52 %package libs
53 Summary:        Library to manage the clipboard history
54 Summary(pl.UTF-8):      Biblioteka do zarządzania historią schowka
55 Group:          Libraries
56 Requires:       gdk-pixbuf2 >= 2.38.0
57 Requires:       glib2 >= 1:2.58
58 Requires:       gtk+3 >= 3.24
59
60 %description libs
61 libgpaste is a library to manage the clipboard history (used by
62 gpasted).
63
64 %description libs -l pl.UTF-8
65 libgpaste to biblioteka do zarządzania historią schowka
66 (wykorzystywana przez gpasted).
67
68 %package devel
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
76
77 %description devel
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}
90 Requires:       vala >= 2:0.42
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.
97
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"
105 BuildArch:      noarch
106 %endif
107
108 %description -n gnome-shell-extension-%{name}
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.
113
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"
121 BuildArch:      noarch
122 %endif
123
124 %description -n bash-completion-%{name}
125 Bash completion for GPaste commands.
126
127 %description -n bash-completion-%{name} -l pl.UTF-8
128 Bashowe dopełnianie parametrów poleceń GPaste.
129
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"
136 BuildArch:      noarch
137 %endif
138
139 %description -n zsh-completion-%{name}
140 zsh completion for GPaste commands.
141
142 %description -n zsh-completion-%{name} -l pl.UTF-8
143 Dopełnianie parametrów ZSH dla poleceń GPaste.
144
145 %prep
146 %setup -q
147 %patch0 -p1
148
149 %build
150 %{__libtoolize}
151 %{__aclocal} -I m4
152 %{__autoconf}
153 %{__autoheader}
154 %{__automake}
155 %configure \
156         %{!?with_gnome_shell:--disable-gnome-shell-extension} \
157         --disable-schemas-compile \
158         --disable-silent-rules \
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
167 %{__make} install \
168         DESTDIR=$RPM_BUILD_ROOT
169
170 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
171
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
177
178 %find_lang GPaste
179
180 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Ui.desktop
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %post   libs -p /sbin/ldconfig
186 %postun libs -p /sbin/ldconfig
187
188 %post
189 %glib_compile_schemas
190
191 %postun
192 %glib_compile_schemas
193
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
210
211 %files libs
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
216
217 %files devel
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
223
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
228
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
233
234 %files -n bash-completion-%{name}
235 %defattr(644,root,root,755)
236 %{bash_compdir}/gpaste-client
237
238 %files -n zsh-completion-%{name}
239 %defattr(644,root,root,755)
240 %{_datadir}/zsh/site-functions/_gpaste-client
This page took 0.073285 seconds and 2 git commands to generate.