libHUpnp/libHUpnp.spec

70 lines
2.1 KiB
RPMSpec
Raw Normal View History

Name: libHUpnp
Version: 1.0.0
Release: 1mamba
Summary: A software library for building UPnP devices and control points
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.herqq.org/
Source: http://downloads.sourceforge.net/project/hupnp/hupnp/herqq-%{version}.zip
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Herqq UPnP (HUPnP) is a software library for building UPnP devices and control points conforming to the UPnP Device Architecture version 1.1. It is designed to be simple to use and robust in operation.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Herqq UPnP (HUPnP) is a software library for building UPnP devices and control points conforming to the UPnP Device Architecture version 1.1. It is designed to be simple to use and robust in operation.
This package contains static libraries and header files need for development.
%prep
%setup -q -n herqq-%{version}
%build
qmake-qt4 PREFIX=%{_prefix} USE_QT_INSTALL_LOC=1
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot}
%ifarch x86_64
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libHUpnp.so.*
%{_libdir}/libQtSolutions_SOAP-*.so.*
%doc hupnp/LICENSE_GPLv3.txt hupnp/LICENSE_LGPLv3.txt
%files devel
%defattr(-,root,root)
%dir %{_includedir}/HUpnpCore
%{_includedir}/HUpnpCore/*
%{_libdir}/libHUpnp.so
%{_libdir}/libQtSolutions_SOAP-*.so
%doc hupnp/ChangeLog
%changelog
* Wed Aug 03 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
- package created by autospec