Name: tqsllib Version: 2.0 Release: 4%{?dist} Summary: The TrustedQSL library Group: Development/Libraries License: BSD URL: http://sourceforge.net/projects/trustedqsl/ Source: http://downloads.sourceforge.net/sourceforge/trustedqsl/%{name}-%{version}.tar.gz Patch0: tqsllib-2.0-openssl.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel BuildRequires: expat-devel BuildRequires: zlib-devel %package devel Summary: The TrustedQSL Library development tools Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description The TrustedQSL library is used for generating digitally signed QSO records (records of Amateur Radio contacts). This package contains the library and configuration files needed to run TrustedQSL applications. %description devel The TrustedQSL library is used for generating digitally signed QSO records (records of Amateur Radio contacts). This package contains the header files needed to build TrustedQSL applications as well as a static tqsllib library and API documentation. %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b openssl %build #openssl, expat, zlib detection is broken on other archs #we disable detection to keep configure happy export OPENSSL=/usr export EXPAT=/usr export ZLIB=/usr # use --disable-docs because RPM handles docs itself %configure --disable-docs --without-openssl --without-expat --without-zlib --disable-rpath --disable-static 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 sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool #unfortunately parallel build is broken make # cleanup CVS directoryes (wrongly packed in source) rm -rf doxygen/html/CVS %install rm -rf %{buildroot} make install DESTDIR="%{buildroot}" INSTALL="install -p" find %{buildroot} -name \*\.la -print | xargs rm -f %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/*.so.* %dir %{_datadir}/tqsl %{_datadir}/tqsl/config.xml %{_bindir}/dumptqsldata %doc LICENSE ChangeLog %files devel %defattr(-,root,root,-) %doc LICENSE ChangeLog doxygen/html %{_libdir}/*.so %{_includedir}/tqsllib.h %{_includedir}/tqslerrno.h %{_includedir}/cabrillo.h %{_includedir}/adif.h %{_includedir}/tqslconvert.h %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Thu Aug 21 2008 Lucian Langa - 2.0-4 - make directory own by package * Thu Aug 21 2008 Lucian Langa - 2.0-3 - disable static libraries * Thu Aug 21 2008 Lucian Langa - 2.0-2 - misc cleanups * Sun Jul 13 2008 Lucian Langa - 2.0-1 - initial spec file for fedora