aboutsummaryrefslogtreecommitdiff
path: root/port-files/lumina-desktop.spec
blob: ff8c5ed0471545064b9dde514b5f67911ab0e7d5 (plain)
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
# Enable hardened build by default
%global _hardened_build 1

%define release_version 1.1.0-p1
%define rpm_version %(echo %{release_version} | tr - .)

Summary:            A lightweight, portable desktop environment
Name:               lumina-desktop
Version:            %{rpm_version}
Release:            1%{?dist}
License:            BSD
Group:              User Interface/Desktops
URL:                http://lumina-desktop.org

# Formatted so spectool can fetch the source.
Source0:            https://github.com/trueos/lumina/archive/v%{release_version}.tar.gz#/lumina-%{release_version}.tar.gz

# Exclude IBM ESA/390 and ESA System/z architectures
ExcludeArch:        s390 s390x

# Compiler requirements
BuildRequires:      gcc, gcc-c++

# Qt requirements
BuildRequires:      qt5-qttools, qt5-qttools-devel, qt5-linguist
BuildRequires:      qt5-qtbase-devel, qt5-qtmultimedia-devel, qt5-qtdeclarative-devel
BuildRequires:      qt5-qtsvg-devel, qt5-qtx11extras-devel

# X component requirements
BuildRequires:      xcb-util-image, xcb-util-image-devel, xcb-util-wm-devel, libxcb-devel, xcb-util-devel
BuildRequires:      libXcomposite-devel, libXdamage-devel, libXrender-devel

# Runtime requirements
Requires:           alsa-utils, acpi, numlockx, pavucontrol, sysstat
Requires:           xscreensaver, xbacklight, xterm
Requires:           qt5-style-oxygen, plasma-oxygen 
Requires:           fluxbox

# Enforce the library subpackage version requirement
Requires:           %{name}-libs = %{version}-%{release}

# Desktop requirements
Requires:           lumina-open = %{version}-%{release}
Requires:           lumina-config = %{version}-%{release}
Requires:           lumina-fm = %{version}-%{release}
Requires:           lumina-screenshot = %{version}-%{release}
Requires:           lumina-search = %{version}-%{release}
Requires:           lumina-info = %{version}-%{release}
Requires:           lumina-xconfig = %{version}-%{release}
Requires:           lumina-fileinfo = %{version}-%{release}
Requires:           lumina-textedit = %{version}-%{release}
Requires:           lumina-calculator = %{version}-%{release}


%description
The Lumina Desktop Environment is a lightweight system interface
that is designed for use on any Unix-like operating system.

%package libs
Summary:            Libraries for Lumina Desktop
Group:              System Environment/Libraries

%description libs
This package provides the libraries for the Lumina Desktop
Environment.

%package devel
Summary:            Development libraries for Lumina Desktop
Group:              Development/Libraries
Requires:           %{name}-libs = %{version}-%{release}

%description devel
This package provides the files needed to develop plugins
or extensions for the Lumina Desktop Environment, or
to develop applications that use Lumina Desktop libraries.

%package -n lumina-open
Summary:            xdg-open style utility for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-open
This package provides lumina-open, which handles opening of
files and URLs according to the system-wide mimetype association.
It also provides an optional selector if more than one application
is assigned with the given url or file type.

%package -n lumina-config
Summary:            Configuration utility for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-config
This package provides lumina-config, which allows changing
various aspects of lumina and fluxbox, like the wallpaper being
used, theme, icons, panel (and plugins), startup and default
applications, desktop menu and more.

%package -n lumina-fm
Summary:            File manager for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-fm
This package provides lumina-fm, which is a simple file manager
with support for multiple view modes, tabbed browsing,
including an integrated slideshow-based picture viewer.


%package -n lumina-screenshot
Summary:            Screenshot utility for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-screenshot
This package provides lumina-screenshot, which is a simple
screenshot utility that allows to snapshot the whole desktop
or a single window after a configurable delay.

Optionally the window border can be hidden when taking a
screenshot of a single window.


%package -n lumina-search
Summary:            Search utility for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-search
This package provides lumina-search, which is a simple
search utility that allows to search for applications or
files and directories in the home directory and launch
or open them.


