libmnl-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Name: libmnl
  2. Version: 1.0.4
  3. Release: 1%{?_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. * Mon May 8 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.4-1
  57. - new upstream release.
  58. * Sun Jun 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-8
  59. - initial build for Vine Linux.
  60. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-7
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  62. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  64. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  66. * Sun Aug 12 2012 Hushan Jia <hushan.jia@gmail.com> - 1.0.3-4
  67. - use %doc for each arch to avoid multilib conflict (rhbz 831413)
  68. * Sat Aug 04 2012 Philip Prindeville <philipp@fedoraproject.org> - 1.0.3-3
  69. - Add .a to devel package (rhbz 845793)
  70. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
  71. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  72. * Mon Jun 11 2012 Hushan Jia <hushan.jia@gmail.com> 1.0.3-1
  73. - Update to 1.0.3.
  74. * Sat Feb 04 2012 Hushan Jia <hushan.jia@gmail.com> 1.0.2-1
  75. - Update to 1.0.2.
  76. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
  77. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  78. * Wed Aug 24 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-4
  79. - fix require of devel package
  80. - add example source files to docs
  81. * Wed Aug 24 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-3
  82. - remove unnecessary buildroot and defattr tags
  83. - remove unnecessary build requires
  84. * Sat Aug 20 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-2
  85. - use upstream released source tarball
  86. * Sat Aug 20 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-1
  87. - initial packaging