SPECS: fltk.spec - updated to 1.1.8 - added games subpackage; rena...
twittner
twittner at pld-linux.org
Fri Mar 28 21:15:28 CET 2008
Author: twittner Date: Fri Mar 28 20:15:28 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated to 1.1.8
- added games subpackage; renamed its some files to less generic names
- make (good) use of `make install'
- I assume that -cxx.patch is applied in sources (patch command told me of it)
---- Files affected:
SPECS:
fltk.spec (1.58 -> 1.59)
---- Diffs:
================================================================
Index: SPECS/fltk.spec
diff -u SPECS/fltk.spec:1.58 SPECS/fltk.spec:1.59
--- SPECS/fltk.spec:1.58 Wed Feb 6 21:19:49 2008
+++ SPECS/fltk.spec Fri Mar 28 21:15:22 2008
@@ -8,16 +8,16 @@
Summary(pl.UTF-8): FLTK - "lekki" X11 toolkit
Summary(pt_BR.UTF-8): Interface gráfica em C++ para X, OpenGL e Windows
Name: fltk
-Version: 1.1.7
+Version: 1.1.8
Release: 1
License: LGPL with amendments (see COPYING)
Group: X11/Libraries
-Source0: http://ftp.easysw.com/pub/fltk/1.1.7/%{name}-%{version}-source.tar.bz2
-# Source0-md5: 2e29319119adc9d63b2f26b72cae0a88
+Source0: http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
+# Source0-md5: 0f272d7299778e42fcbedf3c01741f4f
Source1: http://www.fltk.org/doc-1.1/%{name}.pdf
# Source1-md5: d3a073741c94d532ec7af9d96c138ea3
Patch0: %{name}-link.patch
-Patch1: %{name}-cxx.patch
+Patch1: %{name}-desktop.patch
URL: http://www.fltk.org/
%{?with_opengl:BuildRequires: OpenGL-GLU-devel}
BuildRequires: autoconf
@@ -129,6 +129,18 @@
%description gl-static -l pl.UTF-8
Statyczna biblioteka FLTK GL.
+%package games
+Summary: FLTK Games
+Summary: Gry FLTK
+Group: X11/Applications/Games
+Requires: %{name} = %{version}-%{release}
+
+%description games
+FLTK games: Block Attack!, Checkers, or Sudoku on your computer.
+
+%description -l pl.UTF-8
+Gry FLTK: Atak Klocków!, Warcaby, Sudoku.
+
%prep
%setup -q
%patch0 -p1
@@ -144,29 +156,20 @@
%{!?with_opengl:--disable-gl} \
%{?with_xft:--enable-xft}
-%{__make} depend
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir},%{_mandir}/man{1,3}}
-
-if [ "%{_lib}" != "lib" ] ; then
- ln -sf $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_prefix}/lib
-fi
%{__make} install \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- includedir=$RPM_BUILD_ROOT%{_includedir} \
- bindir=$RPM_BUILD_ROOT%{_bindir}
-
-if [ "%{_lib}" != "lib" ] ; then
- rm $RPM_BUILD_ROOT%{_prefix}/lib
-fi
-
-install documentation/fltk-config.man $RPM_BUILD_ROOT%{_mandir}/man1/fltk-config.1
-install documentation/fluid.man $RPM_BUILD_ROOT%{_mandir}/man1/fluid.1
-install documentation/fltk.man $RPM_BUILD_ROOT%{_mandir}/man3/fltk.3
+ install-desktop \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# less generic games' names
+for f in blocks checkers sudoku ; do
+mv -f $RPM_BUILD_ROOT%{_bindir}/{,fltk-}${f}
+mv -f $RPM_BUILD_ROOT%{_mandir}/man6/{,fltk-}${f}.6
+done
%clean
rm -rf $RPM_BUILD_ROOT
@@ -187,6 +190,9 @@
%doc documentation/*.{html,gif,jpg} fltk.pdf
%attr(755,root,root) %{_bindir}/fltk-config
%attr(755,root,root) %{_bindir}/fluid
+%{_iconsdir}/*/*/*/fluid.png
+%{_desktopdir}/fluid.desktop
+%{_datadir}/mimelnk/application/x-fluid.desktop
%attr(755,root,root) %{_libdir}/libfltk.so
%attr(755,root,root) %{_libdir}/libfltk_forms.so
%attr(755,root,root) %{_libdir}/libfltk_images.so
@@ -217,12 +223,32 @@
%{_libdir}/libfltk_gl.a
%endif
+%files games
+%attr(755,root,root) %{_bindir}/%{name}-blocks
+%attr(755,root,root) %{_bindir}/%{name}-checkers
+%attr(755,root,root) %{_bindir}/%{name}-sudoku
+%{_iconsdir}/*/*/*/blocks.png
+%{_iconsdir}/*/*/*/checkers.png
+%{_iconsdir}/*/*/*/sudoku.png
+%{_desktopdir}/blocks.desktop
+%{_desktopdir}/checkers.desktop
+%{_desktopdir}/sudoku.desktop
+%{_mandir}/man6/%{name}-blocks.6*
+%{_mandir}/man6/%{name}-checkers.6*
+%{_mandir}/man6/%{name}-sudoku.6*
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.59 2008-03-28 20:15:22 twittner
+- updated to 1.1.8
+- added games subpackage; renamed its some files to less generic names
+- make (good) use of `make install'
+- I assume that -cxx.patch is applied in sources (patch command told me of it)
+
Revision 1.58 2008-02-06 20:19:49 qboosh
- unified bcond name: gl -> opengl
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/fltk.spec?r1=1.58&r2=1.59&f=u
More information about the pld-cvs-commit
mailing list