-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdapper-settings.spec
More file actions
94 lines (70 loc) · 2.27 KB
/
dapper-settings.spec
File metadata and controls
94 lines (70 loc) · 2.27 KB
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
Summary: Dapper Linux Gnome Settings
Name: dapper-settings
Version: 29
Release: 1
Group: System Environment/Base
License: GPLv3+
Url: http://github.com/dapperlinux/dapper-settings
Source0: %{name}-%{version}.tar.xz
BuildArch: noarch
Requires(post): glib2 dconf
Obsoletes: dapper-settings
Provides: dapper-settings
%description
Dapper Settings contains all of the custom Gnome configurations that make
Dapper Linux feel modern.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas
mkdir -p %{buildroot}%{_datadir}/gtk-3.0
mkdir -p %{buildroot}%{_sysconfdir}/fonts
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
mkdir -p %{buildroot}%{_sysconfdir}/gdm/PostLogin
# Execute master script to make all config files
sh dapper-settings.sh %{buildroot} %{_datadir} %{_sysconfdir}
# Move the PostLogin script into place
cp Default %{buildroot}%{_sysconfdir}/gdm/PostLogin
# Set Postlogin script as executable
chmod +x %{buildroot}%{_sysconfdir}/gdm/PostLogin/Default
mkdir -p %{buildroot}%{_bindir}
install -m 755 dapper-settings-update %{buildroot}%{_bindir}
%clean
rm -rf %{buildroot}
%pre
%post
# reload changes
glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null
dconf update
%posttrans
dapper-settings-update
%postun
# reload changes
glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null
dconf update
%files
%defattr(-,root,root,-)
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/gtk-3.0/gtk.css
%{_sysconfdir}/fonts/local.conf
%{_sysconfdir}/profile.d/man.sh
%{_sysconfdir}/modules-load.d/fuse.conf
%{_sysconfdir}/gdm/PostLogin/Default
%{_bindir}/%{name}-update
%changelog
* Sat Nov 3 2018 Matthew Ruffell <msr50@uclive.ac.nz>
- Updating for DL29
* Sat May 5 2018 Matthew Ruffell <msr50@uclive.ac.nz>
- Updating for DL28
* Fri Nov 17 2017 Matthew Ruffell <msr50@uclive.ac.nz>
- Updating for DL27
* Sun Sep 3 2017 Matthew Ruffell <msr50@uclive.ac.nz>
- Splitting posttrans into new dapper-settings-update script and adding existance checks
* Fri Aug 11 2017 Matthew Ruffell <msr50@uclive.ac.nz>
- Updating for F26
* Fri Nov 4 2016 Matthew Ruffell <msr50@uclive.ac.nz>
- Updating for F25
* Wed Oct 19 2016 Matthew Ruffell <msr50@uclive.ac.nz>
- Created dapper-settings