Name: csvimp Version: 0.5.0 Release: 1%{?dist} Summary: xTuple reporting utility and libraries License: CPAL Url: http://www.xtuple.org/DataImportTool Source: https://github.com/xtuple/csvimp/archive/v%version.tar.gz BuildRequires: qt-devel BuildRequires: openrpt-devel %description A tool designed to import Comma Separated Value (CSV) files into the database for the xTuple Applications (PostBooks and OpenMFG). %package devel Summary: CSVImp development files Requires: qt-devel, libdmtx-devel, openrpt-devel %description devel A tool designed to import Comma Separated Value (CSV) files into the database for the xTuple Applications (PostBooks and OpenMFG). This package provides the header files used by developers. %prep %setup -q %build export HARDCODE_APPLICATION_DIR='\"/usr/lib/csvimp\"' export USE_SHARED_OPENRPT=1 export OPENRPT_HEADERS=/usr/include/openrpt export OPENRPT_LIBDIR=%{_libdir} #lrelease-qt4 */*/*.ts */*.ts qmake-qt4 . make %{?_smp_mflags} %install # make install doesn't do anything for this qmake project so we do # the installs manually #make INSTALL_ROOT=%{buildroot} install rm -f %{buildroot}%{_libdir}/lib*.a rm -f %{buildroot}%{_libdir}/lib*.la mkdir -p %{buildroot}%{_bindir} install csvimp %{buildroot}%{_bindir} mkdir -p %{buildroot}/usr/lib/csvimp/plugins install plugins/libcsvimpplugin.so %{buildroot}/usr/lib/csvimp/plugins mkdir -p %{buildroot}%{_includedir}/csvimp find . -name '*.h' -exec install -D {} %{buildroot}%{_includedir}/csvimp/{} \; %post /sbin/ldconfig %postun /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %{_bindir}/* %dir /usr/lib/csvimp %dir /usr/lib/csvimp/plugins /usr/lib/csvimp/plugins/libcsvimpplugin.so %files devel %dir %{_includedir}/csvimp/ %{_includedir}/csvimp/* %changelog * Wed Feb 25 2015 Daniel Pocock < - 0.5.0-1 - Initial RPM packaging.