gnet2-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Summary: a simple network library built upon GLib
  2. Name: gnet2
  3. Version: 2.0.7
  4. Release: 1%{?_dist_release}
  5. URL: http://www.gnetlibrary.org/
  6. Source0: http://www.gnetlibrary.org/src/gnet-%{version}.tar.gz
  7. License: LGPL
  8. Group: System Environment/Libraries
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: glib2-devel
  11. %description
  12. GNet is a simple network library. It is written in C,
  13. object-oriented, and built upon GLib. It is intended to be easy to
  14. use and port. GNet comes with documentation and examples. It is
  15. licensed under the GNU Library General Public Licence.
  16. %package devel
  17. Summary: the Gnet library
  18. Group: Development/Libraries
  19. Requires: gnet2 = %{version}-%{release}
  20. Requires: glib2-devel
  21. %description devel
  22. the Gnet library
  23. %prep
  24. %setup -q -n gnet-%{version}
  25. %build
  26. %configure --with-html-dir=%{_datadir}/gtk-doc/html
  27. make
  28. %install
  29. rm -rf %{buildroot}
  30. %makeinstall HTML_DIR=%{buildroot}%{_datadir}/gtk-doc/html
  31. ## remove unuse files
  32. pushd examples
  33. %{__rm} -f *.o
  34. popd
  35. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  36. %clean
  37. rm -rf %{buildroot}
  38. %post -p /sbin/ldconfig
  39. %postun -p /sbin/ldconfig
  40. %files
  41. %defattr(-,root,root)
  42. %doc AUTHORS BUGS COPYING ChangeLog HACKING NEWS README TODO examples
  43. %{_libdir}/libgnet-*.so.*
  44. %files devel
  45. %defattr(-,root,root)
  46. %{_datadir}/gtk-doc/html/gnet
  47. %{_datadir}/aclocal/gnet-2.0.m4
  48. %{_libdir}/pkgconfig/gnet-2.0.pc
  49. %{_libdir}/gnet-2.0/include/*.h
  50. %{_libdir}/libgnet-*a
  51. %{_libdir}/libgnet-*.so
  52. %{_includedir}/gnet-2.0
  53. %dir %{_libdir}/gnet-2.0
  54. %dir %{_libdir}/gnet-2.0/include
  55. %changelog
  56. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.7-1vl5
  57. - applied new versioning policy
  58. - removed *.la
  59. * Mon Aug 6 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.7-0vl2
  60. - changed Group to System Environmet/Libraries
  61. - added BuildRequires: glib2-devel
  62. * Thu Apr 6 2006 IWAI, Masaharu <iwai@alib.jp> 2.0.7-0vl1
  63. - new upstream release
  64. * Sun May 2 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.5-0vl1
  65. - new upstream release
  66. - add %%{_libdir}/gnet-2.0{,/include} directory in devel package's %%files
  67. * Sat Jan 31 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.4-0vl2
  68. - add Requires: gnet2-%%{version} in gnet2-devel package
  69. thanks to Shaolin: [VineSeed-Plus:02077]
  70. * Wed Jan 21 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.4-0vl1
  71. - Initial build.