%define major 3 %define minor 2 %define libname %mklibname upnp %{major} %define develname %mklibname upnp -d Summary: Library and tools for the UPnP protocol Name: libupnp Version: 1.6.6 Release: %mkrel 4 License: BSD Group: System/Libraries URL: http://pupnp.sourceforge.net/ Source: http://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description The Linux SDK for UPnP Devices (libupnp) provides developers with an API and open source code for building control points, devices, and bridges that are compliant with Version 1.0 of the Universal Plug and Play Device Architecture Specification. %package -n %{libname} Summary: Library and tools for the UPnP protocol Group: System/Libraries Obsoletes: %mklibname upnp 0 %description -n %{libname} The Linux SDK for UPnP Devices (libupnp) provides developers with an API and open source code for building control points, devices, and bridges that are compliant with Version 1.0 of the Universal Plug and Play Device Architecture Specification. %package -n %{develname} Summary: Header files and static libraries from %name Group: Development/C Requires: %{libname} >= %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{mklibname upnp 0 -d} < 1.6.5 Provides: %mklibname upnp 0 -d %description -n %{develname} Libraries and includes files for developing programs based on %name. %prep %setup -q %build %configure2_5x \ --with-documentation=%{_docdir}/%{name} \ --enable-tools \ --enable-sample %make %install rm -rf %{buildroot} %makeinstall_std # don't ship .a, .la find %{buildroot} -name *.a | xargs rm -f find %{buildroot} -name *.la | xargs rm -f %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc LICENSE NEWS README THANKS TODO %{_libdir}/*upnp.so.%{major}* %{_libdir}/*.so.%{minor}* %files -n %{develname} %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*pc %{_docdir}/%{name}