Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 03bec34a1a36a5b58cbf7ddc92f8a400 > files > 4

x11-data-cursor-themes-1.0.3-2.mga3.src.rpm

Summary:	X11 Cursor Themes
Name:		x11-data-cursor-themes
Version:	1.0.3
Release:	%mkrel 2
Group:		Development/X11
License:	MIT
Source0:	http://xorg.freedesktop.org/releases/individual/data/xcursor-themes-%{version}.tar.bz2 
Source1:	wonderland-cursor.tar.bz2
Source2:	index.theme
Source3:	contrastlarge.tar.bz2
BuildArch:	noarch
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	xcursorgen >= 1.0.0
BuildRequires:	libxcursor-devel >= 1.1.5.2
Conflicts:	xorg-x11 < 7.0
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
Cursor themes for X11 environment.

%prep
%setup -q -n xcursor-themes-%{version}

%build
./configure --prefix=%{_prefix}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

tar xvj -C %{buildroot}%{_iconsdir} -f %{SOURCE1} 
tar xvj -C %{buildroot}%{_iconsdir} -f %{SOURCE3} 
mkdir -p %{buildroot}/%{_iconsdir}/default
install -m 644 %{SOURCE2} %{buildroot}/%{_iconsdir}/default

# The contrastlarge "xterm" cursor is completly black, making it useless on a
# dark background, but the theme authors provide an alternative:
# xterm_extra_large
mv %{buildroot}/%{_iconsdir}/contrastlarge/cursors/xterm_extra_large %{buildroot}/%{_iconsdir}/contrastlarge/cursors/xterm

# Create Hash symlinks
THEMES="contrastlarge handhelds redglass whiteglass wonderland"
LINKS="00008160000006810000408080010102=sb_v_double_arrow \
028006030e0e7ebffc7f7070c0600140=sb_h_double_arrow \
03b6e0fcb3499374a867c041f52298f0=crossed_circle \
08e8e1c95fe2fc01f976f1e063a24ccd=left_ptr_watch \
14fef782d02440884392942c11205230=h_double_arrow	\
2870a09082c103050810ffdffffe0204=v_double_arrow \
3ecb610c1bf2410f44200f48c40d3599=left_ptr_watch \
4498f0e0c1937ffe01fd06f973665830=fleur \
5c6cd98b3f3ebcb1f9c7f1c204630408=question_arrow \
6407b0e94181790501fd1e167b474872=copy \
640fb0e74195791501fd1ed57b41487f=link \
9d800788f1b08800ae810202380a0822=hand1 \
c7088f0f3e6c8088236ef8e1e3e70000=top_left_corner \
d9ce0ab605698f320427677b458ad60b=question_arrow \
e29285e634086352946a0e7090d73106=hand2 \
fcf1c3c7cd4491d801f1e1c78f100000=top_right_corner"

for theme in $THEMES; do
    pushd %{buildroot}/%{_iconsdir}/$theme/cursors

    for link in $LINKS; do
    	from=`echo $link | cut -d= -f1`
    	to=`echo $link | cut -d= -f2`

    	if [ -e "$to" ] && [ ! -e "$from" ]; then
	   ln -s "$to" "$from"
	fi
    done

    popd
done

%clean
rm -rf %{buildroot}

%files
# contrastlarge theme files have +x permission, undo this:
%defattr(0644,root,root,0755)
%doc ChangeLog README
%dir %{_datadir}/icons/default
%dir %{_datadir}/icons/handhelds
%dir %{_datadir}/icons/redglass
%dir %{_datadir}/icons/whiteglass
%dir %{_datadir}/icons/wonderland
%dir %{_datadir}/icons/contrastlarge
%{_datadir}/icons/default/*
%{_datadir}/icons/handhelds/*
%{_datadir}/icons/redglass/*
%{_datadir}/icons/whiteglass/*
%{_datadir}/icons/wonderland/*
%{_datadir}/icons/contrastlarge/*




%changelog

* Mon Jan 14 2013 umeabot <umeabot> 1.0.3-2.mga3
+ Revision: 385909
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Aug 15 2011 tv <tv> 1.0.3-1.mga2
+ Revision: 133336
- fix build
- new release

* Fri Jan 21 2011 ennael <ennael> 1.0.2-2.mga1
+ Revision: 27621
- imported package x11-data-cursor-themes