| 1 | %define pkg_name qrencode |
|---|
| 2 | %define pkg_version 3.4.4 |
|---|
| 3 | %define pkg_release 2%{?_dist_release} |
|---|
| 4 | |
|---|
| 5 | Summary: Generate QR 2D barcodes |
|---|
| 6 | Summary(ja): 2次元QRコードを作成するアプリケーション |
|---|
| 7 | Name: %{pkg_name} |
|---|
| 8 | Version: %{pkg_version} |
|---|
| 9 | Release: %{pkg_release} |
|---|
| 10 | |
|---|
| 11 | License: LGPLv2+ |
|---|
| 12 | Group: Applications/Other |
|---|
| 13 | URL: http://fukuchi.org/works/qrencode/ |
|---|
| 14 | Source0: http://fukuchi.org/works/qrencode/%{name}-%{version}.tar.gz |
|---|
| 15 | |
|---|
| 16 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 17 | BuildRequires: libpng-devel |
|---|
| 18 | BuildRequires: chrpath |
|---|
| 19 | |
|---|
| 20 | Vendor: Project Vine |
|---|
| 21 | Distribution: Vine Linux |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | %description |
|---|
| 25 | Libqrencode is a C library for encoding data in a QR Code symbol, |
|---|
| 26 | a kind of 2D symbology that can be scanned by handy terminals |
|---|
| 27 | such as a mobile phone with CCD. |
|---|
| 28 | The capacity of QR Code is up to 7000 digits or 4000 characters, |
|---|
| 29 | and is highly robust. |
|---|
| 30 | |
|---|
| 31 | %description -l ja |
|---|
| 32 | libqrencodeはQRコードを生成するためのCライブラリです。 |
|---|
| 33 | QRコードは二次元バーコードの一種で、数字なら最大約7000桁、 |
|---|
| 34 | 英数字だと最大約4000字を埋め込むことができ、 |
|---|
| 35 | また誤り訂正能力に優れています。 |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | %package devel |
|---|
| 39 | Summary: QR Code encoding library - Development files |
|---|
| 40 | Group: Development/Libraries |
|---|
| 41 | Requires: %{name} = %{version}-%{release} |
|---|
| 42 | |
|---|
| 43 | %description devel |
|---|
| 44 | Libqrencode supports QR Code model 2, described in JIS |
|---|
| 45 | (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004. |
|---|
| 46 | Currently the following features are not supported: ECI and |
|---|
| 47 | FNC1 mode, Micro QR Code, QR Code model 1. |
|---|
| 48 | |
|---|
| 49 | This package contains development files for libqrencode. |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | %prep |
|---|
| 53 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 54 | %setup -q |
|---|
| 55 | |
|---|
| 56 | %build |
|---|
| 57 | %{configure} --with-tests |
|---|
| 58 | %{__make} %{?_smp_mflags} |
|---|
| 59 | |
|---|
| 60 | %check |
|---|
| 61 | cd ./tests |
|---|
| 62 | sh test_all.sh |
|---|
| 63 | |
|---|
| 64 | %install |
|---|
| 65 | %{make_install} INSTALL="install -p" |
|---|
| 66 | %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la |
|---|
| 67 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/qrencode |
|---|
| 68 | |
|---|
| 69 | %clean |
|---|
| 70 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 71 | |
|---|
| 72 | %post -p %{_syssbindir}/ldconfig |
|---|
| 73 | %postun -p %{_syssbindir}/ldconfig |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | %files |
|---|
| 77 | %doc ChangeLog COPYING NEWS README TODO |
|---|
| 78 | %defattr(-,root,root) |
|---|
| 79 | %{_bindir}/qrencode |
|---|
| 80 | %{_libdir}/libqrencode.so.* |
|---|
| 81 | %{_mandir}/man1/qrencode.1.* |
|---|
| 82 | |
|---|
| 83 | %files devel |
|---|
| 84 | %defattr(-,root,root,-) |
|---|
| 85 | %{_includedir}/qrencode.h |
|---|
| 86 | %{_libdir}/libqrencode.so |
|---|
| 87 | %{_libdir}/pkgconfig/libqrencode.pc |
|---|
| 88 | |
|---|
| 89 | |
|---|
| 90 | %changelog |
|---|
| 91 | * Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 3.4.4-2 |
|---|
| 92 | - merge previous SPEC file |
|---|
| 93 | |
|---|
| 94 | * Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 3.4.4-1 |
|---|
| 95 | - update to 3.4.4 |
|---|
| 96 | - delete BuildRequires: SDL-devel |
|---|
| 97 | |
|---|
| 98 | * Sun Jul 20 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.4.3-2 |
|---|
| 99 | - rebuilt with libpng-1.6.12 |
|---|
| 100 | |
|---|
| 101 | * Sat Sep 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.3-1 |
|---|
| 102 | - new upstream release |
|---|
| 103 | |
|---|
| 104 | * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.4.2-1 |
|---|
| 105 | - new upstream release |
|---|
| 106 | |
|---|
| 107 | * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 3.3.1-1 |
|---|
| 108 | - new upstream release |
|---|
| 109 | - add BuildRequires: SDL-devel |
|---|
| 110 | |
|---|
| 111 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-6 |
|---|
| 112 | - Initial build for Vine Linux |
|---|
| 113 | |
|---|
| 114 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5 |
|---|
| 115 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
|---|
| 116 | |
|---|
| 117 | * Tue Jul 13 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-4 |
|---|
| 118 | - Fixed the rpath problem. |
|---|
| 119 | |
|---|
| 120 | * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-3 |
|---|
| 121 | - Fixed some small spec mistakes. |
|---|
| 122 | |
|---|
| 123 | * Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-2 |
|---|
| 124 | - Fixed some small errors. |
|---|
| 125 | |
|---|
| 126 | * Thu Jul 08 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-1 |
|---|
| 127 | - Initial build. |
|---|
| 128 | |
|---|
| 129 | |
|---|