qrencode-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Name: qrencode
  2. Summary: Generate QR 2D barcodes
  3. Version: 3.1.1
  4. Release: 6%{?_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.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: libpng-devel
  11. BuildRequires: chrpath
  12. %description
  13. Qrencode is a utility software using libqrencode to encode string data in
  14. a QR Code and save as a PNG image.
  15. %package devel
  16. Summary: QR Code encoding library - Development files
  17. Group: Development/Libraries
  18. Requires: %{name} = %{version}-%{release}
  19. %description devel
  20. The qrencode-devel package contains libraries and header files for developing
  21. applications that use qrencode.
  22. %prep
  23. %setup -q
  24. %build
  25. %configure --with-tests
  26. make %{?_smp_mflags}
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  30. rm -rf $RPM_BUILD_ROOT%{_libdir}/libqrencode.la
  31. chrpath --delete $RPM_BUILD_ROOT%{_bindir}/qrencode
  32. %check
  33. cd ./tests
  34. sh test_all.sh
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %post -p /sbin/ldconfig
  38. %postun -p /sbin/ldconfig
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc ChangeLog COPYING NEWS README TODO
  42. %{_bindir}/qrencode
  43. %{_mandir}/man1/qrencode.1.*
  44. %{_libdir}/libqrencode.so.3
  45. %{_libdir}/libqrencode.so.3.1.1
  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 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-6
  53. - Initial build for Vine Linux
  54. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  56. * Tue Jul 13 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-4
  57. - Fixed the rpath problem.
  58. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-3
  59. - Fixed some small spec mistakes.
  60. * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-2
  61. - Fixed some small errors.
  62. * Thu Jul 08 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-1
  63. - Initial build.