3eee510
#global _internal_version      024e5fd
05b5db2
d904a98
%global dbus_glib_version      0.74
d904a98
%global redhat_menus_version   5.0.1
d904a98
%global libgnomekbd_version    2.91.1
c485b2a
%global cinnamon_desktop_version 3.0.0
d904a98
d904a98
Summary: Cinnamon Screensaver
d904a98
Name:    cinnamon-screensaver
c485b2a
Version: 3.0.0
c485b2a
Release: 1%{?dist}
d904a98
License: GPLv2+ and LGPLv2+
d904a98
URL:     http://cinnamon.linuxmint.com
d904a98
d904a98
#Because linuxmint upstream refuses to host pristine upstream tarballs
1d6b9c4
#wget https://github.com/linuxmint/cinnamon-screensaver/archive/%%{version}.tar.gz -O cinnamon-screensaver-%%{version}.tar.gz
05b5db2
# for git
05b5db2
# wget https://github.com/linuxmint/cinnamon-screensaver/tarball/%%{_internal_version} -O cinnamon-screensaver-%%{version}.git%%{_internal_version}.tar.gz
3eee510
#Source0: http://leigh123linux.fedorapeople.org/pub/cinnamon-screensaver/source/cinnamon-screensaver-%%{version}.git%%{_internal_version}.tar.gz
3d4372a
Source0: http://leigh123linux.fedorapeople.org/pub/cinnamon-screensaver/source/%{name}-%{version}.tar.gz
d904a98
d904a98
Patch0:  cinnamon-screensaver-2.20.0-selinux-permit.patch
d904a98
921e26e
BuildRequires: pkgconfig(dbus-glib-1) >= %{dbus_glib_version}
22db986
BuildRequires: pkgconfig(cinnamon-desktop) >= %{cinnamon_desktop_version}
921e26e
BuildRequires: pkgconfig(nss)
921e26e
BuildRequires: pkgconfig(xscrnsaver)
921e26e
BuildRequires: pkgconfig(xmu)
921e26e
BuildRequires: pkgconfig(libgnomekbd) >= %{libgnomekbd_version}
921e26e
BuildRequires: pkgconfig(libsystemd-login)
d904a98
# this is here because the configure tests look for protocol headers
921e26e
BuildRequires: pkgconfig(libxklavier)
921e26e
BuildRequires: pkgconfig(xxf86misc)
921e26e
BuildRequires: pkgconfig(xxf86vm)
921e26e
BuildRequires: pkgconfig(xtst)
d904a98
BuildRequires: desktop-file-utils
921e26e
BuildRequires: gnome-common
921e26e
BuildRequires: intltool
921e26e
BuildRequires: pam-devel
d430232
%if 0%{?rhel} == 7
c485b2a
BuildRequires: pkgconfig(webkitgtk-3.0)
d430232
%else
c485b2a
BuildRequires: pkgconfig(webkit2gtk-4.0)
67e4ea7
%endif
d904a98
22db986
# add hard cinnamon-desktop required version due logind schema
22db986
Requires: cinnamon-desktop >= %{cinnamon_desktop_version}
22db986
Requires: cinnamon-translations >= 2.6.0
d904a98
Requires: redhat-menus >= %{redhat_menus_version}
d904a98
# since we use it, and pam spams the log if a module is missing
d904a98
Requires: gnome-keyring-pam
d904a98
Conflicts: xscreensaver < 1:5.00-19
d904a98
d904a98
%description
d904a98
cinnamon-screensaver is a screen saver and locker.
d904a98
69d4925
%if 0%{?fedora}
c2b6e2d
%package unsupported
c2b6e2d
Summary: Additional unsupported screensavers
900f857
BuildArch: noarch
900f857
Requires: %{name} = %{version}-%{release}
16dead3
%if 0%{?rhel} == 7
16dead3
Requires: webkitgtk3
16dead3
%else
0ce17ea
Requires: webkitgtk4
16dead3
%endif
c2b6e2d
Requires: xscreensaver-extras
c2b6e2d
Requires: xscreensaver-gl-extras
c2b6e2d
c2b6e2d
%description unsupported
c2b6e2d
This package provides additional unsupported screensavers.
c2b6e2d
They are unsupported in fedora due to issues with suspend,
c2b6e2d
you may need to use the Esc key to get the unlock screen.
69d4925
%endif
c2b6e2d
d904a98
%prep
3eee510
%setup -q
d904a98
%patch0 -p1
124e42a
echo "ACLOCAL_AMFLAGS = -I m4" >> Makefile.am
4d4e117
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
4d4e117
d904a98
NOCONFIGURE=1 ./autogen.sh
d904a98
d904a98
%build
c2b6e2d
%configure --with-mit-ext=no
d904a98
make V=1 %{?_smp_mflags}
d904a98
d904a98
%install
e2075c5
%{make_install}
d904a98
172c9c8
desktop-file-install                                     \
172c9c8
  --delete-original                                      \
