SPEC file to use xdg-utils to install icons.
This commit is contained in:
parent
99fb3f7dce
commit
8a271b6a4e
1 changed files with 43 additions and 43 deletions
|
|
@ -2,17 +2,14 @@ Summary: A drawing program for young children
|
||||||
Name: tuxpaint
|
Name: tuxpaint
|
||||||
Version: 0.9.24
|
Version: 0.9.24
|
||||||
Release: 1
|
Release: 1
|
||||||
Epoch: 1
|
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Multimedia/Graphics
|
Group: Multimedia/Graphics
|
||||||
URL: http://www.tuxpaint.org/
|
URL: http://www.tuxpaint.org/
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
Requires: SDL >= 1.2.4 SDL_image SDL_mixer SDL_ttf SDL_Pango
|
Requires: SDL >= 1.2.4 SDL_image SDL_mixer SDL_ttf SDL_Pango libpaper fribidi xdg-utils
|
||||||
Requires: libpng librsvg2 cairo libpaper fribidi
|
|
||||||
BuildRequires: SDL-devel >= 1.2.4 SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL_Pango-devel
|
BuildRequires: SDL-devel >= 1.2.4 SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL_Pango-devel
|
||||||
BuildRequires: libpng-devel librsvg2-devel cairo-devel libpaper-devel fribidi-devel
|
BuildRequires: librsvg2-devel libpaper-devel fribidi-devel gperf gettext ImageMagick xdg-utils
|
||||||
BuildRequires: gperf gettext ImageMagick
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
"Tux Paint" is a drawing program for young children.
|
"Tux Paint" is a drawing program for young children.
|
||||||
|
|
@ -30,8 +27,7 @@ Summary: development files for tuxpaint plugins.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: tuxpaint = %{version}
|
Requires: tuxpaint = %{version}
|
||||||
Requires: SDL-devel >= 1.2.4 SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL_Pango-devel
|
Requires: SDL-devel >= 1.2.4 SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL_Pango-devel
|
||||||
Requires: libpng-devel librsvg2-devel cairo-devel libpaper-devel fribidi-devel
|
Requires: librsvg2-devel libpaper-devel fribidi-devel gperf
|
||||||
Requires: gperf gettext
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
development files for tuxpaint plugins.
|
development files for tuxpaint plugins.
|
||||||
|
|
@ -44,60 +40,64 @@ make PREFIX=%{_prefix}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}
|
make ARCH_INSTALL="" PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
|
|
||||||
|
|
||||||
make PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT \
|
export XDG_DATA_DIRS=$RPM_BUILD_ROOT%{_datadir}
|
||||||
install-bin install-data install-man install-doc \
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/{icons/hicolor,applications,desktop-directories}
|
||||||
install-magic-plugins \
|
|
||||||
install-magic-plugin-dev \
|
|
||||||
install-icon install-gettext install-im install-importscript \
|
|
||||||
install-default-config install-example-stamps \
|
|
||||||
install-example-starters install-example-templates \
|
|
||||||
install-thumb-starters install-thumb-templates \
|
|
||||||
install-bash-completion \
|
|
||||||
install-osk
|
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name tuxpaint.desktop | sort | \
|
xdg-icon-resource install --mode system --noupdate --size 192 data/images/icon192x192.png tux4kids-tuxpaint
|
||||||
sed -e "s@$RPM_BUILD_ROOT@@g" > filelist.icons
|
xdg-icon-resource install --mode system --noupdate --size 128 data/images/icon128x128.png tux4kids-tuxpaint
|
||||||
find $RPM_BUILD_ROOT -name tuxpaint.png | sort | \
|
xdg-icon-resource install --mode system --noupdate --size 96 data/images/icon96x96.png tux4kids-tuxpaint
|
||||||
sed -e "s@$RPM_BUILD_ROOT@@g" >> filelist.icons
|
xdg-icon-resource install --mode system --noupdate --size 64 data/images/icon64x64.png tux4kids-tuxpaint
|
||||||
find $RPM_BUILD_ROOT -name tuxpaint.svg | sort | \
|
xdg-icon-resource install --mode system --noupdate --size 48 data/images/icon48x48.png tux4kids-tuxpaint
|
||||||
sed -e "s@$RPM_BUILD_ROOT@@g" >> filelist.icons
|
xdg-icon-resource install --mode system --noupdate --size 32 data/images/icon32x32.png tux4kids-tuxpaint
|
||||||
find $RPM_BUILD_ROOT -name tuxpaint.xpm | sort | \
|
xdg-icon-resource install --mode system --noupdate --size 22 data/images/icon22x22.png tux4kids-tuxpaint
|
||||||
sed -e "s@$RPM_BUILD_ROOT@@g" >> filelist.icons
|
xdg-icon-resource install --mode system --noupdate --size 16 data/images/icon16x16.png tux4kids-tuxpaint
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/share/doc/tuxpaint*
|
cp src/tuxpaint.desktop ./tux4kids-tuxpaint.desktop
|
||||||
|
xdg-desktop-menu install --mode system --noupdate tux4kids-tuxpaint.desktop
|
||||||
|
rm ./tux4kids-tuxpaint.desktop
|
||||||
|
|
||||||
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/tuxpaint-dev
|
||||||
|
mv magic/magic-docs docs
|
||||||
|
|
||||||
|
%post
|
||||||
|
update-desktop-database
|
||||||
|
|
||||||
|
%postun
|
||||||
|
update-desktop-database
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f filelist.icons
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(755,root,root,755)
|
||||||
|
%{_bindir}/tuxpaint
|
||||||
|
%{_bindir}/tuxpaint-import
|
||||||
|
%{_prefix}/lib/tuxpaint/*
|
||||||
|
|
||||||
|
%defattr(644,root,root,755)
|
||||||
%config(noreplace) %{_sysconfdir}/tuxpaint/tuxpaint.conf
|
%config(noreplace) %{_sysconfdir}/tuxpaint/tuxpaint.conf
|
||||||
%doc docs/*
|
%doc docs/*
|
||||||
%{_datadir}/tuxpaint/*
|
%{_datadir}/tuxpaint/*
|
||||||
|
%{_datadir}/pixmaps/tuxpaint.*
|
||||||
|
%{_datadir}/applications/tux4kids-tuxpaint.desktop
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/tux4kids-tuxpaint.png
|
||||||
%{_sysconfdir}/bash_completion.d/tuxpaint-completion.bash
|
%{_sysconfdir}/bash_completion.d/tuxpaint-completion.bash
|
||||||
|
|
||||||
%defattr(0755, root, root)
|
|
||||||
%{_bindir}/tuxpaint
|
|
||||||
%{_bindir}/tuxpaint-import
|
|
||||||
|
|
||||||
%{_prefix}/lib/tuxpaint/plugins/*.so
|
|
||||||
|
|
||||||
%defattr(0644, root, root)
|
|
||||||
%{_datadir}/locale/*/LC_MESSAGES/tuxpaint.mo
|
%{_datadir}/locale/*/LC_MESSAGES/tuxpaint.mo
|
||||||
%{_datadir}/man/man1/*
|
%{_datadir}/man/man1/*
|
||||||
%{_datadir}/man/*/man1/tuxpaint.1.*
|
%{_datadir}/man/*/man1/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%attr(755,root,root) %{_bindir}/tp-magic-config
|
||||||
|
%defattr(644,root,root,755)
|
||||||
%doc magic/docs/*
|
%doc magic/docs/*
|
||||||
%{_prefix}/include/tuxpaint/tp_magic_api.h
|
%{_includedir}/tuxpaint/tp_magic_api.h
|
||||||
%{_prefix}/bin/tp-magic-config
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 1 2020 <shin1@wmail.plala.or.jp> -
|
||||||
|
- Enabled using xdg-utils for installing icons.
|
||||||
|
|
||||||
* Thu Mar 14 2020 <shin1@wmail.plala.or.jp> -
|
* Thu Mar 14 2020 <shin1@wmail.plala.or.jp> -
|
||||||
- Disable target "install-xdg". Add ImageMagick for BuildReq.
|
- Disable target "install-xdg". Add ImageMagick for BuildReq.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue