libzip-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %define _unpackaged_files_terminate_build 1
  2. Summary: C library for reading, creating, and modifying zip archives
  3. Name: libzip
  4. Version: 1.4.0
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: BSD
  8. URL: https://libzip.org/
  9. Source0: https://libzip.org/download/%{name}-%{version}.tar.xz
  10. # allow path customization (lib64)
  11. Patch0: libzip-upstream.patch
  12. # drop RPATH from installed binaries
  13. Patch1: libzip-rpath.patch
  14. # fix multi-lib issue
  15. Patch2: libzip-multilib.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: zlib-devel >= 1.2.2
  18. BuildRequires: bzip2-devel
  19. BuildRequires: pkgconfig
  20. BuildRequires: cmake
  21. %description
  22. libzip is a C library for reading, creating, and modifying zip archives. Files
  23. can be added from data buffers, files, or compressed data copied directly from
  24. other zip archives. Changes made without closing the archive can be reverted.
  25. The API is documented by man pages.
  26. %package devel
  27. Summary: Development files for %{name}
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: pkgconfig
  31. Requires: zlib-devel
  32. %description devel
  33. The %{name}-devel package contains libraries and header files for
  34. developing applications that use %{name}.
  35. %prep
  36. %autosetup -p1
  37. %build
  38. %cmake .
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  43. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post -p /sbin/ldconfig
  47. %postun -p /sbin/ldconfig
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc LICENSE* AUTHORS* NEWS* README* THANKS* TODO*
  51. %{_bindir}/*
  52. %{_libdir}/libzip.so.*
  53. %{_mandir}/man1/*zip*
  54. %files devel
  55. %defattr(-,root,root,-)
  56. %{_includedir}/*
  57. %{_libdir}/libzip.so
  58. %{_libdir}/pkgconfig/libzip.pc
  59. %{_mandir}/man3/*
  60. %changelog
  61. * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1
  62. - new upstream release.
  63. - import patches from rawhide.
  64. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
  65. - rebuild with rpm-4.8.1 for pkg-config file
  66. * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.3-1
  67. - new upstream release
  68. - built with new toolchain
  69. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-5
  70. - fixed %%changelog based on libzip-0.9-1vl5(VinePlus/5.0) package
  71. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-4
  72. - Initial build for Vine Linux
  73. * Sat Feb 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9-1
  74. - initial release