1 | %bcond_with systemd |
---|
2 | |
---|
3 | Summary: GNOME Flashback session and helper application |
---|
4 | Summary(ja): GNOMEフラッシュバックセッション及びヘルパーアプリケーション |
---|
5 | Name: gnome-flashback |
---|
6 | Version: 3.36.3 |
---|
7 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
8 | |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | |
---|
12 | License: GPLv3 |
---|
13 | URL: https://wiki.gnome.org/Projects/GnomeFlashback |
---|
14 | %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//') |
---|
15 | Source0: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | BuildRequires: glib2-devel |
---|
20 | BuildRequires: gettext-devel |
---|
21 | BuildRequires: gtk3-devel |
---|
22 | BuildRequires: gdk-pixbuf2-devel |
---|
23 | BuildRequires: gnome-desktop3-devel |
---|
24 | BuildRequires: gnome-panel-devel |
---|
25 | BuildRequires: libcanberra-gtk3-devel |
---|
26 | BuildRequires: gsettings-desktop-schemas-devel |
---|
27 | BuildRequires: polkit-devel |
---|
28 | BuildRequires: ibus-devel |
---|
29 | BuildRequires: upower-devel |
---|
30 | BuildRequires: gnome-bluetooth-devel |
---|
31 | BuildRequires: libXrandr-devel |
---|
32 | BuildRequires: libXxf86vm-devel |
---|
33 | BuildRequires: libxcb-devel |
---|
34 | BuildRequires: libX11-devel |
---|
35 | BuildRequires: libXext-devel |
---|
36 | BuildRequires: libXi-devel |
---|
37 | BuildRequires: gdm-devel |
---|
38 | BuildRequires: pango-devel |
---|
39 | BuildRequires: libxkbfile-devel |
---|
40 | BuildRequires: xkeyboard-config |
---|
41 | BuildRequires: libXfixes-devel |
---|
42 | BuildRequires: pulseaudio-libs-devel |
---|
43 | BuildRequires: alsa-lib-devel |
---|
44 | BuildRequires: pam-devel |
---|
45 | %if %{with systemd} |
---|
46 | BuildRequires: systemd-devel |
---|
47 | %else |
---|
48 | BuildRequires: elogind-devel |
---|
49 | %endif |
---|
50 | |
---|
51 | Requires(posttrans,postun): desktop-file-utils |
---|
52 | Requires(posttrans,postun): glib2 |
---|
53 | |
---|
54 | Requires: metacity |
---|
55 | Requires: gnome-panel |
---|
56 | Requires: gnome-applets |
---|
57 | Requires: gnome-session |
---|
58 | |
---|
59 | %description |
---|
60 | Gnome Flashback is a session for Gnome 3 which was initially called |
---|
61 | "Gnome Fallback", and shipped as a stand-alone session. It provides |
---|
62 | a similar user experience to the Gnome 2.x series sessions. |
---|
63 | The differences to the Mate project is that Gnome Flashback uses Gtk+3 |
---|
64 | and tries to follow the current Gnome development by integrating |
---|
65 | recent changes of the Gnome libraries. |
---|
66 | |
---|
67 | |
---|
68 | %prep |
---|
69 | %setup -q |
---|
70 | |
---|
71 | %if !%{with systemd} |
---|
72 | sed -i \ |
---|
73 | -e 's|systemd/sd-journal\.h|elogind/sd-journal\.h|' \ |
---|
74 | ./gnome-flashback/libdesktop/gf-utils.c |
---|
75 | |
---|
76 | sed -i \ |
---|
77 | -e 's|systemd/sd-login\.h|elogind/sd-login\.h|' \ |
---|
78 | ./gnome-flashback/libscreensaver/gf-screensaver-utils.c \ |
---|
79 | ./gnome-flashback/libscreensaver/gf-unlock-dialog.c |
---|
80 | |
---|
81 | sed -i \ |
---|
82 | -e 's/libsystemd/libelogind/g' \ |
---|
83 | ./configure.ac |
---|
84 | |
---|
85 | autoreconf -vif |
---|
86 | %endif |
---|
87 | |
---|
88 | |
---|
89 | %build |
---|
90 | %configure \ |
---|
91 | --disable-static \ |
---|
92 | %if %{with systemd} |
---|
93 | --enable-systemd-session=yes \ |
---|
94 | %else |
---|
95 | --enable-systemd-session=no \ |
---|
96 | %endif |
---|
97 | --with-compiz-session=no |
---|
98 | |
---|
99 | make %{?_smp_mflags} |
---|
100 | |
---|
101 | |
---|
102 | %install |
---|
103 | rm -rf $RPM_BUILD_ROOT |
---|
104 | |
---|
105 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
106 | |
---|
107 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
108 | |
---|
109 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
---|
110 | |
---|
111 | %find_lang %{name} --with-gnome |
---|
112 | |
---|
113 | |
---|
114 | %clean |
---|
115 | rm -rf $RPM_BUILD_ROOT |
---|
116 | |
---|
117 | |
---|
118 | %postun |
---|
119 | if [ $1 -eq 0 ]; then |
---|
120 | update-desktop-database -q &> /dev/null ||: |
---|
121 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
122 | fi |
---|
123 | |
---|
124 | %posttrans |
---|
125 | update-desktop-database -q &> /dev/null ||: |
---|
126 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
127 | |
---|
128 | |
---|
129 | %files -f %{name}.lang |
---|
130 | %defattr(-,root,root,-) |
---|
131 | %license COPYING |
---|
132 | %doc README NEWS |
---|
133 | %{_sysconfdir}/xdg/autostart/gnome-flashback-clipboard.desktop |
---|
134 | %{_sysconfdir}/xdg/autostart/gnome-flashback-nm-applet.desktop |
---|
135 | %{_sysconfdir}/xdg/menus/gnome-flashback-applications.menu |
---|
136 | %{_bindir}/%{name} |
---|
137 | %dir %{_libdir}/gnome-panel |
---|
138 | %dir %{_libdir}/gnome-panel/modules |
---|
139 | %{_libdir}/gnome-panel/modules/system_indicators.so |
---|
140 | %{_libexecdir}/gnome-flashback-clipboard |
---|
141 | %{_libexecdir}/gnome-flashback-metacity |
---|
142 | %{_datadir}/applications/gnome-flashback.desktop |
---|
143 | %{_datadir}/desktop-directories/X-GNOME-Flashback-Settings-System.directory |
---|
144 | %{_datadir}/desktop-directories/X-GNOME-Flashback-Settings.directory |
---|
145 | %{_datadir}/glib-2.0/schemas/* |
---|
146 | %{_datadir}/gnome-panel/layouts/gnome-flashback.layout |
---|
147 | %{_datadir}/gnome-session/sessions/gnome-flashback-metacity.session |
---|
148 | %{_datadir}/xsessions/gnome-flashback-metacity.desktop |
---|
149 | %if %{with systemd} |
---|
150 | %{_userunitdir}/* |
---|
151 | %endif |
---|
152 | |
---|
153 | |
---|
154 | %changelog |
---|
155 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.36.3-1 |
---|
156 | - new upstream release. |
---|
157 | |
---|
158 | * Sun Sep 01 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.30.0-2 |
---|
159 | - rebuilt with tracker-2.2.2. |
---|
160 | |
---|
161 | * Sun Dec 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.30.0-1 |
---|
162 | - new upstream release. |
---|
163 | |
---|
164 | * Mon Jul 18 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.20.1-1 |
---|
165 | - new upstream release |
---|
166 | |
---|