libzip-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. %define _unpackaged_files_terminate_build 1
  2. Summary: C library for reading, creating, and modifying zip archives
  3. Name: libzip
  4. Version: 1.8.0
  5. Release: 1%{?_dist_release}
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: BSD
  10. URL: https://libzip.org/
  11. Source0: https://libzip.org/download/%{name}-%{version}.tar.xz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: zlib-devel
  14. BuildRequires: bzip2-devel
  15. BuildRequires: xz-devel
  16. BuildRequires: openssl-devel
  17. BuildRequires: pkgconfig
  18. BuildRequires: cmake
  19. BuildRequires: perl
  20. BuildRequires: perl(Cwd)
  21. BuildRequires: perl(File::Copy)
  22. BuildRequires: perl(File::Path)
  23. BuildRequires: perl(Getopt::Long)
  24. BuildRequires: perl(IPC::Open3)
  25. BuildRequires: perl(Storable)
  26. BuildRequires: perl(Symbol)
  27. BuildRequires: perl(UNIVERSAL)
  28. BuildRequires: perl(strict)
  29. BuildRequires: perl(warnings)
  30. %description
  31. libzip is a C library for reading, creating, and modifying zip archives. Files
  32. can be added from data buffers, files, or compressed data copied directly from
  33. other zip archives. Changes made without closing the archive can be reverted.
  34. The API is documented by man pages.
  35. %package devel
  36. Summary: Development files for %{name}
  37. Group: programming
  38. Requires: %{name} = %{version}-%{release}
  39. Requires: pkgconfig
  40. Requires: zlib-devel
  41. %description devel
  42. The %{name}-devel package contains libraries and header files for
  43. developing applications that use %{name}.
  44. %debug_package
  45. %prep
  46. %autosetup -p1
  47. %build
  48. %cmake \
  49. -DENABLE_COMMONCRYPTO:BOOL=OFF \
  50. -DENABLE_GNUTLS:BOOL=OFF \
  51. -DENABLE_MBEDTLS:BOOL=OFF \
  52. -DENABLE_OPENSSL:BOOL=ON \
  53. -DENABLE_WINDOWS_CRYPTO:BOOL=OFF \
  54. -DENABLE_BZIP2:BOOL=ON \
  55. -DENABLE_LZMA:BOOL=ON \
  56. -DBUILD_TOOLS:BOOL=ON \
  57. -DBUILD_REGRESS:BOOL=ON \
  58. -DBUILD_EXAMPLES:BOOL=OFF \
  59. -DBUILD_DOC:BOOL=ON
  60. %cmake_build
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %cmake_install
  64. %check
  65. %ctest
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %files
  69. %defattr(-,root,root,-)
  70. %license LICENSE*
  71. %doc AUTHORS THANKS *.md
  72. %{_bindir}/*
  73. %{_libdir}/libzip.so.*
  74. %{_mandir}/man1/*zip*
  75. %files devel
  76. %defattr(-,root,root,-)
  77. %{_includedir}/*
  78. %{_libdir}/libzip.so
  79. %{_libdir}/pkgconfig/libzip.pc
  80. %dir %{_libdir}/cmake
  81. %{_libdir}/cmake/libzip
  82. %{_mandir}/man3/*
  83. %changelog
  84. * Tue Oct 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.0-1
  85. - new upstream release.
  86. - built with openssl-3.0.0.
  87. * Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.3-1
  88. - new upstream release.
  89. * Sat Jul 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1
  90. - new upstream release.
  91. - dropped all patches.
  92. * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1
  93. - new upstream release.
  94. - import patches from rawhide.
  95. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
  96. - rebuild with rpm-4.8.1 for pkg-config file
  97. * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.3-1
  98. - new upstream release
  99. - built with new toolchain
  100. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-5
  101. - fixed %%changelog based on libzip-0.9-1vl5(VinePlus/5.0) package
  102. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-4
  103. - Initial build for Vine Linux
  104. * Sat Feb 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9-1
  105. - initial release