[7782] | 1 | %global alt_name GPaste |
---|
| 2 | |
---|
| 3 | Name: gpaste |
---|
| 4 | Version: 3.0.2 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | Summary: Clipboard management system |
---|
| 7 | Summary(ja): クリップボード管理システム |
---|
| 8 | |
---|
| 9 | Group: User Interface/Desktops |
---|
| 10 | License: GPLv3+ |
---|
| 11 | URL: https://github.com/Keruspe/GPaste |
---|
| 12 | Source0: https://github.com/downloads/Keruspe/%{alt_name}/%{name}-%{version}.tar.xz |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | |
---|
| 16 | BuildRequires: chrpath |
---|
| 17 | BuildRequires: dbus-devel |
---|
| 18 | BuildRequires: desktop-file-utils |
---|
| 19 | BuildRequires: gettext |
---|
| 20 | BuildRequires: glib2-devel >= 2.30 |
---|
| 21 | BuildRequires: gobject-introspection-devel |
---|
| 22 | BuildRequires: gtk3-devel |
---|
| 23 | BuildRequires: intltool >= 0.40.0 |
---|
| 24 | BuildRequires: libxml2-devel |
---|
| 25 | BuildRequires: libXtst-devel |
---|
| 26 | BuildRequires: vala-devel >= 0.14 |
---|
| 27 | BuildRequires: vala-tools >= 0.14 |
---|
| 28 | BuildRequires: xcb-util-keysyms-devel |
---|
| 29 | |
---|
| 30 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
| 31 | |
---|
| 32 | %description |
---|
| 33 | gpasted is a clipboard management daemon with DBus interface. gpaste is its CLI |
---|
| 34 | client and gpaste-settings is a tool to edit gpasted settings. |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %package libs |
---|
| 38 | Summary: Library to manage the clipboard history |
---|
| 39 | Group: System Environment/Libraries |
---|
| 40 | |
---|
| 41 | %description libs |
---|
| 42 | libgpaste is a library to manage the clipboard history (used by gpasted). |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | %package devel |
---|
| 46 | Summary: Development files for %{name} |
---|
| 47 | Summary(ja): %{name} の開発ファイル |
---|
| 48 | Group: Development/Libraries |
---|
| 49 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
| 50 | |
---|
| 51 | %description devel |
---|
| 52 | The %{name}-devel package contains libraries and header files for |
---|
| 53 | developing applications that use %{name}. |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %package -n gnome-shell-extensions-%{name} |
---|
| 57 | Summary: GNOME Shell extension for GPaste |
---|
| 58 | Summary(ja): GPaste 用の Gnome Shell 機能拡張 |
---|
| 59 | Group: User Interface/Desktops |
---|
| 60 | Requires: gnome-shell >= 3.3.5 |
---|
| 61 | Requires: %{name} = %{version}-%{release} |
---|
| 62 | BuildArch: noarch |
---|
| 63 | |
---|
| 64 | %description -n gnome-shell-extensions-%{name} |
---|
| 65 | %{summary}. |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %prep |
---|
| 69 | %setup -q |
---|
| 70 | |
---|
| 71 | %build |
---|
| 72 | ./autogen.sh |
---|
| 73 | # Applet disabled since it is unusable in GNOME 3 |
---|
| 74 | %configure \ |
---|
| 75 | --disable-applet \ |
---|
| 76 | --disable-schemas-compile |
---|
| 77 | make %{?_smp_mflags} |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %install |
---|
| 81 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 82 | |
---|
| 83 | rm $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 84 | |
---|
| 85 | # Fix Rpath issues |
---|
| 86 | chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/%{name}/gpasted |
---|
| 87 | chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/%{name}/gpaste-settings |
---|
| 88 | |
---|
| 89 | # Install bash/zsh completion support |
---|
| 90 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ |
---|
| 91 | install -pm 0644 data/completions/%{name} -t $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ |
---|
| 92 | install -d $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/ |
---|
| 93 | install -pm 0644 data/completions/_%{name} -t $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/ |
---|
| 94 | |
---|
| 95 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-settings.desktop |
---|
| 96 | |
---|
| 97 | %find_lang %{alt_name} |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %post libs -p /sbin/ldconfig |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %postun libs -p /sbin/ldconfig |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | %postun |
---|
| 107 | if [ $1 -eq 0 ]; then |
---|
| 108 | /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : |
---|
| 109 | fi |
---|
| 110 | |
---|
| 111 | %posttrans |
---|
| 112 | /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %files -f %{alt_name}.lang |
---|
| 116 | %defattr(-,root,root,-) |
---|
| 117 | %doc AUTHORS ChangeLog COPYING NEWS THANKS TODO |
---|
| 118 | %{_bindir}/%{name} |
---|
| 119 | %{_libexecdir}/%{name}/ |
---|
| 120 | %{_datadir}/applications/%{name}-settings.desktop |
---|
| 121 | %{_datadir}/dbus-1/services/*.service |
---|
| 122 | %{_datadir}/glib-2.0/schemas/*.xml |
---|
| 123 | %{_datadir}/vala/vapi/* |
---|
| 124 | %{_datadir}/zsh/ |
---|
| 125 | %{_mandir}/man1/%{name}.1.* |
---|
| 126 | %{_sysconfdir}/bash_completion.d/ |
---|
| 127 | |
---|
| 128 | |
---|
| 129 | %files libs |
---|
| 130 | %defattr(-,root,root,-) |
---|
| 131 | %{_libdir}/girepository-1.0/%{alt_name}-1.0.typelib |
---|
| 132 | %{_libdir}/*.so.* |
---|
| 133 | |
---|
| 134 | |
---|
| 135 | %files devel |
---|
| 136 | %defattr(-,root,root,-) |
---|
| 137 | %{_datadir}/gir-1.0/*.gir |
---|
| 138 | %{_includedir}/%{name}/ |
---|
| 139 | %{_libdir}/*.so |
---|
| 140 | %{_libdir}/pkgconfig/*.pc |
---|
| 141 | |
---|
| 142 | |
---|
| 143 | %files -n gnome-shell-extensions-%{name} |
---|
| 144 | %defattr(-,root,root,-) |
---|
| 145 | %{_datadir}/gnome-shell/extensions/GPaste@gnome-shell-extensions.gnome.org/ |
---|
| 146 | |
---|
| 147 | |
---|
| 148 | %changelog |
---|
| 149 | * Sat Aug 31 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.2-1 |
---|
| 150 | - initial build for VineSeed |
---|
| 151 | |
---|
| 152 | * Sat May 19 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.8.1-1 |
---|
| 153 | - Update to 2.8.1 |
---|
| 154 | |
---|
| 155 | * Thu May 03 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.8-1 |
---|
| 156 | - Update to 2.8 |
---|
| 157 | |
---|
| 158 | * Sun Apr 08 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.5-2 |
---|
| 159 | - Fix Group and Requires tags in subpackages |
---|
| 160 | |
---|
| 161 | * Fri Mar 30 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.5-1 |
---|
| 162 | - Update to 2.5 |
---|
| 163 | |
---|
| 164 | * Sat Jan 07 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.2.1-1 |
---|
| 165 | - Update to 2.2.1 |
---|
| 166 | |
---|
| 167 | * Fri Dec 09 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.1-1 |
---|
| 168 | - Update to 2.1 |
---|
| 169 | |
---|
| 170 | * Tue Nov 29 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.0-1 |
---|
| 171 | - Update to 2.0 |
---|
| 172 | |
---|
| 173 | * Sun Sep 25 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.6-1 |
---|
| 174 | - Update to 1.6 |
---|
| 175 | - Remove no longer needed gpaste-1.5-DOS.patch patch |
---|
| 176 | |
---|
| 177 | * Wed Sep 14 2011 Mohamed El Morabity <melmorabity@fedorapeople.org> - 1.5-1 |
---|
| 178 | - Update to 1.5 |
---|
| 179 | - Remove gpaste-1.3-remove_applet_refs.patch patch (there is no more reference |
---|
| 180 | to the GNOME 2 applet in documentation and completion files) |
---|
| 181 | - Add gpaste-1.5-DSO.patch to fix DSO linking |
---|
| 182 | |
---|
| 183 | * Sat Sep 03 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.3-1 |
---|
| 184 | - Update to 1.3 |
---|
| 185 | |
---|
| 186 | * Sun Jul 10 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.2-1 |
---|
| 187 | - Update to 1.2 |
---|
| 188 | |
---|
| 189 | * Sat Jun 25 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.99-1.17dd47git |
---|
| 190 | - Initial RPM release |
---|