gnet2-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Summary: a simple network library built upon GLib
  2. Name: gnet2
  3. Version: 2.0.8
  4. Release: 1%{?_dist_release}
  5. URL: http://live.gnome.org/GNetLibrary
  6. Source0: http://ftp.gnome.org/pub/GNOME/sources/gnet/2.0/gnet-%{version}.tar.bz2
  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}/*.a
  36. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  37. %clean
  38. rm -rf %{buildroot}
  39. %post -p /sbin/ldconfig
  40. %postun -p /sbin/ldconfig
  41. %files
  42. %defattr(-,root,root)
  43. %doc AUTHORS BUGS COPYING ChangeLog HACKING NEWS README TODO examples
  44. %{_libdir}/libgnet-*.so.*
  45. %files devel
  46. %defattr(-,root,root)
  47. %{_datadir}/gtk-doc/html/gnet
  48. %{_datadir}/aclocal/gnet-2.0.m4
  49. %{_libdir}/pkgconfig/gnet-2.0.pc
  50. %{_libdir}/gnet-2.0/include/*.h
  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. * Sun Dec 12 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.8-1
  57. - new upstream release
  58. - update URL: upstream moved
  59. - update Source0 URL: upstream moved
  60. - removed *.a from devel sub package
  61. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.7-2
  62. - rebuilt with rpm-4.8.1 for pkg-config
  63. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.7-1vl5
  64. - applied new versioning policy
  65. - removed *.la
  66. * Mon Aug 6 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.7-0vl2
  67. - changed Group to System Environmet/Libraries
  68. - added BuildRequires: glib2-devel
  69. * Thu Apr 6 2006 IWAI, Masaharu <iwai@alib.jp> 2.0.7-0vl1
  70. - new upstream release
  71. * Sun May 2 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.5-0vl1
  72. - new upstream release
  73. - add %%{_libdir}/gnet-2.0{,/include} directory in devel package's %%files
  74. * Sat Jan 31 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.4-0vl2
  75. - add Requires: gnet2-%%{version} in gnet2-devel package
  76. thanks to Shaolin: [VineSeed-Plus:02077]
  77. * Wed Jan 21 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.4-0vl1
  78. - Initial build.