libmnl-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Name: libmnl
  2. Version: 1.0.5
  3. Release: 1%{?_dist_release}
  4. Summary: A minimalistic Netlink library
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: LGPLv2+
  9. URL: https://netfilter.org/projects/libmnl
  10. Source0: https://netfilter.org/projects/libmnl/files/%{name}-%{version}.tar.bz2
  11. %description
  12. libmnl is a minimalistic user-space library oriented to Netlink developers.
  13. There are a lot of common tasks in parsing, validating, constructing of both
  14. the Netlink header and TLVs that are repetitive and easy to get wrong.
  15. This library aims to provide simple helpers that allows you to re-use code and
  16. to avoid re-inventing the wheel.
  17. %package devel
  18. Summary: Development files for %{name}
  19. Group: programming
  20. Requires: %{name}%{_isa} = %{version}-%{release}
  21. %description devel
  22. The %{name}-devel package contains libraries and header files for
  23. developing applications that use %{name}.
  24. %package static
  25. Summary: Static development files for %{name}
  26. Group: programming
  27. Requires: %{name}-devel = %{version}-%{release}
  28. %description static
  29. The %{name}-static package contains static libraries for devleoping applications that use %{name}.
  30. %debug_package
  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. %files
  43. %license COPYING
  44. %doc README
  45. %{_libdir}/*.so.*
  46. %files devel
  47. %license COPYING
  48. %doc examples-%{_arch}
  49. %{_includedir}/*
  50. %{_libdir}/pkgconfig/*.pc
  51. %{_libdir}/*.so
  52. %files static
  53. %{_libdir}/*.a
  54. %changelog
  55. * Fri Oct 20 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.5-1
  56. - new upstream release.
  57. * Fri Mar 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.4-3
  58. - dropped scriptlets.
  59. * Sun Aug 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.4-2
  60. - rebuilt with current environment.
  61. * Mon May 8 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.4-1
  62. - new upstream release.
  63. * Sun Jun 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-8
  64. - initial build for Vine Linux.
  65. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-7
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  67. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  69. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  71. * Sun Aug 12 2012 Hushan Jia <hushan.jia@gmail.com> - 1.0.3-4
  72. - use %doc for each arch to avoid multilib conflict (rhbz 831413)
  73. * Sat Aug 04 2012 Philip Prindeville <philipp@fedoraproject.org> - 1.0.3-3
  74. - Add .a to devel package (rhbz 845793)
  75. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  77. * Mon Jun 11 2012 Hushan Jia <hushan.jia@gmail.com> 1.0.3-1
  78. - Update to 1.0.3.
  79. * Sat Feb 04 2012 Hushan Jia <hushan.jia@gmail.com> 1.0.2-1
  80. - Update to 1.0.2.
  81. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  83. * Wed Aug 24 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-4
  84. - fix require of devel package
  85. - add example source files to docs
  86. * Wed Aug 24 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-3
  87. - remove unnecessary buildroot and defattr tags
  88. - remove unnecessary build requires
  89. * Sat Aug 20 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-2
  90. - use upstream released source tarball
  91. * Sat Aug 20 2011 Hushan Jia <hushan.jia@gmail.com> 1.0.1-1
  92. - initial packaging