RPM spec file updates.

This commit is contained in:
William Kendrick 2005-11-04 05:25:12 +00:00
parent 56a160995f
commit 2fb9edea1e
3 changed files with 42 additions and 18 deletions

View file

@ -7,7 +7,7 @@ bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/ http://www.newbreedsoftware.com/tuxpaint/
June 17, 2002 - October 24, 2005 June 17, 2002 - November 3, 2005
* Design and Coding: * Design and Coding:
@ -290,8 +290,9 @@ June 17, 2002 - October 24, 2005
* Debian Linux packages * Debian Linux packages
Ben Armstrong <synrg@sanctuary.nslug.ns.ca> Ben Armstrong <synrg@sanctuary.nslug.ns.ca>
* RedHat Linux / Fedora Core packages * RedHat Linux / Fedora Core packages and RPM spec file
TOYAMA Shin-ichi <shin1@wmail.plala.or.jp> TOYAMA Shin-ichi <shin1@wmail.plala.or.jp>
Richard June <rjune[AT]lumensoftware.com>
* NetBSD packages * NetBSD packages
Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at> Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>

View file

@ -7,7 +7,7 @@ bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/ http://www.newbreedsoftware.com/tuxpaint/
2005.October.24 (0.9.15) 2005.November.3 (0.9.15)
* Speed improvements: * Speed improvements:
------------------- -------------------
@ -304,6 +304,14 @@ http://www.newbreedsoftware.com/tuxpaint/
* Added BeOS resource file (src/tuxpaint.rsrc) * Added BeOS resource file (src/tuxpaint.rsrc)
Marcin 'Shard' Konicki <shard at beosjournal.org> Marcin 'Shard' Konicki <shard at beosjournal.org>
* Replaced all instances of absolute paths with macro counterparts in
"tuxpaint.spec" file.
Richard June <rjune[AT]lumensoftware.com>
* Reset buildroot in "tuxpaint.spec" to incorporate username of the
builder.
Richard June <rjune[AT]lumensoftware.com>
* Added "PKG_ROOT" variable to Makefile, and "tuxpaint.spec" file, * Added "PKG_ROOT" variable to Makefile, and "tuxpaint.spec" file,
for Tux Paint RPM building ease. for Tux Paint RPM building ease.
TOYAMA Shin-ichi <shin1@wmail.plala.or.jp> TOYAMA Shin-ichi <shin1@wmail.plala.or.jp>

View file

@ -1,12 +1,13 @@
Summary: A drawing program for young children Summary: A drawing program for young children
Name: tuxpaint Name: tuxpaint
Version: 0.9.15 Version: 0.9.14
Release: 1 Release: 0.lumen.0
License: GPL License: GPL
Group: Multimedia/Graphics Group: Multimedia/Graphics
URL: http://www.newbreedsoftware.com/tuxpaint/ URL: http://www.newbreedsoftware.com/tuxpaint/
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root patch1: tuxpaint-DESTDIR.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: SDL >= 1.2.4 SDL_image SDL_mixer SDL_ttf libpng zlib Requires: SDL >= 1.2.4 SDL_image SDL_mixer SDL_ttf libpng zlib
BuildRequires: SDL-devel >= 1.2.4 SDL_image-devel SDL_mixer-devel SDL_ttf-devel BuildRequires: SDL-devel >= 1.2.4 SDL_image-devel SDL_mixer-devel SDL_ttf-devel
BuildRequires: libpng-devel zlib-devel gettext BuildRequires: libpng-devel zlib-devel gettext
@ -24,13 +25,23 @@ such as sound effects.
%prep %prep
%setup -q %setup -q
%patch1 -p1
%build %build
make PREFIX=/usr make PREFIX=%{_prefix}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make PREFIX=/usr PKG_ROOT=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
make PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT install
mv $RPM_BUILD_ROOT/share/gnome/apps/Graphics/tuxpaint.desktop $RPM_BUILD_ROOT%{_datadir}/applications
rm -R $RPM_BUILD_ROOT/share
find $RPM_BUILD_ROOT -name tuxpaint.desktop | sort | \ find $RPM_BUILD_ROOT -name tuxpaint.desktop | sort | \
sed -e "s@$RPM_BUILD_ROOT@@g" > filelist.icons sed -e "s@$RPM_BUILD_ROOT@@g" > filelist.icons
@ -49,23 +60,27 @@ rm -rf $RPM_BUILD_ROOT
%files -f filelist.icons %files -f filelist.icons
%defattr(-,root,root,-) %defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/tuxpaint/tuxpaint.conf
%doc docs/* %doc docs/*
%{_datadir}/tuxpaint/*
%defattr(0755, root, root) %defattr(0755, root, root)
/usr/bin/* %{_bindir}/*
%defattr(0644, root, root) %defattr(0644, root, root)
/usr/share/locale/*/LC_MESSAGES/tuxpaint.mo %{_datadir}/locale/*/LC_MESSAGES/tuxpaint.mo
/usr/share/man/man1/* %{_datadir}/man/man1/*
/usr/share/man/*/man1/tuxpaint.1.gz %{_datadir}/man/*/man1/tuxpaint.1.gz
%config(noreplace) /etc/tuxpaint/tuxpaint.conf
%defattr(-, root, root)
/usr/share/tuxpaint/*
%changelog %changelog
* Thu Nov 03 2005 Richard June <rjune[AT]lumensoftware.com - 0:0.9.14-0.lumen.0
- Ported from CVS for 0.9.15
- Replaced all instances of absolute paths with macro counterparts
- Reset buildroot to incorporate username of the builder
- Set Release value to 0.lumen.0 ( so as not to clobber any distros that provide it)
- Set a proper %changelog entry
* Thu Sep 15 2005 <shin1@wmail.plala.or.jp> - * Thu Sep 15 2005 <shin1@wmail.plala.or.jp> -
- Do not force install desktop icons when Gnome and/or KDE are not installed. - Do not force install desktop icons when Gnome and/or KDE are not installed.