Summary: A C library for parsing/normalizing street addresses Name: libpostal Version: 1.0.0 Release: 13%{?dist} License: MIT Group: Development/Libraries URL: https://github.com/openvenues/libpostal Source: %{name}-%{version}.tar.gz # don't build tests for now Patch0: 0000-Don-t-compile-tests-for-now.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++ BuildRequires: libtool %description A C library for parsing/normalizing street addresses around the world %package devel Summary: libpostal development headers and static library Group: Development/Libraries %description devel A C library for parsing/normalizing street addresses around the world. This package provides libraries and headers for development %prep %setup -q -n %{name}-%{version} %autopatch -p1 %build %{__make} clean || true ./bootstrap.sh CONFEXTRA="" %ifarch armv7hl CONFEXTRA="--with-cflags-scanner-extra=-marm --disable-sse2" %endif %configure --datadir=/usr/local/libpostal/data --disable-static --disable-data-download $CONFEXTRA %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR=%{buildroot} %clean %{__rm} -rf %{buildroot} %pre %post %files %defattr(-, root, root, 0755) %{_bindir}/libpostal_data %{_libdir}/libpostal*.so* %files devel %defattr(-, root, root, 0755) %{_includedir}/libpostal %{_libdir}/libpostal.la %{_libdir}/pkgconfig/libpostal.pc %changelog * Sat Jun 02 2018 Martin Kolman - 1.0.0-2 - initial Fedora packaging * Fri May 18 2018 rinigus - 1.0.0-1 - update to 1.0 libpostal * Wed Jan 18 2017 rinigus - 0.3.3-1 - initial packaging release for SFOS