This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unity-settings-daemon.spec
126 lines (110 loc) · 4.28 KB
/
unity-settings-daemon.spec
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
Name: unity-settings-daemon
Version: 15.04.1+21.10.20220802
Release: 1%{?dist}
Summary: Daemon handling for Unity session settings
License: GPLv2 AND LGPLv2+
URL: https://launchpad.net/unity-settings-daemon
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity-settings-daemon/unity-settings-daemon_%{version}.orig.tar.gz
Source1: https://raw.githubusercontent.com/cat-master21/unityDE-specs/unityx/patches/unity-settings-daemon.service
BuildRequires: automake libtool gnome-common
BuildRequires: intltool
BuildRequires: make
BuildRequires: gcc
BuildRequires: g++
BuildRequires: systemd-rpm-macros
BuildRequires: gsettings-desktop-schemas-devel
BuildRequires: pkgconfig(lcms2)
BuildRequires: libnotify-devel
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: libXext-devel
BuildRequires: xorg-x11-server-devel
BuildRequires: gperf
BuildRequires: ibus-devel
BuildRequires: accountsservice-devel
BuildRequires: pkgconfig(xkbfile)
BuildRequires: xkeyboard-config-devel
BuildRequires: pkgconfig(fcitx-config)
BuildRequires: pkgconfig(fcitx-gclient)
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pulseaudio-libs-devel
BuildRequires: pkgconfig(libcanberra-gtk3)
BuildRequires: alsa-lib-devel
BuildRequires: libXrandr-devel
BuildRequires: upower-devel
BuildRequires: pkgconfig(colord)
BuildRequires: pkgconfig(libwacom)
BuildRequires: pkgconfig(xorg-wacom)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(packagekit-glib2)
BuildRequires: NetworkManager-libnm-devel
BuildRequires: gsettings-ubuntu-touch-schemas
Requires: hwdata
Requires: gsettings-ubuntu-touch-schemas
Requires: gsettings-desktop-schemas
%description
The settings daemon used in Unity. It is based on GNOME Settings Daemon 3.8.6.1.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}.
%prep
%autosetup -n unity-settings-daemon-%{version}
%build
# Some flag fixed an issue
export LDFLAGS='-Wl,-O1 -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,--as-needed'
NOCONFIGURE=1 \
./autogen.sh
%configure --disable-static --enable-packagekit --enable-ibus --enable-fcitx --enable-network-manager
%make_build
%install
%make_install
rm -fv %{buildroot}%{_libdir}/unity-settings-daemon-1.0/*.la %{buildroot}%{_libdir}/*.la
pushd %{buildroot}
mkdir -p usr/bin
ln -fs %{_libexecdir}/unity-settings-daemon .%{_bindir}/unity-settings-daemon
popd
# Install this
mkdir -p %{buildroot}%{_userunitdir}
install -m 0644 %{SOURCE1} -t %{buildroot}%{_userunitdir}
# This conflicts
rename 61-gnome-settings-daemon-rfkill.rules 60-gnome-settings-daemon-rfkill.rules %{buildroot}%{_prefix}/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules
%find_lang %{name}
%files -f %{name}.lang
%license COPYING COPYING.LIB
%{_sysconfdir}/xdg/autostart/*.desktop
%{_bindir}/unity-settings-daemon
%{_prefix}/lib/udev/rules.d/60-gnome-settings-daemon-rfkill.rules
%{_userunitdir}/unity-settings-daemon.service
%{_libdir}/libunity-settings-daemon.so.*
%{_libdir}/unity-settings-daemon-1.0/
%{_libexecdir}/check_gl_texture_size
%{_libexecdir}/gnome-update-wallpaper-cache
%{_libexecdir}/gsd-test-rfkill
%{_libexecdir}/unity-*
%{_libexecdir}/usd-*
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/icons/hicolor/*
%{_datadir}/man/man1/unity-settings-daemon.1.gz
%{_datadir}/polkit-1/actions/*.policy
%dir %{_datadir}/unity-settings-daemon
%dir %{_datadir}/unity-settings-daemon/icons
%dir %{_datadir}/unity-settings-daemon/icons/hicolor
%dir %{_datadir}/unity-settings-daemon/icons/hicolor/64x64
%dir %{_datadir}/unity-settings-daemon/icons/hicolor/64x64/devices
%{_datadir}/unity-settings-daemon/icons/hicolor/64x64/devices/*.png
%dir %{_datadir}/unity-settings-daemon-1.0
%{_datadir}/unity-settings-daemon-1.0/input-device-example.sh
%files devel
%{_libdir}/libunity-settings-daemon.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/unity-settings-daemon-1.0
%dir %{_includedir}/unity-settings-daemon-1.0/libunity-settings-daemon
%{_includedir}/unity-settings-daemon-1.0/libunity-settings-daemon/*.h
%dir %{_includedir}/unity-settings-daemon-1.0/unity-settings-daemon
%{_includedir}/unity-settings-daemon-1.0/unity-settings-daemon/*.h
%changelog
%autochangelog