|
|
f08a2b |
%global api 1.0
|
|
|
f08a2b |
%global commit 3fcae066b44195c187b5611acfd511b9a87850d0
|
|
|
f08a2b |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
f08a2b |
|
|
|
f08a2b |
Name: dleyna-server
|
|
|
f08a2b |
Version: 0.4.0
|
|
|
f08a2b |
Release: 1%{?dist}
|
|
|
f08a2b |
Summary: Service for interacting with Digital Media Servers
|
|
|
f08a2b |
|
|
|
f08a2b |
License: LGPLv2
|
|
|
f08a2b |
URL: https://01.org/dleyna/
|
|
|
f08a2b |
|
|
|
f08a2b |
Source0: https://github.com/01org/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
|
f08a2b |
|
|
|
f08a2b |
BuildRequires: autoconf automake libtool
|
|
|
f08a2b |
BuildRequires: dleyna-core-devel
|
|
|
f08a2b |
BuildRequires: glib2-devel >= 2.28
|
|
|
f08a2b |
BuildRequires: gssdp-devel >= 0.13.2
|
|
|
f08a2b |
BuildRequires: gupnp-devel >= 0.20.3
|
|
|
f08a2b |
BuildRequires: gupnp-av-devel >= 0.11.5
|
|
|
f08a2b |
BuildRequires: gupnp-dlna-devel >= 0.9.4
|
|
|
f08a2b |
BuildRequires: libsoup-devel
|
|
|
f08a2b |
BuildRequires: pkgconfig
|
|
|
f08a2b |
Requires: dbus
|
|
|
f08a2b |
Requires: dleyna-connector-dbus
|
|
|
f08a2b |
|
|
|
f08a2b |
# https://github.com/01org/dleyna-server/issues/145
|
|
|
f08a2b |
Patch0: 0001-Device-Fix-ChildCount-property-type.patch
|
|
|
f08a2b |
|
|
|
f08a2b |
%description
|
|
|
f08a2b |
D-Bus service for clients to discover and manipulate DLNA Digital Media
|
|
|
f08a2b |
Servers (DMSes).
|
|
|
f08a2b |
|
|
|
f08a2b |
|
|
|
f08a2b |
%prep
|
|
|
f08a2b |
%setup -qn %{name}-%{commit}
|
|
|
f08a2b |
%patch0 -p1
|
|
|
f08a2b |
|
|
|
f08a2b |
%build
|
|
|
f08a2b |
autoreconf -fiv
|
|
|
f08a2b |
%configure \
|
|
|
f08a2b |
--disable-silent-rules \
|
|
|
f08a2b |
--disable-static
|
|
|
f08a2b |
|
|
|
f08a2b |
# Omit unused direct shared library dependencies.
|
|
|
f08a2b |
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
f08a2b |
|
|
|
f08a2b |
make %{?_smp_mflags}
|
|
|
f08a2b |
|
|
|
f08a2b |
|
|
|
f08a2b |
%install
|
|
|
f08a2b |
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
|
|
f08a2b |
find $RPM_BUILD_ROOT -name '*.la' -delete -print
|
|
|
f08a2b |
|
|
|
f08a2b |
# We don't need a -devel package because only the daemon is supposed to be
|
|
|
f08a2b |
# using the library.
|
|
|
f08a2b |
rm -rf $RPM_BUILD_ROOT/%{_includedir}
|
|
|
f08a2b |
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/libdleyna-server-%{api}.so
|
|
|
f08a2b |
rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
|
|
|
f08a2b |
|
|
|
f08a2b |
|
|
|
f08a2b |
%files
|
|
|
f08a2b |
%doc AUTHORS
|
|
|
f08a2b |
%doc COPYING
|
|
|
f08a2b |
%doc ChangeLog
|
|
|
f08a2b |
%doc README
|
|
|
f08a2b |
%{_datadir}/dbus-1/services/com.intel.%{name}.service
|
|
|
f08a2b |
|
|
|
f08a2b |
%dir %{_libdir}/%{name}
|
|
|
f08a2b |
%{_libdir}/%{name}/libdleyna-server-%{api}.so.*
|
|
|
f08a2b |
|
|
|
f08a2b |
%{_libexecdir}/%{name}-service
|
|
|
f08a2b |
%config(noreplace) %{_sysconfdir}/%{name}-service.conf
|
|
|
f08a2b |
|
|
|
f08a2b |
|
|
|
f08a2b |
%changelog
|
|
|
f08a2b |
* Tue Jun 02 2015 Debarshi Ray <rishi@fedoraproject.org> - 0.4.0-1
|
|
|
f08a2b |
- Initial RHEL import
|
|
|
f08a2b |
Resolves: #1219532
|