]> git.pld-linux.org Git - packages/gnome-games.git/blobdiff - gnome-games.spec
- typo in sound files path.
[packages/gnome-games.git] / gnome-games.spec
index 16229b42a399389e4900506cc92871ad283c5631..fc90d98982e928e65179c468fe27f84b871b8fba 100644 (file)
@@ -1,15 +1,33 @@
-Summary:     GNOME games
-Summary(pl): GNOME - Gry
-Name:        gnome-games
-Version:     0.27
-Release:     2
-Copyright:   LGPL
-Group:       X11/Libraries
-Source:      ftp://ftp.gnome.org/pub/GNOME/sources/%{name}-%{version}.tar.gz
-BuildRoot:   /tmp/%{name}-%{version}-root
-Requires:    gnome-libs >= %{version}
-Obsoletes:   gnome
-URL:         http://www.gnome.org
+Summary:       GNOME games
+Summary(es):   Juegos de GNOME
+Summary(fr):   Jeux pour GNOME
+Summary(pl):   GNOME - Gry
+Summary(wa):   Djeus po GNOME
+Name:          gnome-games
+Version:       1.0.51
+Release:       6
+Copyright:     LGPL
+Group:         X11/GNOME
+Group(pl):     X11/GNOME
+Source:                ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-games/%{name}-%{version}.tar.gz
+Patch:         gnome-games-applnk.patch
+Icon:          gnome-games.gif
+BuildRequires: gnome-libs-devel >= 1.0.0
+BuildRequires: ORBit >= 0.4.3
+BuildRequires: audiofile-devel >= 0.1.5
+BuildRequires: gtk+-devel >= 1.2.0
+BuildRequires: guile-devel >= 1.3
+BuildRequires: esound-devel >= 0.2.7
+BuildRequires: readline-devel
+BuildRequires: ncurses-devel >= 5.0
+URL:           http://www.gnome.org/
+BuildRoot:     /tmp/%{name}-%{version}-root
+Obsoletes:     gnome
+
+%define                _prefix         /usr/X11R6
+%define                _sysconfdir     /etc/X11/GNOME
+%define                _localstatedir  /var
+%define                _applnkdir      %{_datadir}/applnk
 
 %description
 GNOME games.
@@ -22,10 +40,12 @@ using your computer easy, powerful, and easy to configure.
 Gry pod GNOME.
 
 %package devel
-Summary:     GNOME games libraries - header files
-Summary(pl): Pliki nag³ówkowedo tworzenia programów opartych o GNOME games
-Group:       X11/Libraries
-Requires:    %{name} =%{version}
+Summary:       GNOME games libraries - header files
+Summary(pl):   Pliki nag³ówkowedo tworzenia programów opartych o GNOME games
+Group:         X11/GNOME/Development/Libraries
+Group(pl):     X11/GNOME/Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+Requires:      gtk+-devel
 
 %description devel
 GNOME games libraries - header files.
@@ -36,10 +56,11 @@ Right now this is just stuff to develop care games. I think.
 Pliki nag³ówkowedo tworzenia programów opartych o GNOME games.
 
 %package static
-Summary:     GNOME games static libraries
-Summary(pl): Biblioteki statyczne do GNOME games
-Group:       X11/Libraries
-Requires:    %{name}-devel =%{version}
+Summary:       GNOME games static libraries
+Summary(pl):   Biblioteki statyczne do GNOME games
+Group:         X11/GNOME/Development/Libraries
+Group(pl):     X11/GNOME/Programowanie/Biblioteki
+Requires:      %{name}-devel = %{version}
 
 %description static
 GNOME games static libraries.
@@ -49,29 +70,28 @@ Biblioteki statyczne do GNOME games
 
 %prep
 %setup -q
+%patch -p1
 
 %build
-# Needed for snapshot releases.
-if [ ! -f configure ]; then
-  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh \
-                       --prefix=/usr \
-                       --localstatedir=/var
-else
-  CFLAGS="$RPM_OPT_FLAGS" ./configure \
-                       --prefix=/usr \
-                       --localstatedir=/var
-fi
+gettextize --copy --force
+automake
+autoconf
+LDFLAGS="-s"; export LDFLAGS
+%configure 
 
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make install \
-       prefix=$RPM_BUILD_ROOT/usr \
-       localstatedir=$RPM_BUILD_ROOT/var
+make install DESTDIR=$RPM_BUILD_ROOT
 
-strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*so.*.*}
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.* \
+       $RPM_BUILD_ROOT%{_libdir}/gnome-stones/objects/lib*.so*
+
+gzip -9nf AUTHORS ChangeLog NEWS README
+
+%find_lang %{name}
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -79,53 +99,79 @@ strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*so.*.*}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644, root, root, 755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(2755, root, games) /usr/bin/*
-%attr(0755, root,  root) /usr/lib/lib*.so.*.*
-/usr/share/pixmaps/*
-/usr/share/sol-games
-/usr/share/apps/Games/*
-/usr/share/gnome/help/*
-%lang(cs) /usr/share/locale/cs/LC_MESSAGES/gnome-games.mo
-%lang(da) /usr/share/locale/da/LC_MESSAGES/gnome-games.mo
-%lang(de) /usr/share/locale/de/LC_MESSAGES/gnome-games.mo
-%lang(es) /usr/share/locale/es/LC_MESSAGES/gnome-games.mo
-%lang(fr) /usr/share/locale/fr/LC_MESSAGES/gnome-games.mo
-%lang(ga) /usr/share/locale/ga/LC_MESSAGES/gnome-games.mo
-%lang(it) /usr/share/locale/it/LC_MESSAGES/gnome-games.mo
-%lang(ja) /usr/share/locale/ja/LC_MESSAGES/gnome-games.mo
-%lang(ko) /usr/share/locale/ko/LC_MESSAGES/gnome-games.mo
-%lang(no) /usr/share/locale/no/LC_MESSAGES/gnome-games.mo
-%lang(pt) /usr/share/locale/pt/LC_MESSAGES/gnome-games.mo
-%attr(664, root, games) /var/games/*
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS.gz ChangeLog.gz NEWS.gz README.gz
+%config %{_sysconfdir}/sound/events/*
+
+%attr(755,root,root) %{_bindir}/GnomeScott
+%attr(755,root,root) %{_bindir}/ctali
+%attr(755,root,root) %{_bindir}/freecell
+%attr(755,root,root) %{_bindir}/gataxx
+%attr(755,root,root) %{_bindir}/sol
+%attr(2755,root,games) %{_bindir}/glines
+%attr(2755,root,games) %{_bindir}/gnibbles
+%attr(2755,root,games) %{_bindir}/gnobots2
+%attr(2755,root,games) %{_bindir}/gnome-stones
+%attr(2755,root,games) %{_bindir}/gnome-xbill
+%attr(2755,root,games) %{_bindir}/gnometris
+%attr(2755,root,games) %{_bindir}/gnomine
+%attr(2755,root,games) %{_bindir}/gnotravex
+%attr(2755,root,games) %{_bindir}/gtali
+%attr(2755,root,games) %{_bindir}/gturing
+%attr(2755,root,games) %{_bindir}/iagno
+%attr(2755,root,games) %{_bindir}/mahjongg
+%attr(2755,root,games) %{_bindir}/same-gnome
+
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%dir %{_libdir}/gnome-stones
+%dir %{_libdir}/gnome-stones/objects
+%attr(755,root,root) %{_libdir}/gnome-stones/objects/lib*.so*
+%attr(755,root,root) %{_libdir}/gnome-stones/objects/lib*.la
+
+%{_datadir}/gnibbles
+%{_datadir}/gnobots2
+%{_datadir}/gnome-stones
+%{_datadir}/gturing
+%{_datadir}/sol-games
+%{_datadir}/xbill
+
+%{_datadir}/mime-info/*
+%{_datadir}/pixmaps/*
+%{_datadir}/sounds/*
+
+%{_datadir}/gnome-stonesrc
+%lang(ko) %{_datadir}/gnome-stonesrc.ko
+
+%{_applnkdir}/Games/*.desktop
+
+%dir %{_datadir}/gnome/help/aisleriot
+%{_datadir}/gnome/help/aisleriot/C
+
+%dir %{_datadir}/gnome/help/gnobots2
+%{_datadir}/gnome/help/gnobots2/C
+%lang(es) %{_datadir}/gnome/help/gnobots2/es
+%lang(it) %{_datadir}/gnome/help/gnobots2/it
+
+%dir %{_datadir}/gnome/help/gtali
+%{_datadir}/gnome/help/gtali/C
+
+%dir %{_datadir}/gnome/help/gturing
+%{_datadir}/gnome/help/gturing/C
+
+%dir %{_datadir}/gnome/help/samegnome
+%{_datadir}/gnome/help/samegnome/C
+
+%attr(664,root,games) %{_localstatedir}/games/*
 
 %files devel
-%defattr(644, root, root, 755)
-
-/usr/lib/lib*.so
-/usr/include/*
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/gnome-stones/objects/lib*.so
+%{_includedir}/*
 
 %files static
-/usr/lib/lib*.a
-
-%changelog
-* Mon Aug 31 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [0.27-2]
-- added pl translation.
-
-* Mon Aug 24 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [0.27-1]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- added static subpackage,
-- changeded dependences to "Requires: %%{name} = %%{version}" in devel
-  subpackage,
-- added %post{un} with runing /sbin/ldconfig,
-- added "Requires: gnome-libs >= %%{version}" to main package,
-- added striping shared libraries.
-
-* Mon Mar 16 1998 Marc Ewing <marc@redhat.com>
-- Integrate into gnome-games CVS source tree
+%defattr(664,root,root,755)
+%{_libdir}/lib*.a
+%{_libdir}/gnome-stones/objects/lib*.a
This page took 0.094809 seconds and 4 git commands to generate.