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 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | Group: System/Base # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-alternatives BuildRequires: /usr/bin/desktop-file-validate /usr/bin/gtkdocize gcc-c++ glib2-devel pkgconfig(check) pkgconfig(gconf-2.0) pkgconfig(gdk-2.0) pkgconfig(gio-2.0) pkgconfig(gtk+-2.0) # END SourceDeps(oneline) %filter_from_requires /^systemd/d %add_findreq_skiplist %_libexecdir/xinputinfo.sh %add_findreq_skiplist /etc/X11/xinit/xinitrc.d/50-xinput.sh BuildRequires: libdbus-devel # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: imsettings Version: 1.8.9 Release: alt1 License: LGPLv2+ URL: https://gitlab.com/tagoh/%{name}/ BuildRequires: desktop-file-utils BuildRequires: gettext gettext-tools BuildRequires: libtool automake autoconf BuildRequires: libgio >= 2.32.0, gobject-introspection-devel gtk3-demo libgail3-devel libgtk+3 libgtk+3-devel libgtk+3-gir-devel BuildRequires: libnotify-devel libnotify-gir-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 Summary: Delivery framework for general Input Method configuration Requires: xinit >= 1.0.2 Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-desktop-module = %{version}-%{release} Requires: /bin/bash Requires: %{name}-systemd 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 Group: Development/Other Summary: Libraries for imsettings %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 Group: Development/Other Summary: Development files for imsettings Requires: %{name}-libs = %{version}-%{release} Requires: pkgconfig Requires: libgio %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 Group: System/Base Summary: XIM support on imsettings Requires: %{name} = %{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 Group: System/Base Summary: GSettings support on imsettings Requires: %{name} = %{version}-%{release} Requires: dconf libdconf Provides: imsettings-desktop-module = %{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 Group: System/Base Summary: Qt support on imsettings Requires: %{name} = %{version}-%{release} Requires: im-chooser Provides: imsettings-desktop-module = %{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 Group: System/Base Summary: Xfce support on imsettings Requires: %{name} = %{version}-%{release} Requires: im-chooser-xfce Requires: xfce4-settings >= 4.5.99.1 Provides: imsettings-desktop-module = %{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 Group: System/Base Summary: LXDE support on imsettings Requires: %{name} = %{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 = %{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 Group: System/Base Summary: MATE support on imsettings Requires: %{name} = %{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 Requires: im-chooser Provides: imsettings-desktop-module = %{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 Group: System/Base Summary: Cinnamon support on imsettings Requires: %{name} = %{version}-%{release} # need to keep more deps for similar reason to https://bugzilla.redhat.com/show_bug.cgi?id=693809 Requires: cinnamon cinnamon-data Requires: cinnamon-session Requires: im-chooser Provides: imsettings-desktop-module = %{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 %package systemd Group: System/Base Summary: Generic support for imsettings by systemd Requires: %{name} = %{version}-%{release} Requires: im-chooser Provides: imsettings-desktop-module = %{version}-%{release} %description systemd 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 support basic functionality for imsettings by systemd. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build %configure \ --with-xinputsh=50-xinput.sh \ --disable-static \ --disable-schemas-install %make_build %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,cinnamon-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 systemctl reload dbus.service 2>&1 || : %postun if [ "$1" = 0 ]; then : systemctl reload dbus.service 2>&1 || : fi %files -f %{name}.lang %_altdir/xinputrc_imsettings %_altdir/xinputrc_imsettings %_altdir/xinputrc_imsettings %doc --no-dereference COPYING %doc AUTHORS 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 --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/libimsettings.so.5* %files devel %doc --no-dereference COPYING %doc AUTHORS 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 --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_bindir}/imsettings-xim %{_libdir}/imsettings/libimsettings-xim.so %files gsettings %doc --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-gsettings.so %files qt %doc --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-qt.so %if !0%{?rhel} %files xfce %doc --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-xfce.so %files lxde %doc --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-lxde.so %files mate %doc --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-mate-gsettings.so # note: done by robot; when cinnamon is supported, not just unifdef me, notify viy@ too # because cinnamon isn't supported on e2k yet %ifnarch e2k %files cinnamon %doc --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-cinnamon-gsettings.so %endif %endif %files systemd %doc --no-dereference COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-systemd-gtk.so %{_libdir}/imsettings/libimsettings-systemd-qt.so %changelog * Thu Apr 11 2024 Ilya Mashkin <oddity@altlinux.ru> 1.8.9-alt1 - 1.8.9 * Sun Jan 02 2022 Igor Vlasenko <viy@altlinux.org> 1.8.3-alt1_1 - update to new release by fcimport * Tue Feb 25 2020 Igor Vlasenko <viy@altlinux.ru> 1.8.2-alt1_1 - update to new release by fcimport * Thu Aug 29 2019 Michael Shigorin <mike@altlinux.org> 1.8.1-alt2_1 - reenable cinnamon subpackage for %%e2k * Fri Mar 15 2019 Igor Vlasenko <viy@altlinux.ru> 1.8.1-alt1_1 - update to new release by fcimport * Sun Feb 17 2019 Igor Vlasenko <viy@altlinux.ru> 1.7.3-alt1_7 - merged git fixes to hook, sync with fc * Mon Aug 20 2018 Mikhail Efremov <sem@altlinux.org> 1.7.3-alt1_2.2 - Fix build: add libdbus-devel to BR. - Rebuild with libxfconf-0.so.3. * Thu Mar 01 2018 Grigory Ustinov <grenka@altlinux.org> 1.7.3-alt1_2.1 - NMU: Disable cinnamon section for e2k. * Sat Feb 03 2018 Igor Vlasenko <viy@altlinux.ru> 1.7.3-alt1_2 - update to new release by fcimport * Fri Nov 03 2017 Igor Vlasenko <viy@altlinux.ru> 1.7.2-alt1_5 - update to new version by fcimport * 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 |