1 | # Basic Information |
---|
2 | %define pkgname minidlna |
---|
3 | %define name self-build-%{pkgname} |
---|
4 | %define version 1.2.1 |
---|
5 | %define release 3%{?_dist_release} |
---|
6 | |
---|
7 | %define sourceurl0 http://sourceforge.net/projects/%{pkgname}/files/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz |
---|
8 | |
---|
9 | Name: %{name} |
---|
10 | Version: %{version} |
---|
11 | Release: %{release} |
---|
12 | # COPYING などを参照して License を修正してください。 |
---|
13 | License: GPLv2+ |
---|
14 | # /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt を参照して Group を修正してください。 |
---|
15 | Group: Restricted Software |
---|
16 | Source0: %{pkgname}-vl.spec |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildArch: noarch |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | Packager: Shirow HIGA, iwaim |
---|
23 | |
---|
24 | Summary: Package to automatically build %{pkgname} rpm package |
---|
25 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
26 | |
---|
27 | Obsoletes: minidlna < %{version} |
---|
28 | Obsoletes: self-build-minidlna < %{version} |
---|
29 | |
---|
30 | # Dependency |
---|
31 | # 以下に依存関係を記述してください 。 |
---|
32 | Requires(post): self-build-setup >= 0.9.9 |
---|
33 | |
---|
34 | Requires(post): libuuid-devel |
---|
35 | Requires(post): sqlite3-devel |
---|
36 | Requires(post): libvorbis-devel |
---|
37 | Requires(post): flac-devel |
---|
38 | Requires(post): libid3tag-devel |
---|
39 | Requires(post): libjpeg-turbo-devel |
---|
40 | Requires(post): libexif-devel |
---|
41 | Requires(post): gettext-devel |
---|
42 | |
---|
43 | Requires(post): self-build-ffmpeg |
---|
44 | Requires(post): self-build-ffmpegthumbnailer |
---|
45 | |
---|
46 | #追加のソースファイル |
---|
47 | Source1: minidlna.init.d.script |
---|
48 | Source2: minidlna.icons.c.custom |
---|
49 | #Source3: minidlna_configure_v113.patch |
---|
50 | #Source4: minidlna_make_v116.patch |
---|
51 | Source5: minidlna_video_thumbnail_v121.patch |
---|
52 | #Source6: minidlna_bravia_v116.patch |
---|
53 | |
---|
54 | %description |
---|
55 | MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully |
---|
56 | compliant with DLNA/UPnP-AV clients. |
---|
57 | |
---|
58 | The minidlna daemon serves media files (music, pictures, and video) to |
---|
59 | clients on your network. Example clients include applications such as |
---|
60 | Totem and XBMC, and devices such as portable media players, smartphones, |
---|
61 | and televisions. |
---|
62 | |
---|
63 | [Note] |
---|
64 | This package requires many other packages to compile |
---|
65 | targetsoftware. So it consume more disk space than usual. |
---|
66 | |
---|
67 | Also installation takes logner time because of compilation. |
---|
68 | (This will take a few minutes to quarter or half of an hour, |
---|
69 | depends on building environment) |
---|
70 | |
---|
71 | [About self-build package] |
---|
72 | For some kind of software, distributing of binary package |
---|
73 | |
---|
74 | may viorate the patent or law. Therefore we chose self-build |
---|
75 | packge, create binary package on your machine, for such kind |
---|
76 | of softwares instead of distributing binary package. |
---|
77 | |
---|
78 | Please obey the national law when you use the created binary |
---|
79 | packages. And if you want to use the softwares using patented |
---|
80 | thechnology, it may be required to get a permission, make an |
---|
81 | agreement or purchas a license. Please consider it with your |
---|
82 | purpose or way of use and take appropriate action. |
---|
83 | |
---|
84 | #%description -l ja |
---|
85 | #ここに日本語で詳細を記述してください。 |
---|
86 | |
---|
87 | %prep |
---|
88 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
89 | |
---|
90 | %install |
---|
91 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
92 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
93 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
94 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
95 | %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
96 | #%{__install} -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
97 | #%{__install} -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
98 | %{__install} -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
99 | #%{__install} -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
100 | |
---|
101 | %clean |
---|
102 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
103 | |
---|
104 | %posttrans |
---|
105 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl0} 34000 |
---|
106 | |
---|
107 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} |
---|
108 | |
---|
109 | %files |
---|
110 | %defattr(-,root,root) |
---|
111 | %{_datadir}/%{name} |
---|
112 | |
---|
113 | %changelog |
---|
114 | * Sat Jul 28 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.2.1-3 |
---|
115 | - add Packager |
---|
116 | - update Requires(post) |
---|
117 | - update init.d script (Source1) |
---|
118 | |
---|
119 | * Tue Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> 1.2.1-2 |
---|
120 | - Rebuild with ffmpeg 4.0 |
---|
121 | |
---|
122 | * Fri Sep 15 2017 Shirow HIGA <shirowxxx@gmail.com> 1.2.1-1 |
---|
123 | - new upstream release 1.2.1 |
---|
124 | - Update Source5 (minidlna_video_thumbnail_v120.patch -> minidlna_video_thumbnail_v121.patch) |
---|
125 | |
---|
126 | * Fri May 26 2017 Shirow HIGA <shirowxxx@gmail.com> 1.2.0-1 |
---|
127 | - new upstream release 1.2.0 |
---|
128 | - Update Source5 (minidlna_video_thumbnail_v116.patch -> minidlna_video_thumbnail_v120.patch) |
---|
129 | |
---|
130 | * Sun Jan 22 2017 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-3 |
---|
131 | - Remove Source3 (minidlna_configure_v113.patch) |
---|
132 | - Remove Source4 (minidlna_make_v116.patch) |
---|
133 | - Remove Source6 (minidlna_bravia_v116.patch) |
---|
134 | |
---|
135 | * Mon Sep 19 2016 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-2 |
---|
136 | - add new Source6 (minidlna_bravia_v116.patch) |
---|
137 | |
---|
138 | * Mon Sep 12 2016 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-1 |
---|
139 | - new upstream release 1.1.6 |
---|
140 | |
---|
141 | * Mon Sep 14 2015 Shirow HIGA <shirowxxx@gmail.com> 1.1.5-1 |
---|
142 | - new upstream release 1.1.5 |
---|
143 | |
---|
144 | * Thu Jan 15 2015 Shirow HIGA <shirowxxx@gmail.com> 1.1.4-1 |
---|
145 | - initial build for Vine Linux |
---|