Package ConsoleKit2: 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 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %define _libexecdir %_prefix/libexec %define systemdsystemunitdir /lib/systemd/system %define oname ConsoleKit Name: ConsoleKit2 Version: 1.2.1 Release: alt2.M80P.3 Summary: System daemon for tracking users, sessions and seats License: GPL Group: System/Libraries URL: https://github.com/ConsoleKit2/ConsoleKit2 Packager: Anton Midyukov <antohami@altlinux.org> Requires: lib%name = %version-%release Requires: pam-ck-connector2 = %version-%release Provides: ConsoleKit = %version-%release Obsoletes: ConsoleKit < %version-%release PreReq: dbus polkit >= 0.93 Source: %name-%version.tar Patch: %name-1.1.0-alt.patch BuildRequires: gcc-c++ BuildRequires: libpam-devel BuildRequires: libdbus-glib-devel BuildRequires: libpolkit1-devel BuildRequires: libudev-devel BuildRequires: libacl-devel BuildRequires: xmlto BuildRequires: zlib-devel BuildRequires: libX11-devel BuildRequires: libselinux-devel BuildRequires: libdrm-devel BuildRequires: libevdev-devel BuildRequires: libcgmanager %description ConsoleKit is a system daemon for tracking what users are logged into the system and how they interact with the computer (e.g. which keyboard and mouse they use). It provides asynchronous notification via the system message bus. %package service Summary: D-bus service ConsoleKit Group: System/X11 Requires: %name = %version-%release Conflicts: systemd-services %description service D-bus service ConsoleKit. %package x11 Summary: X11-requiring add-ons for ConsoleKit Group: System/X11 Requires: %name = %version-%release Provides: ConsoleKit-x11 = %version-%release Obsoletes: ConsoleKit-x11 < %version-%release %description x11 ConsoleKit contains some tools that require Xlib to be installed, those are in this separate package so server systems need not install X. Applications (such as xorg-x11-xinit) and login managers (such as gdm) that need to register their X sessions with ConsoleKit needs to have a requires for this package. %package -n lib%name Summary: ConsoleKit libraries Group: System/Libraries Provides: libConsoleKit = %version-%release Obsoletes: libConsoleKit < %version-%release %description -n lib%name Libraries and a PAM module for interacting with ConsoleKit %package -n lib%name-devel Summary: Development libraries and headers for ConsoleKit Group: Development/C++ Requires: lib%name = %version-%release Provides: libConsoleKit-devel = %version-%release Obsoletes: libConsoleKit-devel < %version-%release %description -n lib%name-devel Headers, libraries and API docs for ConsoleKit %package -n pam-ck-connector2 Summary: Register session with ConsoleKit Group: System/Base Provides: pam-ck-connector = %version-%release Obsoletes: pam-ck-connector < %version-%release %description -n pam-ck-connector2 The pam_ck_connector PAM module registers a login session with the system-wide ConsoleKit daemon. This PAM module should be used with caution; only local login managers such as login(1) should use this. Since the ConsoleKit daemon can accept both an tty and an X11 display the normal parameters set by PAM are not always useful. %prep %setup %patch -p1 %build touch gtk-doc.make %autoreconf %configure \ --libexecdir=%_libexecdir \ --localstatedir=%_var \ --with-rundir=/run \ --with-pid-file=/run/lock/console-kit-daemon.pid \ --enable-pam-module \ --with-pam-module-dir=/%_lib/security \ --enable-docbook-docs \ --enable-polkit \ --enable-libudev \ --enable-libselinux \ --enable-udev-acl \ --enable-libdrm \ %nil %make_build %install %makeinstall_std mkdir -p %buildroot%_logdir/%oname touch %buildroot%_logdir/%oname/history for i in $(seq 1 5); do touch %buildroot%_logdir/%oname/history.$i.bz2 done rm -fr %buildroot/%_datadir/locale/es_419 rm -fr %buildroot/%_lib/security/*.la # DBus config belongs into %%_datadir mkdir -p %buildroot%_datadir/dbus-1 mv -f %buildroot%_sysconfdir/dbus-1/* %buildroot%_datadir/dbus-1/ %find_lang %name %files -f %name.lang %_docdir/%name %_datadir/dbus-1/system.d/* %_sysconfdir/X11/xinit/xinitrc.d/* %_sysconfdir/%oname %_logrotatedir/consolekit %_sbindir/* %_bindir/* %_libdir/%oname %_datadir/polkit-1/actions/*.policy %dir %_logdir/%oname %ghost %_logdir/%oname/history* %_udevrulesdir/*.rules /lib/udev/udev-acl %_libexecdir/udev-acl %files service %_datadir/dbus-1/system-services/org.freedesktop.ConsoleKit.service %files x11 %_libexecdir/ck-get-* %_libexecdir/ck-collect-session-info %_libexecdir/ck-remove-directory %files -n lib%name %_libdir/*.so.* %files -n lib%name-devel %doc doc/dbus/ConsoleKit.html %_includedir/%oname %_libdir/*.so %_datadir/dbus-1/interfaces/*.xml %_pkgconfigdir/*.pc %files -n pam-ck-connector2 /%_lib/security/*.so %_man8dir/*.8* %_man1dir/*.1* %changelog * Thu Jan 17 2019 Anton Midyukov <antohami@altlinux.org> 1.2.1-alt2.M80P.3 - Fix conflict with systemd-services - New subpackage ConsoleKit2-service * Fri Nov 16 2018 Anton Midyukov <antohami@altlinux.org> 1.2.1-alt2.M80P.2 - Added conflict with systemd-services * Fri Nov 09 2018 Anton Midyukov <antohami@altlinux.org> 1.2.1-alt2.M80P.1 - backport to ALT p8 * Sun Oct 21 2018 Anton Midyukov <antohami@altlinux.org> 1.2.1-alt3 - disable systemd support - enable udev support - enable selinux support - enable drm support * Mon Oct 08 2018 Anton Midyukov <antohami@altlinux.org> 1.2.1-alt2 - fix unpackages directory * Wed Jan 10 2018 Anton Midyukov <antohami@altlinux.org> 1.2.1-alt1 - new version 1.2.1 * Thu Sep 07 2017 Anton Midyukov <antohami@altlinux.org> 1.2.0-alt1.M80P.1 - backport to ALT p8 * Thu Sep 07 2017 Anton Midyukov <antohami@altlinux.org> 1.2.0-alt2 - Fix obsoletes (Closes: 33859) * Tue Aug 01 2017 Anton Midyukov <antohami@altlinux.org> 1.2.0-alt0.M80P.1 - backport to ALT p8 * Fri Jul 21 2017 Anton Midyukov <antohami@altlinux.org> 1.2.0-alt1 - New version 1.2.0 - Obsoletes ConsoleKit * Sun Feb 12 2017 Anton Midyukov <antohami@altlinux.org> 1.1.0-alt1.M80P.1 - backport to ALTLinux p8 * Sun Feb 12 2017 Anton Midyukov <antohami@altlinux.org> 1.1.0-alt2 - Added conflict ConsoleKit2-x11 with ConsoleKit - Remove subdir in /var/run * Mon Feb 06 2017 Anton Midyukov <antohami@altlinux.org> 1.1.0-alt1 - Initial build for ALT Linux Sisyphus. |