kio-upnp-ms-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. %define snap 20111102git
  2. Name: kio-upnp-ms
  3. Version: 1.0.0
  4. Release: 7.%{snap}%{?_dist_release}
  5. Summary: UPnP mediaserver kio slave
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: https://projects.kde.org/projects/playground/base/kio-upnp-ms
  9. # git clone git://anongit.kde.org/kio-upnp-ms
  10. # git archive --prefix=kio-upnp-ms-%{version}/ master | gzip > ../kio-upnp-ms-%{version}-%{snap}.tar.gz
  11. %if 0%{?snap:1}
  12. Source0: kio-upnp-ms-%{version}-%{snap}.tar.gz
  13. %else
  14. Source0: http://download.kde.org/stable/kio-upnp-ms/%{version}/src/kio-upnp-ms-%{version}.tar.gz
  15. %endif
  16. Source1: SOLID_UPNP.sh
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: kdelibs4-devel
  19. BuildRequires: herqq-devel
  20. # apparently requires both cagibi and SOLID_UPNP backend, the latter is disabled
  21. # by default due to #754530, #758008, kde#259472
  22. Requires: cagibi
  23. %description
  24. This is the UPnP MediaServer KIO-slave for the KDE platform. It supports both
  25. browse and search based MediaServers and is able to perform various tasks on
  26. them, including running queries, listing directories and files and allowing
  27. KDE based applications transparent access to them. Being used for Amarok UPnP
  28. support, the slave features many developer friendly features which allow
  29. faster speed or easier handling while compromising on user-friendliness when
  30. used “under the hood”.
  31. Functionality requires some user-intervention to re-enable the SOLID_UPNP
  32. backend, which is disabled by default due to many crashes ( see
  33. https://bugs.kde.org/show_bug.cgi?id=259472 ). To re-enable, set
  34. SOLID_UPNP=1 environment variable, or copy the sample SOLID_UPNP.sh to
  35. $HOME/.kde/env/
  36. to do it for you.
  37. %prep
  38. %setup -q
  39. install -m644 %{SOURCE1} .
  40. %build
  41. mkdir -p %{_target_platform}
  42. pushd %{_target_platform}
  43. %cmake \
  44. -DCMAKE_BUILD_TYPE=release \
  45. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  46. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  47. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  48. ..
  49. popd
  50. make %{?_smp_mflags} -C %{_target_platform}
  51. %install
  52. rm -rf %{buildroot}
  53. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  54. # remove unnecessary files
  55. rm -fv %{buildroot}%{_includedir}/kde4/kio/upnp-ms-types.h
  56. rm -f %{buildroot}%{_bindir}/recursive_upnp
  57. rm -f %{buildroot}%{_bindir}/stattest
  58. rm -f %{buildroot}%{_bindir}/upnpmstest
  59. %clean
  60. rm -rf %{buildroot}
  61. %files
  62. %doc COPYING README* TODO
  63. %doc SOLID_UPNP.sh
  64. %{_libdir}/kde4/kio_upnp_ms.so
  65. %{_datadir}/kde4/services/kio_upnp_ms.protocol
  66. %changelog
  67. * Wed Feb 4 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.0.0-7.20111102git
  68. - Initial build for Vine Linux
  69. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-6.20111102git
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  71. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-5.20111102git
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  73. * Wed Aug 07 2013 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-4.20111102git
  74. - don't directly reference %%docdir in %%description (#993814)
  75. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3.20111102git
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  77. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2.20111102git
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  79. * Fri Sep 14 2012 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-1.20111102git
  80. - 20111102 git snapshot
  81. * Thu Apr 19 2012 Rex Dieter <rdieter@fedoraproject.org> 0.8.0-1
  82. - 0.8.0