From f08a2b652ddfa8a801924b15db6a0e0533e942ce Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 15:57:21 +0000 Subject: import dleyna-server-0.4.0-1.el7 --- diff --git a/.dleyna-server.metadata b/.dleyna-server.metadata new file mode 100644 index 0000000..2024df6 --- /dev/null +++ b/.dleyna-server.metadata @@ -0,0 +1 @@ +eacc0433a3fb25cc71306a61346898da12860fff SOURCES/dleyna-server-0.4.0-3fcae06.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a90974d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dleyna-server-0.4.0-3fcae06.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Device-Fix-ChildCount-property-type.patch b/SOURCES/0001-Device-Fix-ChildCount-property-type.patch new file mode 100644 index 0000000..140e685 --- /dev/null +++ b/SOURCES/0001-Device-Fix-ChildCount-property-type.patch @@ -0,0 +1,26 @@ +From 00ca5e70e755954c510cb4e2e42a8a5a52a071c0 Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Thu, 17 Jul 2014 17:52:13 +0200 +Subject: [PATCH] [Device] Fix ChildCount property type + +It's a uint32, not a signed int. +--- + libdleyna/server/props.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libdleyna/server/props.c b/libdleyna/server/props.c +index fc26ec2..13e76b5 100644 +--- a/libdleyna/server/props.c ++++ b/libdleyna/server/props.c +@@ -622,7 +622,7 @@ static void prv_add_variant_prop(GVariantBuilder *vb, const gchar *key, + + void dls_props_add_child_count(GVariantBuilder *item_vb, gint value) + { +- prv_add_int_prop(item_vb, DLS_INTERFACE_PROP_CHILD_COUNT, value); ++ prv_add_uint_prop(item_vb, DLS_INTERFACE_PROP_CHILD_COUNT, value); + } + + static void prv_add_bool_prop(GVariantBuilder *vb, const gchar *key, +-- +2.1.0 + diff --git a/SPECS/dleyna-server.spec b/SPECS/dleyna-server.spec new file mode 100644 index 0000000..dd5504a --- /dev/null +++ b/SPECS/dleyna-server.spec @@ -0,0 +1,79 @@ +%global api 1.0 +%global commit 3fcae066b44195c187b5611acfd511b9a87850d0 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: dleyna-server +Version: 0.4.0 +Release: 1%{?dist} +Summary: Service for interacting with Digital Media Servers + +License: LGPLv2 +URL: https://01.org/dleyna/ + +Source0: https://github.com/01org/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz + +BuildRequires: autoconf automake libtool +BuildRequires: dleyna-core-devel +BuildRequires: glib2-devel >= 2.28 +BuildRequires: gssdp-devel >= 0.13.2 +BuildRequires: gupnp-devel >= 0.20.3 +BuildRequires: gupnp-av-devel >= 0.11.5 +BuildRequires: gupnp-dlna-devel >= 0.9.4 +BuildRequires: libsoup-devel +BuildRequires: pkgconfig +Requires: dbus +Requires: dleyna-connector-dbus + +# https://github.com/01org/dleyna-server/issues/145 +Patch0: 0001-Device-Fix-ChildCount-property-type.patch + +%description +D-Bus service for clients to discover and manipulate DLNA Digital Media +Servers (DMSes). + + +%prep +%setup -qn %{name}-%{commit} +%patch0 -p1 + +%build +autoreconf -fiv +%configure \ + --disable-silent-rules \ + --disable-static + +# Omit unused direct shared library dependencies. +sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool + +make %{?_smp_mflags} + + +%install +make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -delete -print + +# We don't need a -devel package because only the daemon is supposed to be +# using the library. +rm -rf $RPM_BUILD_ROOT/%{_includedir} +rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/libdleyna-server-%{api}.so +rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig + + +%files +%doc AUTHORS +%doc COPYING +%doc ChangeLog +%doc README +%{_datadir}/dbus-1/services/com.intel.%{name}.service + +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/libdleyna-server-%{api}.so.* + +%{_libexecdir}/%{name}-service +%config(noreplace) %{_sysconfdir}/%{name}-service.conf + + +%changelog +* Tue Jun 02 2015 Debarshi Ray - 0.4.0-1 +- Initial RHEL import +Resolves: #1219532