qrencode-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. %define pkg_name qrencode
  2. %define pkg_version 3.4.4
  3. %define pkg_release 2%{?_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. * Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 3.4.4-2
  69. - merge previous SPEC file
  70. * Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 3.4.4-1
  71. - update to 3.4.4
  72. - delete BuildRequires: SDL-devel
  73. * Sun Jul 20 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.4.3-2
  74. - rebuilt with libpng-1.6.12
  75. * Sat Sep 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.3-1
  76. - new upstream release
  77. * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.2-1
  78. - new upstream release
  79. * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.3.1-1
  80. - new upstream release
  81. - add BuildRequires: SDL-devel
  82. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-6
  83. - Initial build for Vine Linux
  84. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  86. * Tue Jul 13 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-4
  87. - Fixed the rpath problem.
  88. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-3
  89. - Fixed some small spec mistakes.
  90. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-2
  91. - Fixed some small errors.
  92. * Thu Jul 08 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-1
  93. - Initial build.