]> git.pld-linux.org Git - packages/gpaste.git/blame - gpaste.spec
up to 3.14
[packages/gpaste.git] / gpaste.spec
CommitLineData
6f5eaac5
ER
1Summary: Clipboard management system
2Name: gpaste
59d6ede0 3Version: 3.14
6f5eaac5
ER
4Release: 1
5License: GPL v3+
6Group: X11/Applications
7Source0: http://www.imagination-land.org/files/gpaste/%{name}-%{version}.tar.xz
59d6ede0 8# Source0-md5: a79dd9b38ffdc50199c55ef4f8ddf9e0
6f5eaac5 9URL: https://github.com/Keruspe/GPaste
6f5eaac5
ER
10BuildRequires: clutter-devel
11BuildRequires: dbus-devel
12BuildRequires: desktop-file-utils
13BuildRequires: gdk-pixbuf2-devel
a7d33d28 14BuildRequires: gettext-devel
6f5eaac5
ER
15BuildRequires: glib2-devel
16BuildRequires: gnome-control-center-devel
17BuildRequires: gobject-introspection-devel
18BuildRequires: gtk+3-devel
19BuildRequires: intltool
20BuildRequires: pango-devel
a7d33d28 21BuildRequires: pkgconfig
59d6ede0 22BuildRequires: rpmbuild(macros) >= 1.673
6f5eaac5
ER
23BuildRequires: systemd-units
24BuildRequires: tar >= 1:1.22
25BuildRequires: vala
26BuildRequires: xorg-lib-libX11-devel
27BuildRequires: xorg-lib-libXi-devel
28BuildRequires: xz
29Requires: %{name}-libs = %{version}-%{release}
30Requires: glib2 >= 1:2.26.0
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%define alt_name GPaste
34
6f5eaac5
ER
35%description
36gpasted is a clipboard management daemon with DBus interface. gpaste
37is its CLI client and gpaste-settings is a tool to edit gpasted
38settings.
39
40%package libs
41Summary: Library to manage the clipboard history
42Group: Libraries
43
44%description libs
45libgpaste is a library to manage the clipboard history (used by
46gpasted).
47
48%package devel
49Summary: Development files for %{name}
50Group: Development/Libraries
51Requires: %{name}-libs = %{version}-%{release}
52
53%description devel
54The %{name}-devel package contains libraries and header files for
55developing applications that use %{name}.
56
57%package -n gnome-shell-extension-%{name}
58Summary: GNOME Shell extension for GPaste
59Group: X11/Applications
60Requires: %{name} = %{version}-%{release}
59d6ede0 61Requires: gnome-shell >= 3.14.0
6f5eaac5
ER
62%if "%{_rpmversion}" >= "5"
63BuildArch: noarch
64%endif
65
66%description -n gnome-shell-extension-%{name}
67%{summary}.
68
69%package applet
70Summary: Tray icon to manage GPaste
71Group: X11/Applications
72Requires: %{name} = %{version}-%{release}
73
74%description applet
75%{summary}.
76
565ab163
ER
77%package -n bash-completion-%{name}
78Summary: Bash completion for GPaste commands
79Group: Applications/Shells
80Requires: %{name} = %{version}-%{release}
59d6ede0 81Requires: bash-completion >= 2.0
565ab163
ER
82%if "%{_rpmversion}" >= "5"
83BuildArch: noarch
84%endif
85
86%description -n bash-completion-%{name}
87Bash completion for GPaste commands.
88
89%package -n zsh-completion-%{name}
90Summary: zsh completion for GPaste commands
91Group: Applications/Shells
92Requires: %{name} = %{version}-%{release}
93%if "%{_rpmversion}" >= "5"
94BuildArch: noarch
95%endif
96
97%description -n zsh-completion-%{name}
98zsh completion for GPaste commands.
99
6f5eaac5
ER
100%prep
101%setup -q
102
103%build
104[ -f configure ] || NOCONFIGURE=1 ./autogen.sh
105%configure \
106 --disable-schemas-compile \
107 --disable-silent-rules \
108 --disable-unity \
109 --enable-applet \
6f5eaac5
ER
110 --enable-vala
111%{__make}
112
113%install
114rm -rf $RPM_BUILD_ROOT
115%{__make} install \
116 DESTDIR=$RPM_BUILD_ROOT
117
118rm $RPM_BUILD_ROOT%{_libdir}/*.la
119
120# Install bash/zsh completion support
59d6ede0
ER
121install -d $RPM_BUILD_ROOT%{bash_compdir}
122cp -p data/completions/%{name} $RPM_BUILD_ROOT%{bash_compdir}
6f5eaac5 123install -d $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
565ab163 124cp -p data/completions/_%{name} $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
6f5eaac5
ER
125
126%find_lang %{alt_name}
127
6f5eaac5
ER
128desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Settings.desktop
129desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/org.gnome.GPaste.Applet.desktop
130desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/org.gnome.GPaste.Applet.desktop
131
132%clean
133rm -rf $RPM_BUILD_ROOT
134
135%post libs -p /sbin/ldconfig
136%postun libs -p /sbin/ldconfig
137
138%post
139%glib_compile_schemas
140
141%postun
142%glib_compile_schemas
143
144%files -f %{alt_name}.lang
145%defattr(644,root,root,755)
146%doc AUTHORS COPYING NEWS README.md THANKS TODO
147%attr(755,root,root) %{_bindir}/%{name}
148%{_mandir}/man1/%{name}.1.*
149%dir %{_libdir}/%{name}
59d6ede0 150%attr(755,root,root) %{_libdir}/%{name}/gpaste-daemon
6f5eaac5
ER
151%attr(755,root,root) %{_libdir}/%{name}/gpaste-settings
152%attr(755,root,root) %{_libdir}/%{name}/gpasted
153%{_datadir}/appdata/org.gnome.GPaste.Settings.appdata.xml
154%{_desktopdir}/org.gnome.GPaste.Settings.desktop
59d6ede0
ER
155%{_datadir}/dbus-1/services/org.gnome.GPaste.Applet.service
156%{_datadir}/dbus-1/services/org.gnome.GPaste.Settings.service
6f5eaac5
ER
157%{_datadir}/dbus-1/services/org.gnome.GPaste.service
158%{_datadir}/glib-2.0/schemas/org.gnome.GPaste.gschema.xml
159%{_datadir}/gnome-control-center/keybindings/*-gpaste.xml
6f5eaac5
ER
160
161%files libs
162%defattr(644,root,root,755)
59d6ede0
ER
163%attr(755,root,root) %{_libdir}/libgpaste.so.*.*.*
164%attr(755,root,root) %ghost %{_libdir}/libgpaste.so.2
6f5eaac5
ER
165%{_libdir}/girepository-1.0/GPaste-1.0.typelib
166
167%files devel
168%defattr(644,root,root,755)
169%{_datadir}/gir-1.0/GPaste-1.0.gir
170%{_datadir}/vala/vapi/gpaste-1.0.deps
171%{_datadir}/vala/vapi/gpaste-1.0.vapi
172%{_includedir}/%{name}
59d6ede0
ER
173%{_libdir}/libgpaste.so
174%{_pkgconfigdir}/gpaste-1.0.pc
6f5eaac5
ER
175
176%files applet
177%defattr(644,root,root,755)
178%attr(755,root,root) %{_libdir}/%{name}/%{name}-applet
179%{_mandir}/man1/%{name}-applet.1.*
180%{_datadir}/appdata/org.gnome.GPaste.Applet.appdata.xml
181%{_desktopdir}/org.gnome.GPaste.Applet.desktop
182/etc/xdg/autostart/org.gnome.GPaste.Applet.desktop
183
184%files -n gnome-shell-extension-%{name}
185%defattr(644,root,root,755)
186%{_datadir}/gnome-shell/extensions/GPaste@gnome-shell-extensions.gnome.org
565ab163
ER
187
188%files -n bash-completion-%{name}
189%defattr(644,root,root,755)
59d6ede0 190%{bash_compdir}/%{name}
565ab163
ER
191
192%files -n zsh-completion-%{name}
193%defattr(644,root,root,755)
194%{_datadir}/zsh/site-functions/_%{name}
This page took 0.112338 seconds and 4 git commands to generate.