From fb339822332074e2b9b2e277dbd92d3ca84d372c Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Thu, 9 Sep 2010 08:46:20 +0100 Subject: [PATCH] initial import --- .gitignore | 1 + gupnp-dlna.spec | 113 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 115 insertions(+) create mode 100644 gupnp-dlna.spec diff --git a/.gitignore b/.gitignore index e69de29..4a3e8d1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gupnp-dlna-0.3.1.tar.gz diff --git a/gupnp-dlna.spec b/gupnp-dlna.spec new file mode 100644 index 0000000..c34dcc8 --- /dev/null +++ b/gupnp-dlna.spec @@ -0,0 +1,113 @@ +Name: gupnp-dlna +Version: 0.3.1 +Release: 1%{?dist} +Summary: A collection of helpers for building UPnP AV applications + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.gupnp.org/ +# Note, a copy of gst-convenience is temporarily included uptil this bug is fixed in gstreamer upstream +# https://bugzilla.gnome.org/show_bug.cgi?id=625944 +Source0: http://www.gupnp.org/sites/all/files/sources/%{name}-%{version}.tar.gz + +BuildRequires: glib2-devel +BuildRequires: gssdp-devel +BuildRequires: gstreamer-devel +BuildRequires: gstreamer-plugins-base-devel +BuildRequires: gupnp-devel +BuildRequires: gupnp-av-devel +BuildRequires: libxml2-devel +BuildRequires: gtk-doc +Provides: bundled(gst-convenience) + +%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. + +GUPnP-dlna is a collection of helpers for building DLNA (Digital +Living Network Alliance) compliant applications using GUPnP. + +%package devel +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Contains libraries and header files for developing applications that +use %{name}. + +%package docs +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description docs +Contains developer documentation for %{name}. + +%package vala +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: vala + +%description vala +Files for vala development with %{name}. + +%prep +%setup -q + +%build +%configure --disable-static + +# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} V=1 + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +#Remove libtool archives. +find %{buildroot} -name '*.la' -exec rm -f {} ';' + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING README TODO +%{_bindir}/gupnp-dlna* +%{_libdir}/lib*.so.0* +%{_datadir}/%{name} + +%files devel +%defattr(-,root,root,-) +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/gupnp-dlna-1.0.pc +%{_includedir}/%{name}-1.0/ + +%files docs +%defattr(-,root,root,-) +%{_datadir}/gtk-doc/html/%{name} + +%files vala +%defattr(-,root,root,-) +%{_datadir}/vala/vapi/gstreamer-* + +%changelog +* Tue Aug 17 2010 Peter Robinson 0.3.0-1 +- New upstream 0.3.0 release + +* Fri Jun 25 2010 Peter Robinson 0.2.1-2 +- Updated for review feedback + +* Fri Jun 25 2010 Peter Robinson 0.2.1-1 +- Initial release diff --git a/sources b/sources index e69de29..ad2f3fc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9abdcede2f83e8655fc7a1c1477718b7 gupnp-dlna-0.3.1.tar.gz