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