diff --git a/.cvsignore b/.cvsignore index e69de29..110d476 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +qrencode-3.1.1.tar.gz diff --git a/qrencode.spec b/qrencode.spec new file mode 100644 index 0000000..aa7a4a3 --- /dev/null +++ b/qrencode.spec @@ -0,0 +1,82 @@ +Name: qrencode +Version: 3.1.1 +Release: 4%{?dist} +Summary: Generate QR 2D barcodes + +Group: Applications/Engineering +License: LGPLv2+ +URL: http://megaui.net/fukuchi/works/qrencode/index.en.html +Source0: http://megaui.net/fukuchi/works/qrencode/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libpng-devel chrpath + + +%description +Qrencode is a utility software using libqrencode to encode string data in +a QR Code and save as a PNG image. + +%package devel +Summary: QR Code encoding library - Development files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The qrencode-devel package contains libraries and header files for developing +applications that use qrencode. + +%prep +%setup -q + + +%build +%configure --with-tests +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +rm -rf $RPM_BUILD_ROOT%{_libdir}/libqrencode.la +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/qrencode + +%check +cd ./tests +sh test_all.sh + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc ChangeLog COPYING NEWS README TODO +%{_bindir}/qrencode +%{_mandir}/man1/qrencode.1.* +%{_libdir}/libqrencode.so.3 +%{_libdir}/libqrencode.so.3.1.1 + +%files devel +%defattr(-,root,root,-) +%{_includedir}/qrencode.h +%{_libdir}/libqrencode.so +%{_libdir}/pkgconfig/libqrencode.pc + + +%changelog +* Tue Jul 13 2010 Tareq Al Jurf - 3.1.1-4 +- Fixed the rpath problem. + +* Mon Jul 12 2010 Tareq Al Jurf - 3.1.1-3 +- Fixed some small spec mistakes. + +* Mon Jul 12 2010 Tareq Al Jurf - 3.1.1-2 +- Fixed some small errors. + +* Thu Jul 08 2010 Tareq Al Jurf - 3.1.1-1 +- Initial build. diff --git a/sources b/sources index e69de29..2f15938 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d97f67cbefaf577e6c15923f3cc57b6a qrencode-3.1.1.tar.gz