Name: i3lock
Version: 2.4.1
Release: 4
Summary: Simple X display locker
Group: User Interface/Desktops
License: MIT
URL: http://i3wm.org/%{name}
Source0: http://i3wm.org/%{name}/%{name}-%{version}.tar.bz2
Source1: %{name}.pam
BuildRequires: libX11-devel
BuildRequires: pam-devel
BuildRequires: libXext-devel
BuildRequires: libXpm-devel
BuildRequires: cairo-devel
BuildRequires: libev-devel
BuildRequires: libxcb-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: xcb-util-image-devel
%description
i3lock improves slock by making it fork() and therefore combinable with commands
to suspend your computer. Additionally, instead of turning off your screen via
DPMS and/or displaying a black screen, i3lock displays a white screen so you can
see if your computer failed to resume from suspend or if your screen is just
locked. Also, when entering a wrong password, i3lock does not call XBell().
This is important because i3lock/slock think you’ve entered a password when
resuming from suspend, at least sometimes.
%prep
%setup -q
sed \
-e 's|PREFIX=/usr|PREFIX=%{_prefix}|g' \
-e 's|SYSCONFDIR=/etc|SYSCONFDIR=%{_sysconfdir}|g' \
-i Makefile
%build
# we have to add libev cflags because the Makefile doesn't list them
CFLAGS="%{optflags} `pkg-config --cflags libev`" make %{?_smp_mflags}
gzip i3lock.1
%install
rm -rf %{buildroot}
make install \
DESTDIR=%{buildroot} \
INSTALL="install -p"
mkdir -p %{buildroot}/%{_sysconfdir}/pam.d/
install -Dpm0644 %{SOURCE1} \
%{buildroot}/%{_sysconfdir}/pam.d/%{name}
install -Dpm0644 i3lock.1.gz %{buildroot}/%{_mandir}/man1/i3lock.1.gz
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README CHANGELOG LICENSE
%{_bindir}/%{name}
%{_sysconfdir}/pam.d/%{name}
%{_mandir}/man1/i3lock.1.gz
%changelog
* Fri Jul 13 2012 Martin Preisler <mpreisle@redhat.com> - 2.4.1-4
- Make sure we install README, LICENSE, CHANGELOG and the manpage
* Fri Jun 15 2012 Martin Preisler <mpreisle@redhat.com> - 2.4.1-3
- rebuilt with a bumped release number to make sure the package updates from f17
* Wed Jun 06 2012 Martin Preisler <mpreisle@redhat.com - 2.4.1-1
- Updated to upstream stable 2.4.1 release
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6.20100320git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5.20100320git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sat Mar 20 2010 Simon Wesp <cassmodiah@fedoraproject.org> - 1.0-4.20100320git
- Update to current git
* Sat Feb 05 2010 Simon Wesp <cassmodiah@fedoraproject.org> - 1.0-3
- Some bugfixes (sync with upstream)
* Sat Jan 09 2010 Simon Wesp <cassmodiah@fedoraproject.org> - 1.0-2
- Add a PAM configfile as SOURCE1
* Wed Dec 02 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 1.0-1
- Package build for Fedora