File scrot.spec of Package scrot
# norootforbuild
Name: scrot
Version: 0.8
%define giblib_version 1.2.4
Release: 0
Summary: Screenshot Capture Utility
Source: http://linuxbrit.co.uk/downloads/scrot-%{version}.tar.gz
Source1: http://linuxbrit.co.uk/downloads/giblib-%{giblib_version}.tar.gz
URL: http://linuxbrit.co.uk/scrot/
Group: Productivity/Graphics/Other
License: BSD license (revised)
Requires: imlib2-loaders
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: imlib2-devel zlib-devel
BuildRequires: gcc make glibc-devel
BuildRequires: autoconf automake libtool update-desktop-files
%description
A nice and straightforward screen capture utility.
Authors:
--------
Tom Gilbert <gilbertt@linuxbrit.co.uk>
%prep
%setup -q -a 1
%build
pushd "giblib-%{giblib_version}"
CFLAGS="%{optflags}" CPPFLAGS="%{optflags}" \
./configure --prefix="$PWD/INTREE" \
--libdir="$PWD/INTREE/%{_lib}" \
--disable-shared \
--enable-static
GIBLIB_PREFIX="$PWD/INTREE"
%__make %{?jobs:-j%{jobs}}
%__make install
popd #giblib
PATH="$GIBLIB_PREFIX/bin:$PATH" \
%configure --with-giblib-prefix="$GIBLIB_PREFIX"
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__rm -rf "%{buildroot}%{_prefix}/doc"
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/scrot
%doc %{_mandir}/man1/scrot.1*
%changelog
* Tue Feb 02 2010 Detlef Reichelt <detlef@links2linux.de> 0.8
- add "Requires: imlib2-loaders"
* Sun Nov 2 2008 Pascal Bleser <guru@unixtech.be> 0.8
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: