qrencode-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Name: qrencode
  2. Summary: Generate QR 2D barcodes
  3. Version: 3.4.3
  4. Release: 2%{?_dist_release}
  5. Group: Applications/Engineering
  6. License: LGPLv2+
  7. URL: http://megaui.net/fukuchi/works/qrencode/index.en.html
  8. Source0: http://megaui.net/fukuchi/works/qrencode/%{name}-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: libpng-devel
  11. BuildRequires: SDL-devel
  12. BuildRequires: chrpath
  13. %description
  14. Qrencode is a utility software using libqrencode to encode string data in
  15. a QR Code and save as a PNG image.
  16. %package devel
  17. Summary: QR Code encoding library - Development files
  18. Group: Development/Libraries
  19. Requires: %{name} = %{version}-%{release}
  20. %description devel
  21. The qrencode-devel package contains libraries and header files for developing
  22. applications that use qrencode.
  23. %prep
  24. %setup -q
  25. %build
  26. %configure --with-tests
  27. make %{?_smp_mflags}
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  31. rm -rf $RPM_BUILD_ROOT%{_libdir}/libqrencode.la
  32. chrpath --delete $RPM_BUILD_ROOT%{_bindir}/qrencode
  33. %check
  34. cd ./tests
  35. sh test_all.sh
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %post -p /sbin/ldconfig
  39. %postun -p /sbin/ldconfig
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc ChangeLog COPYING NEWS README TODO
  43. %{_bindir}/qrencode
  44. %{_mandir}/man1/qrencode.1.*
  45. %{_libdir}/libqrencode.so.*
  46. %files devel
  47. %defattr(-,root,root,-)
  48. %{_includedir}/qrencode.h
  49. %{_libdir}/libqrencode.so
  50. %{_libdir}/pkgconfig/libqrencode.pc
  51. %changelog
  52. * Sun Jul 20 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.4.3-2
  53. - rebuilt with libpng-1.6.12
  54. * Sat Sep 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.3-1
  55. - new upstream release
  56. * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.2-1
  57. - new upstream release
  58. * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.3.1-1
  59. - new upstream release
  60. - add BuildRequires: SDL-devel
  61. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-6
  62. - Initial build for Vine Linux
  63. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  65. * Tue Jul 13 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-4
  66. - Fixed the rpath problem.
  67. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-3
  68. - Fixed some small spec mistakes.
  69. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-2
  70. - Fixed some small errors.
  71. * Thu Jul 08 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-1
  72. - Initial build.