%package -n lumina-info
Summary:            Basic information utility for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-info
This package provides lumina-info, which is a simple
utility that displays various information about the Lumina
installation, like paths, contributors, license or version.


%package -n lumina-xconfig
Summary:            X server display configuration tool for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-xconfig
This package provides lumina-xconfig, which is a simple
multi-head aware display configuration tool for configuring
the X server.


%package -n lumina-fileinfo
Summary:            Desktop file editor for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-fileinfo
This package provides lumina-fileinfo, which is an
advanced desktop file (menu) editor.

%package -n lumina-textedit
Summary:            Text editor for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-textedit
This package provides lumina-textedit.

%package -n lumina-calculator
Summary:            Calculator for Lumina Desktop
Group:              User Interface/Desktops
Requires:           %{name}-libs = %{version}-%{release}

%description -n lumina-calculator
This package provides lumina-calculator


%prep
%setup -q -n lumina-%{release_version}


%build
%qmake_qt5 CONFIG+="configure WITH_I18N" PREFIX="%{_prefix}" LIBPREFIX="%{_libdir}" QT5LIBDIR="%{_qt5_prefix}" L_LIBDIR=%{_libdir}
make %{?_smp_mflags}

%install
# Install the desktop
make INSTALL_ROOT=%{buildroot} install

# Fix paths in desktop files
find %{buildroot}/ -name *.desktop -exec sed -i "s:/usr/local/:/usr/:g" {} \;

# Create proper config file
cp %{buildroot}%{_datadir}/lumina-desktop/luminaDesktop.conf %{buildroot}%{_sysconfdir}/luminaDesktop.conf
sed -i "s:/usr/local/share/applications/firefox.desktop:firefox:g" %{buildroot}%{_sysconfdir}/luminaDesktop.conf
sed -i "s:/usr/local/share/applications/thunderbird.desktop:thunderbird:g" %{buildroot}%{_sysconfdir}/luminaDesktop.conf


%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig

%files libs
%license LICENSE
%{_libdir}/libLuminaUtils.so.1
%{_libdir}/libLuminaUtils.so.1.0
%{_libdir}/libLuminaUtils.so.1.0.0

%files devel
%license LICENSE
%{_libdir}/libLuminaUtils.so
%{_includedir}/LuminaXDG.h
%{_includedir}/LuminaUtils.h
%{_includedir}/LuminaX11.h
%{_includedir}/LuminaThemes.h
%{_includedir}/LuminaOS.h
%{_includedir}/LuminaSingleApplication.h

%files
%license LICENSE
%{_bindir}/lumina-desktop
%{_bindir}/start-lumina-desktop
%config(noreplace) %{_sysconfdir}/luminaDesktop.conf
%{_sysconfdir}/luminaDesktop.conf.dist
%{_datadir}/pixmaps/Lumina-DE.png
%{_datadir}/xsessions/Lumina-DE.desktop
%{_datadir}/lumina-desktop/desktop-background.jpg
%{_datadir}/lumina-desktop/luminaDesktop.conf
%{_datadir}/lumina-desktop/compton.conf
%{_datadir}/lumina-desktop/fluxbox-init-rc
%{_datadir}/lumina-desktop/fluxbox-keys
%{_datadir}/lumina-desktop/Login.ogg
%{_datadir}/lumina-desktop/Logout.ogg
%{_datadir}/lumina-desktop/low-battery.ogg
%{_datadir}/lumina-desktop/colors/Lumina-Red.qss.colors
%{_datadir}/lumina-desktop/colors/Lumina-Green.qss.colors
%{_datadir}/lumina-desktop/colors/Lumina-Purple.qss.colors
%{_datadir}/lumina-desktop/colors/Lumina-Gold.qss.colors
%{_datadir}/lumina-desktop/colors/Lumina-Glass.qss.colors
%{_datadir}/lumina-desktop/colors/PCBSD10-Default.qss.colors
%{_datadir}/lumina-desktop/themes/Lumina-default.qss.template
%{_datadir}/lumina-desktop/themes/None.qss.template
%{_datadir}/lumina-desktop/themes/Glass.qss.template
%{_datadir}/lumina-desktop/colors/Blue-Light.qss.colors
%{_datadir}/lumina-desktop/colors/Grey-Dark.qss.colors
%{_datadir}/lumina-desktop/colors/Solarized-Dark.qss.colors
%{_datadir}/lumina-desktop/colors/Solarized-Light.qss.colors
%{_datadir}/lumina-desktop/colors/Black.qss.colors
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_blue-grey-zoom.jpg
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_blue-grey.jpg
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_gold.jpg
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_green.jpg
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_grey-blue-zoom.jpg
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_grey-blue.jpg
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_purple.jpg
%{_datadir}/wallpapers/Lumina-DE/Lumina_Wispy_red.jpg
%{_datadir}/lumina-desktop/i18n/lumina-desktop*.qm
%{_datadir}/lumina-desktop/menu-scripts/ls.json.sh
%{_datadir}/lumina-desktop/globs2

