Updated .spec file
This commit is contained in:
parent
6b0bc39087
commit
07c550e6a4
1 changed files with 16 additions and 8 deletions
|
|
@ -5,10 +5,10 @@ Release: 1
|
|||
License: GPL
|
||||
Group: Multimedia/Graphics
|
||||
URL: https://tuxpaint.org/
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source0: https://downloads.sourceforge.net/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
Requires: SDL2 SDL2_image SDL2_mixer SDL2_ttf SDL2_Pango SDL2_gfx libpaper fribidi xdg-utils libimagequant
|
||||
BuildRequires: SDL2-devel SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel SDL2_Pango-devel SDL2_gfx-devel
|
||||
Requires: SDL2 >= 2.0 SDL2_image SDL2_mixer SDL2_ttf SDL2_Pango SDL2_gfx libpaper fribidi xdg-utils libimagequant
|
||||
BuildRequires: SDL2-devel >= 2.0 SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel SDL2_Pango-devel SDL2_gfx-devel
|
||||
BuildRequires: librsvg2-devel libpaper-devel fribidi-devel gperf gettext >= 0.19.7 ImageMagick xdg-utils libimagequant-devel
|
||||
|
||||
%description
|
||||
|
|
@ -26,7 +26,7 @@ such as sound effects.
|
|||
Summary: development files for tuxpaint plugins.
|
||||
Group: Development/Libraries
|
||||
Requires: tuxpaint = %{version}
|
||||
Requires: SDL2-devel SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel SDL2_Pango-devel
|
||||
Requires: SDL2-devel >= 2.0 SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel SDL2_Pango-devel SDL2_gfx-devel
|
||||
Requires: librsvg2-devel libpaper-devel fribidi-devel gperf
|
||||
|
||||
%description devel
|
||||
|
|
@ -36,13 +36,14 @@ development files for tuxpaint plugins.
|
|||
%setup -q
|
||||
|
||||
%build
|
||||
make PREFIX=%{_prefix} DOC_PREFIX=%{_docdir}/tuxpaint/en linux_ARCH_CFLAGS='-I/usr/include/imagequant -I/usr/include/freetype2'
|
||||
make PREFIX=%{_prefix} DOC_PREFIX=%{_docdir}/tuxpaint linux_ARCH_CFLAGS='-I/usr/include/imagequant -I/usr/include/freetype2'
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make ARCH_INSTALL="install-man install-importscript install-bash-completion" \
|
||||
PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT \
|
||||
DOC_PREFIX=$RPM_BUILD_ROOT%{_docdir}/tuxpaint \
|
||||
DEVDOC_PREFIX=$RPM_BUILD_ROOT%{_docdir}/tuxpaint/devel \
|
||||
install
|
||||
|
||||
export XDG_DATA_DIRS=$RPM_BUILD_ROOT%{_datadir}
|
||||
|
|
@ -58,8 +59,11 @@ xdg-icon-resource install --mode system --noupdate --size 22 data/images/icon22x
|
|||
xdg-icon-resource install --mode system --noupdate --size 16 data/images/icon16x16.png tux4kids-tuxpaint
|
||||
|
||||
cp src/tuxpaint.desktop ./tux4kids-tuxpaint.desktop
|
||||
cp src/tuxpaint-fullscreen.desktop ./tux4kids-tuxpaint-fullscreen.desktop
|
||||
xdg-desktop-menu install --mode system --noupdate tux4kids-tuxpaint.desktop
|
||||
xdg-desktop-menu install --mode system --noupdate tux4kids-tuxpaint-fullscreen.desktop
|
||||
rm ./tux4kids-tuxpaint.desktop
|
||||
rm ./tux4kids-tuxpaint-fullscreen.desktop
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/tuxpaint/outdated
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/tuxpaint/fonts/locale/zh_tw_docs
|
||||
|
|
@ -86,6 +90,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_datadir}/tuxpaint/*
|
||||
%{_datadir}/pixmaps/tuxpaint.*
|
||||
%{_datadir}/applications/tux4kids-tuxpaint.desktop
|
||||
%{_datadir}/applications/tux4kids-tuxpaint-fullscreen.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/tux4kids-tuxpaint.png
|
||||
%{_datadir}/locale/*/LC_MESSAGES/tuxpaint.mo
|
||||
%{_mandir}/man1/tuxpaint*.*
|
||||
|
|
@ -106,10 +111,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_docdir}/tuxpaint/*/html/tp_magic_example.c
|
||||
|
||||
%changelog
|
||||
* Mon May 20 2023 <nbs@sonic.net> -
|
||||
* Wed Jun 07 2023 <dolphin6k@wmail.plala.or.jp> -
|
||||
- Added fullscreen launcher icon.
|
||||
|
||||
* Sat May 20 2023 <nbs@sonic.net> -
|
||||
- Set version number 0.9.31
|
||||
|
||||
* Mon Apr 04 2023 <nbs@sonic.net> -
|
||||
* Tue Apr 04 2023 <nbs@sonic.net> -
|
||||
- Set version number 0.9.30
|
||||
|
||||
* Wed Mar 22 2023 <dolphin6k@wmail.plala.or.jp>
|
||||
|
|
@ -117,7 +125,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
* Fri Mar 10 2023 <dolphin6k@wmail.plala.or.jp>
|
||||
- Magic docs to go the main package
|
||||
- Magid devel docs to go the devel package
|
||||
- Magic devel docs to go the devel package
|
||||
- Excluded outdated docs.
|
||||
|
||||
* Sun Dec 11 2022 <nbs@sonic.net> -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue