File gupnp.spec of Package gupnp

#specfile originally created for Fedora, modified for Moblin Linux

Name:           gupnp
Version:        0.12.5
Release:        1.4.moblin2
Summary:        GUPnP is an framework for creating UPnP devices & control points

Group:          System Environment/Libraries
License:        LGPLv2+
URL:            http://www.gupnp.org/
Source0:        http://www.gupnp.org/sources/%{name}/%{name}-%{version}.tar.gz
Patch0:         gupnp-0.12.4_missing_gtkdoc_rebase.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: libxml2-devel
BuildRequires: gssdp-devel >= 0.6
BuildRequires: glib2-devel
BuildRequires: libsoup-devel
BuildRequires: libxml2-devel
BuildRequires: e2fsprogs-devel

Requires: dbus-1
Requires: libgupnp-1_0-2 = %{version}

%description 
GUPnP is an object-oriented open source framework for creating UPnP 
devices and control points, written in C using GObject and libsoup. 
The GUPnP API is intended to be easy to use, efficient and flexible. 

%package -n libgupnp-1_0-2
License:        LGPLv2+
Summary:        GUPnP is an framework for creating UPnP devices & control points
Group:          System Environment/Libraries
Requires:       %{name} >= %{version}

%description -n libgupnp-1_0-2
GUPnP is an object-oriented open source framework for creating UPnP 
devices and control points, written in C using GObject and libsoup. 
The GUPnP API is intended to be easy to use, efficient and flexible. 


%package devel
Summary: Development package for gupnp
Group: Development/Libraries
Requires: gssdp-devel
Requires: gupnp = %{version}-%{release}
Requires: pkgconfig
#Requires: gtk-doc

%description devel
Files for development with gupnp.

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-static
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/libgupnp-1.0.la


rm -rf  $RPM_BUILD_ROOT%{_datadir}/gtk-doc

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libgupnp-1_0-2 -p /sbin/ldconfig

%postun -n libgupnp-1_0-2 -p /sbin/ldconfig

%files 
%defattr(-,root,root,-)
%doc AUTHORS COPYING README

%files -n libgupnp-1_0-2
%defattr(-,root,root,-)
%{_libdir}/libgupnp-1.0.so.2
%{_libdir}/libgupnp-1.0.so.2.0.0


%files devel
%defattr(-,root,root,-)
#%doc {_datadir}/gtk-doc/html/gupnp
%{_libdir}/pkgconfig/gupnp-1.0.pc
%{_libdir}/libgupnp-1.0.so
%{_includedir}/gupnp-1.0
%{_bindir}/gupnp-binding-tool

%changelog
* Mon Feb 16 2009 Vivian Zhang <vivian.zhang@intel.com> 0.12.5
- Upgrade to 0.12.5
* Fri Nov 28 2008 Vivian zhang <vivian.zhang@intel.com> 0.12.4
- Move gupnp-binding-tool to devel package
- Fix error when gtkdoc-rebase missing
* Wed Nov 26 2008 Vivian zhang <vivian.zhang@intel.com> 0.12.4
- Update to 0.12.4
- Add Requires:gssdp-devel for devel package
* Mon Sep 22 2008 Anas Nashif <anas.nashif@intel.com> 0.12.2
- sub-package tools for python stuff
* Fri Sep 19 2008 vivian zhang <vivian.zhang@intel.com> 0.12.2
- Remove Requires:gtk-doc
- Add comments "specfile originally created for Fedora..." to the spec file
- Mark gtk-doc/html/gupnp as %%doc
* Sun Aug 31 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.2-1
- New upstream release
* Thu Aug 28 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.1-7
- Yet again. Interesting it builds fine in mock and not koji
* Thu Aug 28 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.1-6
- Once more with feeling
* Thu Aug 28 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.1-5
- Second go
* Thu Aug 28 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.1-4
- Fix build on rawhide
* Wed Aug 13 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.1-3
- Fix changelog entries
* Wed Aug 13 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.1-2
- Fix a compile issue on rawhide
* Mon Jun 16 2008 Peter Robinson <pbrobinson@gmail.com> 0.12.1-1
- Initial release
openSUSE Build Service is sponsored by