Name: qrencode Version: 3.1.0 Release: 4%{?dist} Summary: The libqrencode library and application encodes QR Code symbols (2d barcodes) Group: Applications/Communications License: LGPLv2+ URL: http://megaui.net/fukuchi/works/qrencode Source0: http://megaui.net/fukuchi/works/qrencode/qrencode-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libpng-devel #Requires: %description qrencode is a C application for encoding data in a QR Code symbol, a kind of 2D symbology that can be scanned by handy terminals such as a mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and is highly robust. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %configure --disable-static # rpath is indeed generally a 64-bit thing. Libtool somehow knows not to add # /usr/lib to rpath, but can't figure out not to add /usr/lib64. That's libtool # for you. However, when you add hacks like those sed calls over libtool, it's # best to also add a comment indicating why it's necessary. # # (see http://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath) sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # rm $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/libqrencode.pc # rmdir $RPM_BUILD_ROOT/%{_libdir}/pkgconfig %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING README ChangeLog NEWS %{_bindir}/qrencode %{_libdir}/*.so.* %{_mandir}/*/*.gz %files devel %defattr(-,root,root,-) %doc TODO %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/* %changelog * Mon Sep 14 2009 Bowe Strickland 3.1.0-4 - preserve package config file - preserve timestamps on install - strip docs from devel package * Fri Aug 07 2009 Bowe Strickland 3.1.0-3 - correct license - trim duplicate doc files - comment the try to remove RPATH cruft * Thu Jul 23 2009 Bowe Strickland 3.1.0-2 - libpng-devel buildprereq - try to remove RPATH cruft * Mon Jul 06 2009 Bowe Strickland 3.1.0-1 - Initial RPM release