%files -n lumina-open
%license LICENSE
%{_bindir}/lumina-open
%{_datadir}/lumina-desktop/i18n/lumina-open*.qm

%files -n lumina-config
%license LICENSE
%{_bindir}/lumina-config
%{_datadir}/lumina-desktop/i18n/lumina-config*.qm
%{_datadir}/applications/lumina-config.desktop

%files -n lumina-fm
%license LICENSE
%{_bindir}/lumina-fm
%{_datadir}/lumina-desktop/i18n/lumina-fm*.qm
%{_datadir}/pixmaps/Insight-FileManager.png
%{_datadir}/applications/lumina-fm.desktop

%files -n lumina-screenshot
%license LICENSE
%{_bindir}/lumina-screenshot
%{_datadir}/lumina-desktop/i18n/l-screenshot*.qm
%{_datadir}/applications/lumina-screenshot.desktop

%files -n lumina-search
%license LICENSE
%{_bindir}/lumina-search
%{_datadir}/lumina-desktop/i18n/lumina-search*.qm
%{_datadir}/applications/lumina-search.desktop

%files -n lumina-info
%license LICENSE
%{_bindir}/lumina-info
%{_datadir}/lumina-desktop/i18n/lumina-info*.qm
%{_datadir}/applications/lumina-info.desktop
%{_datadir}/applications/lumina-support.desktop

%files -n lumina-xconfig
%license LICENSE
%{_bindir}/lumina-xconfig
%{_datadir}/lumina-desktop/i18n/lumina-xconfig*.qm
%{_datadir}/applications/lumina-xconfig.desktop

%files -n lumina-fileinfo
%license LICENSE
%{_bindir}/lumina-fileinfo
%{_datadir}/lumina-desktop/i18n/l-fileinfo*.qm
%{_datadir}/applications/lumina-fileinfo.desktop

%files -n lumina-textedit
%license LICENSE
%{_bindir}/lumina-textedit
%{_bindir}/lte
%{_datadir}/lumina-desktop/i18n/l-te*.qm
%{_datadir}/applications/lumina-textedit.desktop

%files -n lumina-calculator
%license LICENSE
%{_bindir}/lumina-calculator
%{_datadir}/lumina-desktop/i18n/l-calc_*.qm
%{_datadir}/applications/lumina-calculator.desktop

%changelog
* Tue Nov 22 2016 Craig Forbes <cforbes@gmail.com> - 1.1.0-p1
- Updated to 1.1.0-p1

* Wed Dec 23 2015 Neal Gompa <ngompa13@gmail.com>
- Update to 0.8.8
- Bring it closer to Fedora guidelines
- Break out Lumina Desktop package into subpackages
- Unify 32-bit and 64-bit packaging

* Tue Oct 27 2015 Jesse Smith <jsmith@resonatingmedia.com>
- Update to 0.8.7

* Thu Aug 20 2015 Jesse Smith <jsmith@resonatingmedia.com>
- Updated for 32-bit

* Thu Jul 30 2015 Jesse Smith <jsmith@resonatingmedia.com>
- Initial build
bgstack15