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
/
Copy pathunityx-shell.spec
224 lines (188 loc) · 6.93 KB
/
unityx-shell.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
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
%global forgeurl https://gitlab.com/ubuntu-unity/unity-x/unityx
%global commit 46dd5199d1cce639f559eda4519aff77ef9c4433
%forgemeta
%define __python /usr/bin/python3
Name: unityx-shell
Version: 1.7.7
Release: 1%{?dist}
Summary: Unity7 is a shell that sings
License: GPLv3 AND LGPLv3
URL: https://gitlab.com/ubuntu-unity/unity-x/unityx
Source0: %{url}/-/archive/%commit/unityx-%commit.tar.bz2
Source2: https://gitlab.xfce.org/panel-plugins/xfce4-windowck-plugin/-/commit/dee596492f006d02e2b39abd072ddd7b37fefe82.diff
Patch0: 0001-Remove-social-scope.patch
BuildRequires: cmake
BuildRequires: g++
BuildRequires: gcc
BuildRequires: chrpath
BuildRequires: pkgconfig(dee-1.0)
BuildRequires: pkgconfig(unity-settings-daemon)
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: zeitgeist-devel
BuildRequires: libappstream-glib-devel
BuildRequires: libdbusmenu-devel
BuildRequires: bamf-devel
BuildRequires: libindicator-gtk3-devel
BuildRequires: json-glib-devel
BuildRequires: libnotify-devel
BuildRequires: libsigc++20-devel
#BuildRequires: xpathselect-devel
#BuildRequires: libunity-devel
BuildRequires: doxygen
BuildRequires: pam-devel
BuildRequires: boost-devel
BuildRequires: pkgconfig(nux-4.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(unity-protocol-private)
# unityx-shell-xfce4-windowck-plugin
BuildRequires: pkgconfig(libwnck-3.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfce4ui-2)
BuildRequires: pkgconfig(libxfce4panel-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: xfce4-vala
BuildRequires: xfce4-dev-tools
# Various things are missing that it won't run and it gives a segmentfault if Unity is missing?
# Needs more investigating
Requires: unity-shell
Requires: unity-scope-home
Requires: python3-pydbus
Requires: python3-psutil
Requires: unity-asset-pool
Requires: libunity-misc-devel
Requires: geis-devel
Requires: unity-settings-daemon
Requires: unity-gtk3-module
Requires: unity-gtk2-module
Requires: libindicator-gtk3
Requires: plotinus%{?_isa} = %{version}-%{release}
Requires: bamf-daemon
Requires: xbindkeys
# For default configuration
Requires: %{name}-xfce4-windowck-plugin%{?_isa} = %{version}-%{release}
Requires: nemo
Requires: blueman
Requires: network-manager-applet
Requires: xfce4-vala-panel-appmenu-plugin
Requires: xfwm4
%description
Unity is a desktop experience that sings. Designed by Canonical and the Ayatana
community, Unity is all about the combination of familiarity and the future. We
bring together visual design, analysis of user experience testing, modern
graphics technologies and a deep understanding of the free software landscape to
produce what we hope will be the lightest, most elegant and most delightful way
to use your PC.
The Unity desktop experience is designed to allow for multiple implementations,
currently, Unity consists of a Compiz plugin based visual interface only, which
is heavily dependent on OpenGL.
%package xfce4-windowck-plugin
Summary: Core library for the Unity shell
Requires: %{name}%{?_isa} = %{version}-%{release}
%description xfce4-windowck-plugin
This package contains the core library needed for Unity and Unity 2D.
%package devel
Summary: Development files for the core Unity library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig(dee-1.0)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(sigc++-2.0)
Requires: pkgconfig(unity)
Requires: pkgconfig(nux-4.0)
%description devel
This package contains the development files the core Unity library.
%package -n plotinus
Summary: Automatic testing for Unity
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n plotinus
This package contains the autopilot framework, which allows for triggering
keyboard and mouse events automatically. This package also contains the bindings
needed for writing automated tests in Python.
%prep
%autosetup -n unityx-%commit -p1
%build
# Wrong paths
sed -i 's!lib/{arch}-linux-gnu!%{_lib}!' unityx/unityx
sed -i 's!%{_lib}/bamf/bamfdaemon!libexec/bamf/bamfdaemon!' unityx/unityx
sed -i 's!unity-settings-daemon!%{_libexecdir}/unity-settings-daemon!' unityx/unityx
%py3_shebang_fix unityx/unityx
# Fix invalid argument calling dbus-update-activation-environment
sed -i 's/'--all', //' unityx/unityx
# The caches again!
rm -fv unityx/windowck-plugin/po/.intltool-merge-cache*
%cmake -DENABLE_X_SUPPORT=ON -DUNITY_PROTOCOL_PRIVATE_LIB=%{_libdir}/libunity/libunity-protocol-private.so.0.0.0 -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_PLUGIN_INSTALL_TYPE=package -DUSE_GSETTINGS=TRUE -DENABLE_UNIT_TESTS=FALSE
%cmake_build
pushd unityx/plotinus
# Wrong path again
sed -i 's/LIBRARY DESTINATION lib/LIBRARY DESTINATION %{_lib}/' CMakeLists.txt
%cmake
%cmake_build
popd
pushd unityx/windowck-plugin
# Upstream patch to fix icons being blurry
patch -i %{SOURCE2} -p1
NOCONFIGURE=1 \
./autogen.sh
%configure --disable-static
%make_build
popd
%install
%cmake_install
pushd unityx/plotinus
%cmake_install
popd
pushd unityx/windowck-plugin
%make_install
rm -fv %{buildroot}%{_libdir}/*.la
popd
chrpath --delete %{buildroot}%{_libdir}/libunityx-core-6.0.so.9.0.0
pushd %{buildroot}
ln -s %{_libdir}/unity .%{_libdir}/unityx
popd
%find_lang unityx
%find_lang xfce4-windowck-plugin
%ldconfig_post
%postun
if [ ${1} -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
fi
%posttrans
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%files -f unityx.lang
%doc AUTHORS ChangeLog INSTALL README.md
%license COPYING COPYING.LGPL
%{_bindir}/unityx*
%{_libdir}/unityx
%{_libdir}/libunityx-core-6.0.so.*
%{_datadir}/glib-2.0/schemas/org.unityd.UnityX.gschema.xml
%{_datadir}/glib-2.0/schemas/org.unityd.UnityX.user-interface.gschema.xml
%dir %{_datadir}/unityx
%dir %{_datadir}/unityx/icons
%{_datadir}/unityx/icons/dash-widgets.json
%{_datadir}/unityx/icons/*.png
%{_datadir}/unityx/icons/*.svg
%{_datadir}/unityx/icons/searchingthedashlegalnotice.html
%dir %{_datadir}/unityx/themes/
%{_datadir}/unityx/themes/dash-widgets.json
%{_datadir}/xsessions/unityx.desktop
%files -n plotinus
%doc unityx/plotinus/README.md
%license COPYING COPYING.LGPL
%{_bindir}/plotinus
%{_libdir}/libplotinus.so
%{_datadir}/glib-2.0/schemas/org.unityd.UnityX.plotinus.gschema.xml
%files devel
%dir %{_includedir}/UnityX-6.0/UnityCore/
%{_includedir}/UnityX-6.0/UnityCore/*.h
%{_libdir}/libunityx-core-6.0.so
%{_libdir}/pkgconfig/unityx-core-6.0.pc
%files xfce4-windowck-plugin -f xfce4-windowck-plugin.lang
%doc unityx/windowck-plugin/AUTHORS unityx/windowck-plugin/NEWS unityx/windowck-plugin/README.md
%license unityx/windowck-plugin/COPYING
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/icons/hicolor/48x48/apps/*.png
%{_datadir}/themes/Windowck/
%{_datadir}/themes/Windowck-dark/
%{_datadir}/xfce4/panel/plugins/*.desktop
%changelog
%autochangelog