[Bug 847558] Review Request: mate-icon-theme - Icon theme for MATE Desktop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=847558

--- Comment #5 from Wolfgang Ulbrich <chat-to-me@xxxxxxxxx> ---
Dan, in repo i have a subpackage -legacy.
So, for updating my package from external repo, we need a subpackage here too.

%package legacy
Summary: Old names for icons in mate-icon-theme
Group: User Interface/Desktops
Requires: %{name} = %{version}-%{release}

%description legacy
This package contains symlinks to make the icons in mate-icon-theme
available under old names.


Under install after 'make install DESTDIR=%{buildroot}',we need this

# Add scalable directories for symbolic icons
(cd $RPM_BUILD_ROOT%{_datadir}/icons/mate

mkdir -p scalable/actions
mkdir -p scalable/apps
mkdir -p scalable/devices
mkdir -p scalable/emblems
mkdir -p scalable/mimetypes
mkdir -p scalable/places
mkdir -p scalable/status
)

(cd $RPM_BUILD_ROOT%{_datadir}
  find icons/mate \( -name gtk-* -or -type f \) -printf "%%%%{_datadir}/%%p\n"
 find icons/mate -type d -printf "%%%%dir %%%%{_datadir}/%%p\n"
) > files.txt

(cd $RPM_BUILD_ROOT%{_datadir}
 find icons/mate \( -type l -and -not -name gtk-* \) -printf
"%%%%{_datadir}/%%p\n"
) > legacy.txt


In result you can use in file section

%files -f files.txt

%files legacy -f legacy.txt


Also we need post postun and posttrans for legacy subpackage.

%post legacy
/bin/touch --no-create %{_datadir}/icons/mate &>/dev/null || :

%postun legacy
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/mate &>/dev/null
    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &>/dev/null || :
fi

%posttrans legacy
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate &>/dev/null || :


That's all ;)

There is a white space beding this line
NOCONFIGURE=1 ./autogen.sh

But this is cosmetic.

Add subpackage and i will approve your package.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]