ggz-client-libs-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. #define _enable_ggzwrap --enable-ggzwrap
  2. Summary: Client libraries for GGZ gaming zone
  3. Name: ggz-client-libs
  4. Version: 0.0.14.1
  5. Release: 1%{_dist_release}
  6. License: LGPLv2+ and GPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://www.ggzgamingzone.org/
  9. Source0: http://ftp.belnet.be/packages/ggzgamingzone/ggz/%{version}/ggz-client-libs-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Source1: ggz.modules
  12. # rpm macros, not sure how useful these will be
  13. Source2: macros.ggz
  14. BuildRequires: expat-devel
  15. BuildRequires: gettext
  16. BuildRequires: libggz-devel
  17. %description
  18. GGZ (which is a recursive acronym for GGZ Gaming Zone) develops libraries,
  19. games and game-related applications for client-server online gaming. Player
  20. rankings, game spectators, AI players and a chat bot are part of this effort.
  21. %package devel
  22. Summary: Development files for %{name}
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. # %{_sysconfdir}/rpm ownership
  26. Requires: rpm
  27. %description devel
  28. %{summary}.
  29. %prep
  30. %setup -q
  31. # Avoid lib64 rpaths, FIXME better.
  32. %if "%{_libdir}" != "/usr/lib"
  33. sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
  34. %endif
  35. %build
  36. %configure \
  37. --disable-debug \
  38. --disable-static \
  39. %{?_enable_ggzwrap} %{?!_enable_ggzwrap:--disable-ggzwrap}
  40. make %{?_smp_mflags}
  41. %install
  42. rm -rf %{buildroot}
  43. make install DESTDIR=%{buildroot}
  44. # GGZCONFDIR/ggz.modules
  45. install -D -m644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/ggz.modules
  46. # GGZDATADIR
  47. mkdir -p %{buildroot}%{_datadir}/ggz
  48. # GGZGAMEDIR
  49. mkdir -p %{buildroot}%{_libdir}/ggz
  50. # RPM macros
  51. install -D -m644 -p %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.ggz
  52. %find_lang ggzcore
  53. %find_lang ggz-config
  54. cat ggz*.lang >> all.lang
  55. # unpackaged files
  56. rm -f %{buildroot}%{_libdir}/lib*.la
  57. %{!?_enable_ggzwrap:rm -f %{buildroot}%{_mandir}/man1/ggzwrap.1*}
  58. %post -p /sbin/ldconfig
  59. %postun -p /sbin/ldconfig
  60. %clean
  61. rm -rf %{buildroot}
  62. %files -f all.lang
  63. %defattr(-,root,root,-)
  64. %doc AUTHORS ChangeLog COPYING NEWS README
  65. %config(noreplace) %{_sysconfdir}/ggz.modules
  66. # GPLv2+
  67. %{_bindir}/ggz-config
  68. %if 0%{?_enable_ggzwrap:1}
  69. %{_bindir}/ggz
  70. %{_bindir}/ggz-wrapper
  71. %{_mandir}/man1/ggzwrap.1*
  72. %endif
  73. %dir %{_datadir}/ggz
  74. %dir %{_libdir}/ggz
  75. %{_libdir}/libggzmod.so.*
  76. %{_mandir}/man5/ggz.modules.5*
  77. # LGPLv2+
  78. %{_libdir}/libggzcore.so.*
  79. %{_mandir}/man6/ggz*
  80. %{_mandir}/man7/ggz*
  81. %{_sysconfdir}/xdg/menus/applications-merged/ggz.merge.menu
  82. %{_sysconfdir}/xdg/menus/ggz.menu
  83. %{_datadir}/desktop-directories/ggz*.directory
  84. %files devel
  85. %defattr(-,root,root,-)
  86. %{_sysconfdir}/rpm/macros.ggz
  87. # GPLv2+
  88. %{_includedir}/ggzmod.h
  89. %{_libdir}/libggzmod.so
  90. %{_mandir}/man3/ggzmod_h.3*
  91. # LGPLv+
  92. %{_includedir}/ggzcore.h
  93. %{_libdir}/libggzcore.so
  94. %{_mandir}/man3/ggzcore_h.3*
  95. %changelog
  96. * Sun Apr 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.0.14.1-1
  97. - Initial build for Vine Linux
  98. * Sun Feb 17 2008 Rex Dieter <rdieter@fedoraproject.org> 0.0.14.1-1
  99. - ggz 0.0.14.1
  100. * Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 0.0.14-6
  101. - include %%_sysconfdir/rpm/macros.ggz
  102. * Wed Feb 06 2008 Rex Dieter <rdieter@fedoraproject.org> 0.0.14-5
  103. - %%config(noreplace) %%_sysconfdir/ggz.modules (#431726)
  104. - own %%_datadir/ggz, %%_libdir/ggz
  105. * Sat Nov 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.0.14-4
  106. - --disable-ggzwrap (for now, until multilib, licensing is sorted out)
  107. - move ggz-config to main pkg (runtime management of ggz modules)
  108. - clarify GPL vs. LGPL bits
  109. - drop BR: automake libtool
  110. * Fri Nov 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.0.14-3
  111. - try (no)rpath trick #2: modify configure
  112. * Thu Nov 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.0.14-2
  113. - libtoolize to avoid rpaths
  114. - -devel +%%defattr
  115. * Thu Sep 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.0.14-1
  116. - cleanup
  117. * Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 0.0.12-1.2
  118. - Rebuild for Fedora Core 5.
  119. * Sat Dec 03 2005 Dries Verachtert <dries@ulyssis.org> - 0.0.12-1
  120. - Initial package.