qrencode-vl.spec 2.3 KB

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