%global commit0 978b733462e41efd5db72bc9974cb3b0d1d5f6fa %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: iksemel Version: 1.5 Release: 0.1.git%{shortcommit0}%{?dist} Summary: An XML parser library designed for Jabber applications Group: System Environment/Libraries License: LGPLv2+ URL: https://github.com/meduketto/iksemel Source0: https://github.com/meduketto/iksemel/archive/%{commit0}.tar.gz#/%{name}-%{version}-%{shortcommit0}.tar.gz # Strip out internal SHA code and use functions from gcrypt Patch1: iksemel-sha.patch Patch2: 0003-Fix-alignment-on-architectures-where-doubles-are-64b.patch #BuildRequires: gnutls-devel BuildRequires: openssl-devel BuildRequires: libgcrypt-devel BuildRequires: python2-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: texinfo %description An XML parser library designed for Jabber applications. It is coded in ANSI C for POSIX compatible environments, thus highly portable. %package devel Group: Development/Libraries Summary: Development files for iksemel Requires: %{name}%{?_isa} = %{version}-%{release} #Requires: gnutls-devel Requires: openssl-devel Requires: pkgconfig Requires(post): /sbin/install-info Requires(preun): /sbin/install-info %description devel Development files for iksemel. %package utils Group: Applications/Internet Summary: Development files for iksemel Requires: %{name}%{?_isa} = %{version}-%{release} %description utils Utlity programs for iksemel. %package -n python2-%{name} Group: Development/Libraries Summary: Python 2 interface to iksemel Requires: %{name}%{?_isa} = %{version}-%{release} %{?python_provide:%python_provide python2-%{name}} %description -n python2-%{name} Python 2 interface to iksemel %prep %setup0 -q -n %{name}-%{commit0} %patch1 -p1 -b .sha %patch2 -p1 # force rebuilding of the info file rm -f doc/iksemel %build # We need to re-run the autotools because the patch we apply modifies # the configure.ac and src/Makefile.am libtoolize --copy --force --automake aclocal autoheader automake --add-missing --force-missing --gnu --include-deps autoconf %configure --disable-static --disable-rpath make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} find %{buildroot} -name \*.la -delete mv %{buildroot}%{_infodir}/iksemel %{buildroot}%{_infodir}/iksemel.info rm -f %{buildroot}%{_infodir}/dir %check make check %postun -p /sbin/ldconfig %post -p /sbin/ldconfig %post devel /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %preun devel if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %files %license COPYING %doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO %{_libdir}/libiksemel.so.* %files devel %license COPYING %{_libdir}/libiksemel.so %{_includedir}/iksemel.h %{_libdir}/pkgconfig/iksemel.pc %{_infodir}/iksemel.info* %files utils %license COPYING %{_bindir}/ikslint %{_bindir}/iksperf %{_bindir}/iksroster %files -n python2-%{name} %{python2_sitearch}/%{name}.so %changelog * Wed Sep 7 2016 Orion Poplawski - 1.5-0.1.git978b733 - Update to 1.5 from git master (bug #1294251) - Switch to openssl - does not build with gnutls 3.5 and zabbix uses openssl - Ship python2 interface - Drop gnutls patch fixed upstream - Rebase sha patch - Cleanup spec * Thu Feb 04 2016 Fedora Release Engineering - 1.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Aug 16 2014 Fedora Release Engineering - 1.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Apr 23 2014 Tomáš Mráz - 1.4-8 - Rebuild for new libgcrypt * Sat Aug 03 2013 Fedora Release Engineering - 1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 1.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Mar 24 2010 Jeffrey C. Ollie - 1.4-2 - Add patch from Quentin Armitage to fix alignment errors * Thu Oct 22 2009 Jeffrey C. Ollie - 1.4-1 - Update to 1.4 - Apply patch from upstream so that gnutls autoconf works. - Update gcrypt-sha patch so that it applies. * Fri Jul 24 2009 Fedora Release Engineering - 1.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 1.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Oct 01 2008 Dennis Gilmore - 1.3-6 - disable "make check" on sparcv9 * Wed Jun 25 2008 Tomas Mraz - 1.3-5 - rebuild with new gnutls - remove texinfo dir file from buildroot * Tue Feb 19 2008 Fedora Release Engineering - 1.3-4 - Autorebuild for GCC 4.3 * Mon Feb 11 2008 Jeffrey C. Ollie - 1.3-3 - Rebuild for GCC 4.3 * Sat Aug 25 2007 Jeffrey C. Ollie - 1.3-2 - Disable "make check" on PPC again. * Sat Aug 25 2007 Jeffrey C. Ollie - 1.3-1 - Update to 1.3 - Don't need to BR pkgconfig because gnutls-devel now requires it properly. - Update license. - Run "make check" on PPC - Update patches so that they apply to 1.3 - Update URLs * Thu Nov 16 2006 Jeffrey C. Ollie - 1.2-13 - ppp != ppc * Thu Nov 16 2006 Jeffrey C. Ollie - 1.2-12 - Don't run make check on PPC - tests failing. * Thu Nov 16 2006 Jeffrey C. Ollie - 1.2-11 - Add patch from Hans de Goede that fixes 64 bit issues - Re-enable "make check". - Remove tabs from specfile. * Mon Aug 28 2006 Jeffrey C. Ollie - 1.2-10 - Bump release and rebuild. * Wed Aug 2 2006 Jeffrey C. Ollie - 1.2-6 - Temporarily disable make check until problems with it can be figured out. * Thu Jul 27 2006 Jeffrey C. Ollie - 1.2-5 - Patch to use SHA1 hashing routines from libgcrypt rather than broken internal code. This means that we need to BR autoools to regenerate comfigure script and makefiles. * Mon Jun 26 2006 Jeffrey C. Ollie - 1.2-4 - Don't re-run autotools, fix rpath in a different way. * Mon Jun 26 2006 Jeffrey C. Ollie - 1.2-3 - Add a %check section. - Add BR for libtool. * Tue May 30 2006 Jeffrey C. Ollie - 1.2-2 - Add texinfo BR * Mon May 29 2006 Jeffrey C. Ollie - 1.2-1 - First version for Fedora Extras.