qrencode-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Name: qrencode
  2. Summary: Generate QR 2D barcodes
  3. Version: 3.4.3
  4. Release: 1%{?_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. * Sat Sep 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.3-1
  53. - new upstream release
  54. * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.2-1
  55. - new upstream release
  56. * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.3.1-1
  57. - new upstream release
  58. - add BuildRequires: SDL-devel
  59. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-6
  60. - Initial build for Vine Linux
  61. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  63. * Tue Jul 13 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-4
  64. - Fixed the rpath problem.
  65. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-3
  66. - Fixed some small spec mistakes.
  67. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-2
  68. - Fixed some small errors.
  69. * Thu Jul 08 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-1
  70. - Initial build.