Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37039827
en ru br
ALT Linux repos
S:5.110.0-alt1

Group :: Graphical desktop/KDE
RPM: kf5-breeze-icons

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define rname breeze-icons

Name: kf5-%rname
Version: 5.110.0
Release: alt1
%K5init no_altplace

Group: Graphical desktop/KDE
Summary: Breeze icons theme
Url: http://www.kde.org
License: GPLv2+ / LGPLv2+

Source: %rname-%version.tar
Patch1: alt-icons-defaults.patch

# Automatically added by buildreq on Fri Dec 11 2015 (-bi)

# optimized out: cmake cmake-modules gtk-update-icon-cache libqt5-core libstdc++-devel perl-Encode perl-XML-LibXML perl-XML-SAX perl-XML-SAX-Base perl-XML-Simple perl-parent python-base python3 python3-base
#BuildRequires: extra-cmake-modules gcc-c++ icon-naming-utils qt5-base-devel rpm-build-python3 ruby ruby-stdlibs
BuildRequires(pre): rpm-build-kf5 rpm-build-ubt
BuildRequires: extra-cmake-modules gcc-c++ qt5-base-devel
BuildRequires: icon-naming-utils xml-utils

%description
%summary

%package -n icon-theme-breeze
Summary: Breeze icons theme
Group: Graphics
BuildArch: noarch
Provides: kde4-icon-theme = %version-%release
%description -n icon-theme-breeze
%summary

%package devel
Group: Development/KDE and QT
Summary: Development files for %name
%description devel
The %name-devel package files for developing applications that use %name.


%prep
%setup -n %rname-%version
%patch1 -p1

chmod a+x *.sh

# remove telegram status icons

#find ./ -type f -name 'telegram-*' | \
#while read f; do
#    rm -f $f
#done

%build
%K5build

%install
%K5install

# 5858 7498

for t in %buildroot/%_iconsdir/* ; do
   [ -d $t ] || continue
   theme_subdir=`basename $t`
   mkdir %buildroot/%_iconsdir/tmp-$theme_subdir
   pushd $t
   ls -1d */* | \
   while read subdir ; do
[ -d $subdir ] || continue
ctx=`dirname $subdir`
sz=`basename $subdir`
mkdir -p %buildroot/%_iconsdir/tmp-$theme_subdir/$sz
ln -s $t/$ctx/$sz %buildroot/%_iconsdir/tmp-$theme_subdir/$sz/$ctx
   done
   popd
done

for t in %buildroot/%_iconsdir/tmp-* ; do
   [ -d $t ] || continue
   pushd $t
ls -1d * | \
while read sz ; do
   [ -d $sz ] || continue
   pushd $sz
   ls -1d * | \
   while read ctx ; do
[ -d $ctx ] || continue
%_libexecdir/icon-name-mapping -c $ctx
   done
   popd
done
   popd
done

rm -rf %buildroot/%_iconsdir/tmp-*

# remove unappropriate icons symlinks

for i in calc
do
   find %buildroot/%_iconsdir -type l \( -name ${i}.png -o -name ${i}.svg \) | \
while read f; do rm -f ${f} ||: ; done
done

# fix broken symlinks

find %buildroot/%_iconsdir -type l | \
while read l ; do
   [ -e $l ] || rm -f $l
done

# create custom icons

for e in \
   "inode-directory application-x-smb-share" \
   #
do
   icon_from=`echo "$e"| cut -d\  -f1`
   icon_to=`echo "$e"| cut -d\  -f2`
   find %buildroot/%_iconsdir/ -name ${icon_from}.svg | \
   while read p; do
icon_dir=`dirname $p`
ln -s ${icon_from}.svg $icon_dir/${icon_to}.svg ||:
   done
done

%files -n icon-theme-breeze
%doc COPYING*
%_iconsdir/breeze*/

%files devel
%_libdir/cmake/KF5BreezeIcons/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin