libqtihandclient/libihanclient.spec.in

86 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

2014-10-04 00:09:38 +08:00
%if %{defined mdkversion}
%define __libtoolize /bin/true
%endif
Name: libihanclient
Group: Productivity/Networking/Other
Summary: Intelegent Home Automation Network Client Library
URL: http://wiki.my-ho.st/confluence/display/HTC/
License: LGPL2+
Version: @VERSION@
Release: 0
BuildRequires: gcc-c++ make boost-devel pkgconfig automake libtool
Source0: libihanclient-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
%description
Intelegent Home Automation Network (iHan) Client Library is for application
developers to write iHan applications
%package -n %{name}-devel
Summary: Intelegent Home Automation Network Client Library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}-%{release}
Requires: boost-devel
#BuildRequires: %{name}
%description -n %{name}-devel
header files needed when you want to compile your own application using
libihanclient.
Intelegent Home Automation Network (iHan) Client Library is for application
developers to write iHan applications
%prep
%setup -q
if [ ! -f configure ]; then
./bootstrap.sh
fi
%build
touch .hush
%configure --disable-static
make %{?_smp_mflags}
%check
%ifnarch %{arm}
make check
%else
GTEST_FILTER=*-*Serialize make check
%endif
%install
make install DESTDIR=${RPM_BUILD_ROOT}
rm %{buildroot}/usr/bin/demo
%files
%defattr(-,root,root,-)
#%dir %{_libdir}
%{_libdir}/libihanclient.so.*
%doc %{_prefix}/share/doc/libihanclient-@VERSION@/
%doc README
%files -n %{name}-devel
%defattr(-,root,root,-)
%dir %{_includedir}/iHanClient/
%dir %{_includedir}/muscle/
#%dir %{_libdir}
#%dir %{_libdir}/pkgconfig/
%{_includedir}/iHanClient/*
%{_includedir}/muscle/*
%{_libdir}/libihanclient.la
%{_libdir}/libihanclient.so
%{_libdir}/pkgconfig/*.pc
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%changelog