qrencode-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. %define pkg_name qrencode
  2. %define pkg_version 4.0.2
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: Generate QR 2D barcodes
  5. Summary(ja): 2次元QRコードを作成するアプリケーション
  6. Name: %{pkg_name}
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. License: LGPLv2+
  10. Group: Applications/Other
  11. URL: http://fukuchi.org/works/qrencode/
  12. Source0: http://fukuchi.org/works/qrencode/%{name}-%{version}.tar.gz
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: libpng-devel
  15. BuildRequires: chrpath
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. Libqrencode is a C library for encoding data in a QR Code symbol,
  20. a kind of 2D symbology that can be scanned by handy terminals
  21. such as a mobile phone with CCD.
  22. The capacity of QR Code is up to 7000 digits or 4000 characters,
  23. and is highly robust.
  24. %description -l ja
  25. libqrencodeはQRコードを生成するためのCライブラリです。
  26. QRコードは二次元バーコードの一種で、数字なら最大約7000桁、
  27. 英数字だと最大約4000字を埋め込むことができ、
  28. また誤り訂正能力に優れています。
  29. %package devel
  30. Summary: QR Code encoding library - Development files
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. %description devel
  34. Libqrencode supports QR Code model 2, described in JIS
  35. (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004.
  36. Currently the following features are not supported: ECI and
  37. FNC1 mode, Micro QR Code, QR Code model 1.
  38. This package contains development files for libqrencode.
  39. %prep
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %setup -q
  42. %build
  43. %{configure} --with-tests
  44. %{__make} %{?_smp_mflags}
  45. %check
  46. cd ./tests
  47. sh test_all.sh
  48. %install
  49. %{make_install} INSTALL="install -p"
  50. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la
  51. chrpath --delete $RPM_BUILD_ROOT%{_bindir}/qrencode
  52. %clean
  53. %{__rm} -rf ${RPM_BUILD_ROOT}
  54. %post -p %{_syssbindir}/ldconfig
  55. %postun -p %{_syssbindir}/ldconfig
  56. %files
  57. %doc ChangeLog COPYING NEWS README TODO
  58. %defattr(-,root,root)
  59. %{_bindir}/qrencode
  60. %{_libdir}/libqrencode.so.*
  61. %{_mandir}/man1/qrencode.1.*
  62. %files devel
  63. %defattr(-,root,root,-)
  64. %{_includedir}/qrencode.h
  65. %{_libdir}/libqrencode.so
  66. %{_libdir}/pkgconfig/libqrencode.pc
  67. %changelog
  68. * Sun Oct 07 2018 Toshiaki Ara <ara_t@384.jp> 4.0.2-1
  69. - update to 4.0.2
  70. * Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 3.4.4-2
  71. - merge previous SPEC file
  72. * Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 3.4.4-1
  73. - update to 3.4.4
  74. - delete BuildRequires: SDL-devel
  75. * Sun Jul 20 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.4.3-2
  76. - rebuilt with libpng-1.6.12
  77. * Sat Sep 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.3-1
  78. - new upstream release
  79. * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.2-1
  80. - new upstream release
  81. * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.3.1-1
  82. - new upstream release
  83. - add BuildRequires: SDL-devel
  84. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-6
  85. - Initial build for Vine Linux
  86. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  88. * Tue Jul 13 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-4
  89. - Fixed the rpath problem.
  90. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-3
  91. - Fixed some small spec mistakes.
  92. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-2
  93. - Fixed some small errors.
  94. * Thu Jul 08 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-1
  95. - Initial build.