libmnl-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Name: libmnl
  2. Version: 1.0.3
  3. Release: 8%{?_dist_release}
  4. Summary: A minimalistic Netlink library
  5. Group: System Environment/Libraries
  6. License: LGPLv2+
  7. URL: http://netfilter.org/projects/libmnl
  8. Source0: http://netfilter.org/projects/libmnl/files/%{name}-%{version}.tar.bz2
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Packager: tomop
  12. %description
  13. libmnl is a minimalistic user-space library oriented to Netlink developers.
  14. There are a lot of common tasks in parsing, validating, constructing of both
  15. the Netlink header and TLVs that are repetitive and easy to get wrong.
  16. This library aims to provide simple helpers that allows you to re-use code and
  17. to avoid re-inventing the wheel.
  18. %package devel
  19. Summary: Development files for %{name}
  20. Group: Development/Libraries
  21. Requires: %{name}%{_isa} = %{version}-%{release}
  22. %package static
  23. Summary: Static development files for %{name}
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. The %{name}-devel package contains libraries and header files for
  28. developing applications that use %{name}.
  29. %description static
  30. The %{name}-static package contains static libraries for devleoping applications that use %{name}.
  31. %prep
  32. %setup -q
  33. %build
  34. %configure --enable-static
  35. make CFLAGS="%{optflags}" %{?_smp_mflags}
  36. %install
  37. make install DESTDIR=$RPM_BUILD_ROOT
  38. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  39. find examples '(' -name 'Makefile.am' -o -name 'Makefile.in' ')' -exec rm -f {} ';'
  40. find examples -type d -name '.deps' -prune -exec rm -rf {} ';'
  41. mv examples examples-%{_arch}
  42. %post -p /sbin/ldconfig
  43. %postun -p /sbin/ldconfig
  44. %files
  45. %doc COPYING README
  46. %{_libdir}/*.so.*
  47. %files devel
  48. %doc COPYING
  49. %doc examples-%{_arch}
  50. %{_includedir}/*
  51. %{_libdir}/pkgconfig/*.pc
  52. %{_libdir}/*.so
  53. %files static
  54. %{_libdir}/*.a
  55. %changelog
  56. * Sun Jun 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-8
  57. - new upstream release.
  58. - initial build for Vine Linux.
  59. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-7
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  61. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  63. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  65. * Sun Aug 12 2012 Hushan Jia <hushan.jia@gmail.com> - 1.0.3-4
  66. - use %doc for each arch to avoid multilib conflict (rhbz 831413)
  67. * Sat Aug 04 2012 Philip Prindeville <philipp@fedoraproject.org> - 1.0.3-3
  68. - Add .a to devel package (rhbz 845793)
  69. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  71. * Mon Jun 11 2012 Hushan Jia <hushan.jia@gmail.com> 1.0.3-1
  72. - Update to 1.0.3.
  73. * Sat Feb 04 2012 Hushan Jia <hushan.jia@gmail.com> 1.0.2-1
  74. - Update to 1.0.2.
  75. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  77. * Wed Aug 24 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-4
  78. - fix require of devel package
  79. - add example source files to docs
  80. * Wed Aug 24 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-3
  81. - remove unnecessary buildroot and defattr tags
  82. - remove unnecessary build requires
  83. * Sat Aug 20 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-2
  84. - use upstream released source tarball
  85. * Sat Aug 20 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-1
  86. - initial packaging