172c9c8
  --remove-only-show-in=Xfce                             \
0201546
  --dir $RPM_BUILD_ROOT%{_datadir}/applications          \
0201546
  $RPM_BUILD_ROOT%{_datadir}/applications/cinnamon-screensaver.desktop
172c9c8
69d4925
%if 0%{?rhel}
69d4925
rm -rf $RPM_BUILD_ROOT%{_datadir}/cinnamon-screensaver/
69d4925
%endif
d904a98
30597b7
%files
f9b7aae
%doc AUTHORS NEWS README
f9b7aae
%license COPYING COPYING.LIB
d904a98
%{_bindir}/cinnamon-screensaver*
0201546
%{_datadir}/applications/cinnamon-screensaver.desktop
d904a98
%{_datadir}/dbus-1/services/org.cinnamon.ScreenSaver.service
0201546
%{_libexecdir}/cinnamon-screensaver-dialog
0201546
%config %{_sysconfdir}/pam.d/cinnamon-screensaver
0201546
%{_mandir}/man1/cinnamon-screensaver*.1.*
d904a98
69d4925
%if 0%{?fedora}
c2b6e2d
%files unsupported
c2b6e2d
%{_datadir}/cinnamon-screensaver/
69d4925
%endif
c2b6e2d
d904a98
%changelog
c485b2a
* Sat Apr 23 2016 Leigh Scott <leigh123linux@googlemail.com> - 3.0.0-1
c485b2a
- update to 3.0.0 release
c485b2a
405b8cf
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-5
405b8cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
405b8cf
69d4925
* Fri Nov 27 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.8.0-4
69d4925
- remove unsupported sub-package for epel as there is no xscreensaver
69d4925
d430232
* Fri Nov 27 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.8.0-3
d430232
- fix epel conditional
d430232
1d6b9c4
* Mon Nov 09 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.8.0-2
1d6b9c4
- rebuilt
1d6b9c4
3d4372a
* Fri Oct 16 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.8.0-1
3d4372a
- update to 2.8.0 release
3d4372a
0021e13
* Mon Aug 24 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.4-4
0021e13
- Try upstream commits to fix bz 1234998
0021e13
c04169c
* Sat Aug 01 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.4-3
c04169c
- revert upstream commit as it kills the real process (bz 1234998)
c04169c
0ce17ea
* Mon Jun 29 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.4-2
0ce17ea
- add missing requires to unsupported sub-package
0ce17ea
1006663
* Fri Jun 26 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.4-1
1006663
- update to 2.6.4 release
1006663
e8efbf8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-3
e8efbf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e8efbf8
900f857
* Wed Jun 03 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.3-2
900f857
- make sub-package noarch
900f857
c2b6e2d
* Wed Jun 03 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.3-1
c2b6e2d
- update to 2.6.3 release
c2b6e2d
- split webkit and xscreensaver into an unsupported sub-package
c2b6e2d
22db986
* Mon May 25 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.1-1
22db986
- update to 2.6.1 release
22db986
67e4ea7
* Wed May 20 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.0-2
67e4ea7
- add conditional for f20 webkit br
67e4ea7
3eee510
* Wed May 20 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.0-1
3eee510
- update to 2.6.0 release
3eee510
3eee510
* Fri May 15 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.5.0-0.3.git024e5fd
3eee510
- update to git snapshot
3eee510
cb8b3db
* Wed May 06 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.5.0-0.2.gitc4820fd
cb8b3db
- update to git snapshot
cb8b3db
7ef9e77
* Tue May 05 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.5.0-0.1.git6ea738d
7ef9e77
- update to git snapshot
7ef9e77
be3c5a4
* Tue Mar 31 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.4.2-1
be3c5a4
- update to 2.4.2
be3c5a4
8f0abd7
* Sun Mar 29 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.4.1-3
8f0abd7
- fix bz 1206907
8f0abd7
be3c27e
* Wed Mar 18 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.4.1-2
be3c27e
- drop patch and use the upstream fix instead
be3c27e
d8c5317
* Sat Feb 21 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.4.1-1
d8c5317
- update to 2.4.1
d8c5317
05b6a10
* Fri Oct 31 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.0-1
05b6a10
- update to 2.4.0
05b6a10
028eea3
* Fri Oct 03 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.0-0.3.git8de7ff0
028eea3
- readd revert 58a522e commit
028eea3
28b3fc5
* Wed Oct 01 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.0-0.2.git8de7ff0
28b3fc5
- update to latest git
28b3fc5
809be03
* Tue Sep 30 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.0-0.1.gitaf298bc
809be03
- update to latest git
809be03
fbaeccc
* Mon Aug 25 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.4-5
fbaeccc
- apply upstream fix for CVE-2014-1949 (bz 1064695)
fbaeccc
21ebc2a
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-4
21ebc2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
21ebc2a
3edfda9
* Wed Aug 13 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.4-3
3edfda9
- Fix CVE-2014-1949 (bz 1064695)
3edfda9
04a6792
* Tue Aug 05 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.4-2
04a6792
- revert 58a522e commit
04a6792
7ede728
* Fri Jun 27 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.4-1
7ede728
- update to 2.2.4
7ede728
9eba7f5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-2
9eba7f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9eba7f5
99cc313
* Sun May 11 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.3-1
99cc313
- update to 2.2.3
99cc313
64ebfe9
* Fri May 02 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.1-1
64ebfe9
- update to 2.2.1
64ebfe9
9ddf6fd
* Thu Apr 24 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.0-2
9ddf6fd
- don't clear the window on every draw, just do it on realized
9ddf6fd
1713338
* Sat Apr 12 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.0-1
1713338
- update to 2.2.0
1713338
efced6b
* Wed Oct 30 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.3-1
efced6b
- update to 2.0.3
efced6b
- add patch to fix suspend locking
efced6b
e2075c5
* Thu Oct 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.2-1
e2075c5
- update to 2.0.2
e2075c5
0201546
* Fri Oct 18 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.1-1
0201546
- update to 2.0.1
0201546
172c9c8
* Thu Oct 17 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-2
172c9c8
- Stop starting in gnome-shell as it pissed off the gnome devs
172c9c8
d0a7b8d
* Wed Oct 02 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-1
d0a7b8d
- update to 2.0.0
d0a7b8d
a038463
* Mon Sep 30 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.9.1-1
d0a7b8d
- 1.9.1
a038463
30597b7
* Sun Sep 15 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.1-0.2.git4f741eb
30597b7
- update to latest git
30597b7
- add requires cinnamon-translations
30597b7
05b5db2
* Sun Aug 25 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.1-0.1.git94ca899
05b5db2
- update to latest git
05b5db2
- Change buildrequires to cinnamon-desktop-devel
05b5db2
- Change requires to cinnamon-desktop
05b5db2
127f8ef
* Thu Aug 22 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-5
127f8ef
- rebuilt
127f8ef
dc283d4
* Sun Jul 28 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-4
dc283d4
- disable console-kit in configure
dc283d4
- add systemd patch
dc283d4
124e42a
* Mon Jul 22 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-3
124e42a
- fix prep warnings
124e42a
4d4e117
* Mon Jul 22 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-2
4d4e117
- fix prep warnings
4d4e117
d904a98
* Thu Jan 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-1
d904a98
- Initial build
d904a98