Package imsettings: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/glib-gettextize /usr/bin/gtkdocize gcc-c++ glib2-devel pkgconfig(check) pkgconfig(gconf-2.0) pkgconfig(gdk-2.0) pkgconfig(gio-2.0) pkgconfig(glib-2.0) pkgconfig(gmodule-2.0) pkgconfig(gobject-2.0) pkgconfig(gthread-2.0) pkgconfig(gtk+-2.0) # END SourceDeps(oneline) %add_findreq_skiplist %_libexecdir/xinputinfo.sh %add_findreq_skiplist /etc/X11/xinit/xinitrc.d/50-xinput.sh Name: imsettings Version: 1.6.8 Release: alt1 License: LGPLv2+ URL: https://tagoh.bitbucket.org/%{name}/ Packager: Ilya Mashkin <oddity@altlinux.ru> BuildRequires: desktop-file-utils BuildRequires: intltool gettext BuildRequires: libtool automake autoconf BuildRequires: glib2 >= 2.32.0 gobject-introspection-devel libgtk+3-devel >= 3.3.3 BuildRequires: libnotify-devel BuildRequires: libX11-devel libgxim-devel >= 0.5.0 %if !0%{?rhel} BuildRequires: libxfconf-devel %endif Source0: https://bitbucket.org/tagoh/%{name}/downloads/%{name}-%{version}.tar.bz2 ## Fedora specific: run IM for certain languages only Patch0: %{name}-constraint-of-language.patch ## Fedora specific: Disable XIM support Patch1: %{name}-disable-xim.patch ## Fedora specific: Enable xcompose for certain languages Patch2: %{name}-xinput-xcompose.patch ## Fedora specific: Force enable the IM management on imsettings for Cinnamon Patch3: %{name}-force-enable-for-cinnamon.patch Patch4: %{name}-fix-configure.patch Summary: Delivery framework for general Input Method configuration Group: File tools Requires: xinit >= 1.0.2-22.fc8 Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-desktop-module%{?_isa} = %{version}-%{release} Requires(post): /bin/dbus-send alternatives Requires(postun): /bin/dbus-send alternatives Source44: import.info %description IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains the core DBus services and some utilities. %package libs Summary: Libraries for imsettings Group: Development/C %description libs IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains the shared library for imsettings. %package devel Summary: Development files for imsettings Group: Development/C Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains the development files to make any applications with imsettings. %package xim Summary: XIM support on imsettings Group: File tools Requires: %{name}%{?_isa} = %{version}-%{release} Requires: im-chooser %description xim IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a module to get this working with XIM. %package gsettings Summary: GSettings support on imsettings Group: File tools Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dconf Provides: imsettings-desktop-module%{?_isa} = %{version}-%{release} Provides: %{name}-gnome = %{version}-%{release} Obsoletes: %{name}-gnome < 1.5.1-3 %description gsettings IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a module to get this working on GNOME and Cinnamon which requires GSettings in their own XSETTINGS daemons. %package qt Summary: Qt support on imsettings Group: File tools Requires: %{name}%{?_isa} = %{version}-%{release} Requires: im-chooser Provides: imsettings-desktop-module%{?_isa} = %{version}-%{release} %description qt IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a module to get this working on Qt applications. %if !0%{?rhel} %package xfce Summary: Xfce support on imsettings Group: File tools Requires: %{name}%{?_isa} = %{version}-%{release} Requires: im-chooser-xfce Requires: xfce4-settings >= 4.5.99.1-2 Provides: imsettings-desktop-module%{?_isa} = %{version}-%{release} %description xfce IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a module to get this working on Xfce. %package lxde Summary: LXDE support on imsettings Group: File tools Requires: %{name}%{?_isa} = %{version}-%{release} Requires: lxde-settings-daemon # Hack for upgrades: see https://bugzilla.redhat.com/show_bug.cgi?id=693809 Requires: lxde-lxsession Requires: /usr/bin/lxsession Requires: im-chooser Provides: imsettings-desktop-module%{?_isa} = %{version}-%{release} %description lxde IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a module to get this working on LXDE. %package mate Summary: MATE support on imsettings Group: File tools Requires: %{name}%{?_isa} = %{version}-%{release} # need to keep more deps for similar reason to https://bugzilla.redhat.com/show_bug.cgi?id=693809 Requires: mate-settings-daemon >= 1.5.0 Requires: mate-session-manager Requires: im-chooser Provides: imsettings-desktop-module%{?_isa} = %{version}-%{release} %description mate IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a module to get this working on MATE. %package cinnamon Summary: Cinnamon support on imsettings Group: File tools Requires: %{name}%{?_isa} = %{version}-%{release} # need to keep more deps for similar reason to https://bugzilla.redhat.com/show_bug.cgi?id=693809 Requires: cinnamon Requires: cinnamon-session Requires: im-chooser Provides: imsettings-desktop-module%{?_isa} = %{version}-%{release} %description cinnamon IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a module to get this working on Cinnamon. %endif %prep %setup -q %patch0 -p1 -b .0-lang %patch1 -p1 -b .1-xim %patch2 -p1 -b .2-xcompose %patch3 -p1 -b .3-force-cinnamon %patch4 -p1 -b .4-fix-configure %build autoreconf -f %configure \ --with-xinputsh=50-xinput.sh \ --disable-static \ --disable-schemas-install make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" # change the file attributes chmod 0755 $RPM_BUILD_ROOT%{_libexecdir}/imsettings-target-checker.sh chmod 0755 $RPM_BUILD_ROOT%{_libexecdir}/xinputinfo.sh chmod 0755 $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh # clean up the unnecessary files rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/imsettings/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/imsettings/libimsettings-{gconf,mateconf}.so %if 0%{?rhel} rm -f $RPM_BUILD_ROOT%{_libdir}/imsettings/libimsettings-{lxde,xfce,mate-gsettings}.so %endif desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/imsettings-start.desktop %find_lang %{name} install -d $RPM_BUILD_ROOT/%_altdir; cat >$RPM_BUILD_ROOT/%_altdir/xinputrc_imsettings<<EOF %{_sysconfdir}/X11/xinit/xinputrc %{_sysconfdir}/X11/xinit/xinput.d/none.conf 10 EOF install -d $RPM_BUILD_ROOT/%_altdir; cat >$RPM_BUILD_ROOT/%_altdir/xinputrc_imsettings<<EOF %{_sysconfdir}/X11/xinit/xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xcompose.conf 20 EOF install -d $RPM_BUILD_ROOT/%_altdir; cat >$RPM_BUILD_ROOT/%_altdir/xinputrc_imsettings<<EOF %{_sysconfdir}/X11/xinit/xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xim.conf 30 EOF #%%check ## Disable it because it requires DBus session # make check %post dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || : %postun if [ "$1" = 0 ]; then : dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || : fi %files -f %{name}.lang %_altdir/xinputrc_imsettings %_altdir/xinputrc_imsettings %_altdir/xinputrc_imsettings %doc AUTHORS COPYING ChangeLog NEWS README %dir %{_libdir}/imsettings %{_bindir}/imsettings-info %{_bindir}/imsettings-list %{_bindir}/imsettings-reload %{_bindir}/imsettings-switch %{_libexecdir}/imsettings-check %{_libexecdir}/imsettings-daemon %{_libexecdir}/xinputinfo.sh %{_libexecdir}/imsettings-functions %{_libexecdir}/imsettings-target-checker.sh %{_datadir}/dbus-1/services/*.service %{_datadir}/pixmaps/*.png %{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh %{_sysconfdir}/X11/xinit/xinput.d %{_sysconfdir}/xdg/autostart/imsettings-start.desktop %{_mandir}/man1/imsettings-*.1* %files libs %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/libimsettings.so.* %files devel %doc AUTHORS COPYING ChangeLog NEWS README %{_includedir}/imsettings %{_libdir}/libimsettings.so %{_libdir}/pkgconfig/imsettings.pc %{_libdir}/girepository-*/IMSettings-*.typelib %{_datadir}/gir-*/IMSettings-*.gir %{_datadir}/gtk-doc/html/imsettings %files xim %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/imsettings-xim %{_libdir}/imsettings/libimsettings-xim.so %files gsettings %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-gsettings.so %files qt %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-qt.so %if !0%{?rhel} %files xfce %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-xfce.so %files lxde %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-lxde.so %files mate %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-mate-gsettings.so %files cinnamon %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-cinnamon-gsettings.so %endif %changelog * Sat Nov 07 2015 Ilya Mashkin <oddity@altlinux.ru> 1.6.8-alt1 - 1.6.8 - update patchset * Tue Aug 26 2014 Ilya Mashkin <oddity@altlinux.ru> 1.6.7-alt2 - build for Sisyphus * Mon Jul 07 2014 Igor Vlasenko <viy@altlinux.ru> 1.6.7-alt1_3 - update to new release by fcimport * Tue Apr 01 2014 Igor Vlasenko <viy@altlinux.ru> 1.6.7-alt1_2 - update to new release by fcimport * Fri Feb 21 2014 Igor Vlasenko <viy@altlinux.ru> 1.6.7-alt1_1 - update to new release by fcimport * Tue Aug 27 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.3-alt1_2 - update to new release by fcimport * Fri Jun 21 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.3-alt1_1 - update to new release by fcimport * Fri May 31 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.2-alt1_1 - update to new release by fcimport * Wed Apr 10 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.1-alt1_2 - update to new release by fcimport * Thu Mar 14 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.0-alt1_3 - update to new release by fcimport * Wed Feb 13 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.0-alt1_2 - update to new release by fcimport * Tue Feb 12 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.0-alt1_1 - update to new release by fcimport * Tue Feb 12 2013 Cronbuild Service <cronbuild@altlinux.org> 1.5.1-alt2_2 - rebuild to get rid of unmets * Thu Dec 27 2012 Igor Vlasenko <viy@altlinux.ru> 1.5.1-alt1_2 - initial fc import |