Codebase list cinnamon-screensaver / ac0f6a7
New upstream version 4.8.0 Norbert Preining 3 years ago
16 changed file(s) with 103 addition(s) and 31 deletion(s). Raw diff Collapse all Expand all
4646 fi
4747
4848 jobs:
49 "mint19":
49 "mint20":
5050 <<: *shared
5151 docker:
52 - image: linuxmintd/mint19-amd64
52 - image: linuxmintd/mint20-amd64
5353
54 "lmde3":
54 "lmde4":
5555 <<: *shared
5656 docker:
57 - image: linuxmintd/lmde3-amd64
57 - image: linuxmintd/lmde4-amd64
5858
5959 workflows:
6060 version: 2
6161 build:
6262 jobs:
63 - "mint19"
64 - "lmde3"
63 - "mint20"
64 - "lmde4"
0 @include common-auth
1 auth optional pam_gnome_keyring.so
2020 configuration: misc_conf
2121 )
2222
23 install_data('cinnamon-screensaver', install_dir: join_paths(pamdir, 'pam.d'))
23 if get_option('use-debian-pam')
24 install_data(
25 'cinnamon-screensaver.pam.debian',
26 rename: 'cinnamon-screensaver',
27 install_dir: join_paths(pamdir, 'pam.d')
28 )
29 else
30 install_data(
31 'cinnamon-screensaver',
32 install_dir: join_paths(pamdir, 'pam.d')
33 )
34 endif
35
2436 install_data(desktop, install_dir: join_paths(datadir, 'applications'))
2537 install_data(dbus_service, install_dir: dbus_services_dir)
0 cinnamon-screensaver (4.8.0) ulyssa; urgency=medium
1
2 [ Michael Webster ]
3 * Build: Only generate python bytecode during builds with no temporary install folder. Package managers should handle this otherwise.
4
5 [ Fabio Fantoni ]
6 * CI: Update targets
7 * use debhelper 11 for integrated meson support
8 * CI: Update targets (#339)
9
10 [ Michael Webster ]
11 * build: Don't rely on debian magic to install the correct pam file.
12
13 [ Sparky Bluefang ]
14 * Fix meson syntax error when xinerama support is disabled.
15
16 [ WORLDofPEACE ]
17 * build: use datadir in define_variable for dbus_services_dir
18
19 [ Michael Webster ]
20 * album art: Adjust the album art url for spotify.
21
22 -- Clement Lefebvre <root@linuxmint.com> Thu, 26 Nov 2020 13:49:22 +0000
23
024 cinnamon-screensaver (4.6.0) ulyana; urgency=medium
125
226 [ Eli Schwartz ]
+0
-2
debian/cinnamon-screensaver.pam less more
0 @include common-auth
1 auth optional pam_gnome_keyring.so
22 Priority: optional
33 Maintainer: Linux Mint <root@linuxmint.com>
44 Build-Depends:
5 debhelper (>= 10),
5 debhelper (>= 11.1~),
66 dh-python,
77 gnome-pkg-tools (>= 0.10),
88 gobject-introspection,
99 dh_strip --dbg-package=libcscreensaver-dbg
1010
1111 override_dh_auto_configure:
12 mkdir -p debian/build
13 meson debian/build \
14 --prefix=/usr \
15 --libdir=lib/$(DEB_HOST_MULTIARCH) \
16 --libexecdir=lib/$(DEB_HOST_MULTIARCH)/cinnamon-screensaver
17
18 override_dh_auto_build:
19 ninja -C debian/build
20
21 override_dh_auto_install:
22 DESTDIR=${CURDIR}/debian/tmp \
23 ninja -C debian/build install
12 dh_auto_configure -- \
13 --libexecdir=lib/$(DEB_HOST_MULTIARCH)/cinnamon-screensaver \
14 -D use-debian-pam=true
2415
2516 # there has never been a testsuite, so don't try running it and breaking
2617 # just because there isn't one
2718 override_dh_auto_test:
2819
29 override_dh_install:
30 dh_install --list-missing
20 # --list-missing will be default in compat 12
21 override_dh_missing:
22 dh_missing --list-missing
3123
3224 override_dh_python3:
3325 dh_python3 usr/share/cinnamon-screensaver
0 # These scripts run as post-installation scripts.
1
2 # They're designed to do nothing if DESTDIR is set, which happens
3 # during debian builds for instance - there's a fake install target
4 # so running these would be pointless.
5
6 # When using deb packaging, these aren't needed, as these operations
7 # are run automatically by the package manager.
8
9 # They're really only necessary in straight builds where 'ninja install'
10 # will be run directly, to install the program onto the system.
11
12
13 # Generate python bytecode
14 meson.add_install_script('meson_compile_python.py')
15
0 #!/usr/bin/python3
1
2 import os
3 import subprocess
4
5 pythondir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'cinnamon-screensaver')
6
7 if not os.environ.get('DESTDIR'):
8 print('Generating python bytecode...')
9 subprocess.call(['sh', '-c', 'python3 -m compileall "%s"' % pythondir])
144144 dbus_built
145145 ]
146146
147 libcscreensaver_deps = [gobject, gtk, gdk, x11, xrandr, xext, glib, gio, gthread, pam, m]
148 if use_xinerama
149 libcscreensaver_deps += xinerama
150 endif
151
147152 libcscreensaver = library(
148153 'cscreensaver',
149154 cscreensaver_sources + gir_sources,
150155 version: '0.0.0',
151156 include_directories: inc,
152157 cpp_args: '-DG_LOG_DOMAIN="CScreensaver"',
153 dependencies: [gobject, gtk, gdk, x11, xinerama, xrandr, xext, glib, gio, gthread, pam, m],
158 dependencies: libcscreensaver_deps,
154159 install: true
155160 )
156161
0 project('cinnamon-screensaver', 'c', version: '4.6.0', meson_version: '>=0.40.0')
0 project('cinnamon-screensaver', 'c', version: '4.8.0', meson_version: '>=0.46.0')
11
22 cc = meson.get_compiler('c')
33
4242 xext = dependency('xext')
4343 xrandr = dependency('xrandr', required: false)
4444 m = cc.find_library('m')
45 dbus_services_dir = dependency('dbus-1').get_pkgconfig_variable('session_bus_services_dir', define_variable: ['prefix', prefix])
45 dbus_services_dir = dependency('dbus-1').get_pkgconfig_variable('session_bus_services_dir', define_variable: ['datadir', datadir])
4646
4747 # check for symbols and headers
4848 foreach header : [
6060 endif
6161 endforeach
6262
63 if get_option('xinerama')
63 use_xinerama = get_option('xinerama')
64 if use_xinerama
6465 if host_machine.system() == 'solaris'
6566 xinerama = cc.find_library('Xext')
6667 xinerama_h = cc.has_header('X11/extensions/xinerama.h')
122123
123124 inc = include_directories('.')
124125
126 subdir('install-scripts')
125127 subdir('libcscreensaver')
126128 subdir('data')
127129 subdir('src')
11 option('locking', type : 'boolean', value : true, description: 'Compile in support for locking the display')
22 option('xinerama', type : 'boolean', value : true, description: 'Use of the Xinerama extension')
33 option('pam-prefix', type : 'string', value : '', description: 'specify where pam files go')
4 option('use-debian-pam', type : 'boolean', value : false, description: 'use the debian pam file')
6060 def update_image(self):
6161 url = self.player.get_albumart_url()
6262
63 if self.player.get_identity() == "spotify":
64 url = url.replace("open.spotify.com", "i.scdn.co");
65
6366 if url == self.current_url:
6467 return
6568
3030 name,
3131 path)
3232
33 self.identity = None
3334 self.metadata = None
3435 self.album_name = ""
3536 self.track_name = ""
4647 self.on_metadata_changed)
4748
4849 self.ensure_metadata()
50
51 # This isn't the app-provided MediaPlayer.Identity, but we'd need to
52 # set up another proxy and it's not really necessary for what this is
53 # used for.
54 self.identity = self.proxy.get_name().rpartition(".")[2]
55
56 def get_identity(self):
57 return self.identity
4958
5059 def get_playback_status(self):
5160 status = PlaybackStatus.Unknown
6363 meson.add_install_script('sh', '-c',
6464 'ln -sf "@0@" "$DESTDIR/@1@"'.format(join_paths(pkgdatadir, script[0]), join_paths(bindir, script[1])))
6565 endforeach
66
67 meson.add_install_script('sh', '-c', 'python3 -m compileall "$DESTDIR/@0@"'.format(pkgdatadir) )