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