30597b7
%global _internal_version      4f741eb
05b5db2
d904a98
%global gtk3_version           2.99.3
d904a98
%global dbus_version           0.90
d904a98
%global dbus_glib_version      0.74
d904a98
%global redhat_menus_version   5.0.1
d904a98
%global libgnomekbd_version    2.91.1
d904a98
d904a98
Summary: Cinnamon Screensaver
d904a98
Name:    cinnamon-screensaver
05b5db2
Version: 1.8.1
30597b7
Release: 0.2.git%{_internal_version}%{?dist}
d904a98
License: GPLv2+ and LGPLv2+
d904a98
URL:     http://cinnamon.linuxmint.com
d904a98
d904a98
#Because linuxmint upstream refuses to host pristine upstream tarballs
05b5db2
#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
05b5db2
Source0: http://leigh123linux.fedorapeople.org/pub/cinnamon-screensaver/source/%{name}-%{version}.git%{_internal_version}.tar.gz
d904a98
d904a98
Patch0:  cinnamon-screensaver-2.20.0-selinux-permit.patch
dc283d4
Patch1:  systemd.patch
d904a98
d904a98
d904a98
BuildRequires: gtk3-devel => %{gtk3_version}
d904a98
BuildRequires: dbus-devel >= %{dbus_version}
d904a98
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
05b5db2
BuildRequires: cinnamon-desktop-devel
d904a98
BuildRequires: pam-devel
d904a98
BuildRequires: nss-devel
d904a98
BuildRequires: libX11-devel, libXScrnSaver-devel, libXext-devel
d904a98
BuildRequires: libXinerama-devel libXmu-devel
d904a98
BuildRequires: libgnomekbd-devel >= %{libgnomekbd_version}
d904a98
# this is here because the configure tests look for protocol headers
d904a98
BuildRequires: xorg-x11-proto-devel
d904a98
BuildRequires: intltool
d904a98
BuildRequires: gnome-common
d904a98
BuildRequires: libXxf86misc-devel
d904a98
BuildRequires: libXxf86vm-devel
d904a98
BuildRequires: libXtst-devel
d904a98
BuildRequires: desktop-file-utils
d904a98
BuildRequires: systemd-devel
d904a98
30597b7
Requires: cinnamon-translations
05b5db2
Requires: cinnamon-desktop
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
# I have no idea why this is required, but for now, just get things to build
d904a98
BuildRequires:  libxklavier-devel
d904a98
d904a98
%description
d904a98
cinnamon-screensaver is a screen saver and locker.
d904a98
d904a98
%prep
05b5db2
%setup -q -n linuxmint-%{name}-%{_internal_version}
d904a98
%patch0 -p1
dc283d4
%patch1 -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
dc283d4
%configure --with-mit-ext=no --without-console-kit
d904a98
make V=1 %{?_smp_mflags}
d904a98
d904a98
%install
d904a98
make install DESTDIR=$RPM_BUILD_ROOT
d904a98
d904a98
desktop-file-install                                     \
d904a98
  --delete-original                                      \
d904a98
  --remove-only-show-in=Xfce                             \
d904a98
  --dir $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart          \
d904a98
  $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/cinnamon-screensaver.desktop
d904a98
d904a98
30597b7
%files
d904a98
%doc AUTHORS NEWS README COPYING
d904a98
%{_bindir}/cinnamon-screensaver*
d904a98
# remove conflicting files
d904a98
%exclude %{_bindir}/gnome-screensaver*
d904a98
%{_datadir}/dbus-1/services/org.cinnamon.ScreenSaver.service
d904a98
%{_libexecdir}/*
d904a98
%config %{_sysconfdir}/pam.d/*
d904a98
%{_sysconfdir}/xdg/autostart/cinnamon-screensaver.desktop
d904a98
%doc %{_mandir}/man1/*.1.gz
d904a98
d904a98
%changelog
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