uchardet-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. %undefine __cmake_in_source_build
  2. Name: uchardet
  3. Version: 0.0.6
  4. Release: 12%{?_dist_release}
  5. Summary: An encoding detector library ported from Mozilla
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: MPLv1.1
  10. URL: https://www.freedesktop.org/wiki/Software/%{name}
  11. Source0: https://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.xz
  12. BuildRequires: gcc
  13. BuildRequires: gcc-c++
  14. BuildRequires: cmake
  15. %description
  16. Uchardet is a C language binding of the original C++ implementation of the
  17. universal charset detection library by Mozilla. Uchardet is an encoding
  18. detector library, which takes a sequence of bytes in an unknown character
  19. encoding without any additional information, and attempts to determine the
  20. encoding of the text.
  21. %package devel
  22. Summary: Development files for %{name}
  23. Group: programming
  24. Requires: %{name}%{?_isa} = %{version}-%{release}
  25. %description devel
  26. The %{name}-devel package contains headers and shared libraries
  27. for developing tools for uchardet.
  28. %prep
  29. %autosetup
  30. %build
  31. mkdir -p build
  32. pushd build
  33. %cmake \
  34. -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
  35. -DBUILD_STATIC=OFF \
  36. ..
  37. make %{?_smp_mflags}
  38. popd
  39. %install
  40. pushd build
  41. make DESTDIR=%{buildroot} install
  42. popd
  43. %check
  44. pushd build
  45. ctest -VV \
  46. %ifarch %{ix86}
  47. || :
  48. %else
  49. ;
  50. %endif
  51. popd
  52. %post -p /sbin/ldconfig
  53. %postun -p /sbin/ldconfig
  54. %files
  55. %license COPYING
  56. %doc AUTHORS
  57. %{_bindir}/%{name}
  58. %{_libdir}/lib%{name}.so.*
  59. %{_mandir}/man1/%{name}.1*
  60. %files devel
  61. %{_includedir}/%{name}/
  62. %{_libdir}/lib%{name}.so
  63. %{_libdir}/pkgconfig/%{name}.pc
  64. %changelog
  65. * Sat Aug 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.0.6-12
  66. - initial build for Vine Linux.
  67. * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-11
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
  69. * Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-10
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  71. * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-9
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  73. * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-8
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  75. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-7
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  77. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-6
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  79. * Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.6-5
  80. - Switch to %%ldconfig_scriptlets
  81. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-4
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  83. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  85. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-2
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  87. * Thu Dec 22 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.6-1
  88. - update version to 0.0.6
  89. - changed upstream url
  90. * Thu Jul 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-4
  91. - Rebuild for f23 to fix i686
  92. * Fri Feb 12 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-3
  93. - Fixup summary in devel subpkg
  94. * Mon Feb 08 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-2
  95. - Fix building on i686 properly
  96. * Sat Feb 6 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.5-1
  97. - update version to 0.0.5
  98. * Fri Nov 20 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.3-1
  99. - update version to 0.0.3
  100. - add tests
  101. * Thu Oct 1 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.1-5
  102. - remove macros srcname and sum
  103. * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.1-4
  104. - fix enable debug packages
  105. - fix add flag verbose for make
  106. - fix change in build
  107. - fix remove in libs from files
  108. - fix add change for libs in post/postun
  109. - fix version on 0.0.1 from git
  110. - added macros
  111. * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-3
  112. - fix description and summary for libs and libs-devel
  113. * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-2
  114. - fix version on 0.0.0
  115. - fix license path
  116. - remove static lib
  117. - fix description
  118. - fix number packages
  119. * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-1
  120. - Initial package