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