libzip-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. %define _unpackaged_files_terminate_build 1
  2. Summary: C library for reading, creating, and modifying zip archives
  3. Name: libzip
  4. Version: 1.7.3
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  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: Development/Libraries
  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. %prep
  45. %autosetup -p1
  46. %build
  47. %cmake \
  48. -DENABLE_COMMONCRYPTO:BOOL=OFF \
  49. -DENABLE_GNUTLS:BOOL=OFF \
  50. -DENABLE_MBEDTLS:BOOL=OFF \
  51. -DENABLE_OPENSSL:BOOL=ON \
  52. -DENABLE_WINDOWS_CRYPTO:BOOL=OFF \
  53. -DENABLE_BZIP2:BOOL=ON \
  54. -DENABLE_LZMA:BOOL=ON \
  55. -DBUILD_TOOLS:BOOL=ON \
  56. -DBUILD_REGRESS:BOOL=ON \
  57. -DBUILD_EXAMPLES:BOOL=OFF \
  58. -DBUILD_DOC:BOOL=ON \
  59. .
  60. make %{?_smp_mflags}
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  64. %check
  65. make check
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %post -p /sbin/ldconfig
  69. %postun -p /sbin/ldconfig
  70. %files
  71. %defattr(-,root,root,-)
  72. %license LICENSE*
  73. %doc AUTHORS THANKS *.md
  74. %{_bindir}/*
  75. %{_libdir}/libzip.so.*
  76. %{_mandir}/man1/*zip*
  77. %files devel
  78. %defattr(-,root,root,-)
  79. %{_includedir}/*
  80. %{_libdir}/libzip.so
  81. %{_libdir}/pkgconfig/libzip.pc
  82. %dir %{_libdir}/cmake
  83. %{_libdir}/cmake/libzip
  84. %{_mandir}/man3/*
  85. %changelog
  86. * Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.3-1
  87. - new upstream release.
  88. * Sat Jul 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1
  89. - new upstream release.
  90. - dropped all patches.
  91. * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1
  92. - new upstream release.
  93. - import patches from rawhide.
  94. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
  95. - rebuild with rpm-4.8.1 for pkg-config file
  96. * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.3-1
  97. - new upstream release
  98. - built with new toolchain
  99. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-5
  100. - fixed %%changelog based on libzip-0.9-1vl5(VinePlus/5.0) package
  101. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-4
  102. - Initial build for Vine Linux
  103. * Sat Feb 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9-1
  104. - initial release