avatar
Rosa has added 1e4970f507
Automatic import for version 1.1.5-1.el7.nux
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "minidlna-1.1.5.tar.gz": 8185337621f5f9111118d8a4bca1e8cfcdd19505
view file @ 1e4970f507
... ... --- /dev/null
... ... +++ b/minidlna-tmpfiles.conf
... ... @@ -0,0 +1,2 @@
1
d /run/minidlna 0755 minidlna minidlna -
2
view file @ 1e4970f507
... ... --- /dev/null
... ... +++ b/minidlna.service
... ... @@ -0,0 +1,12 @@
1
[Unit]
2
Description=MiniDLNA is a DLNA/UPnP-AV server software
3
After=syslog.target local-fs.target network.target
4
5
[Service]
6
User=minidlna
7
Group=minidlna
8
Type=simple
9
ExecStart=/usr/sbin/minidlnad -S
10
11
[Install]
12
WantedBy=multi-user.target
... ... --- /dev/null
... ... +++ b/minidlna.spec
... ... @@ -0,0 +1,218 @@
1
Name:           minidlna
2
Version:        1.1.5
3
Release:        1%{?dist}
4
Summary:        Lightweight DLNA/UPnP-AV server targeted at embedded systems
5
6
Group:          System Environment/Daemons
7
License:        GPLv2 
8
URL:            http://sourceforge.net/projects/minidlna/
9
Source0:        http://downloads.sourceforge.net/%{name}/%{version}/%{name}-%{version}.tar.gz
10
# Systemd unit file
11
Source1:        %{name}.service
12
# tmpfiles configuration for the /run directory
13
Source2:        %{name}-tmpfiles.conf 
14
15
BuildRequires:  libuuid-devel
16
BuildRequires:  ffmpeg-devel
17
BuildRequires:  sqlite-devel
18
BuildRequires:  libvorbis-devel
19
BuildRequires:  flac-devel
20
BuildRequires:  libid3tag-devel
21
BuildRequires:  libjpeg-devel
22
BuildRequires:  libexif-devel
23
BuildRequires:  gettext
24
BuildRequires:  systemd-units
25
Requires(pre):  shadow-utils
26
Requires(post): systemd-units
27
Requires(preun): systemd-units
28
Requires(postun): systemd-units
29
30
%description
31
MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully 
32
compliant with DLNA/UPnP-AV clients.
33
34
The minidlna daemon serves media files (music, pictures, and video) to 
35
clients on your network.  Example clients include applications such as 
36
Totem and XBMC, and devices such as portable media players, smartphones, 
37
and televisions.
38
39
40
%prep
41
%setup -q
42
43
# Edit the default config file 
44
sed -i 's/#log_dir=\/var\/log/#log_dir=\/var\/log\/minidlna/' \
45
  %{name}.conf
46
47
48
%build
49
%configure \
50
  --disable-silent-rules \
51
  --with-db-path=%{_localstatedir}/cache/%{name} \
52
  --with-log-path=%{_localstatedir}/log/%{name} \
53
  --enable-tivo
54
55
make %{?_smp_mflags} 
56
57
58
%install
59
make install DESTDIR=%{buildroot}
60
61
# Install config file
62
mkdir -p %{buildroot}%{_sysconfdir}
63
install -m 644 minidlna.conf %{buildroot}%{_sysconfdir}
64
65
# Install systemd unit file
66
mkdir -p %{buildroot}%{_unitdir}
67
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
68
69
# Install man pages
70
mkdir -p %{buildroot}%{_mandir}/man5
71
install -m 644 minidlna.conf.5 %{buildroot}%{_mandir}/man5/
72
mkdir -p %{buildroot}%{_mandir}/man8
73
install -m 644 minidlnad.8 %{buildroot}%{_mandir}/man8/
74
75
# Install tmpfiles configuration
76
mkdir -p %{buildroot}%{_tmpfilesdir}
77
install -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
78
mkdir -p %{buildroot}/run/
79
install -d -m 0755 %{buildroot}/run/%{name}/
80
81
# Create cache and log directories
82
mkdir -p %{buildroot}%{_localstatedir}/cache
83
install -d -m 0755 %{buildroot}%{_localstatedir}/cache/%{name}/
84
mkdir -p %{buildroot}%{_localstatedir}/log
85
install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}/
86
87
%find_lang %{name}
88
89
90
%pre
91
getent group minidlna >/dev/null || groupadd -r minidlna
92
getent passwd minidlna >/dev/null || \
93
useradd -r -g minidlna -d /dev/null -s /sbin/nologin \
94
  -c "minidlna service account" minidlna
95
exit 0
96
97
98
%post
99
if [ $1 -eq 1 ] ; then 
100
    # Initial installation 
101
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
102
fi
103
104
105
%preun
106
if [ $1 -eq 0 ] ; then
107
    # Package removal, not upgrade
108
    /bin/systemctl --no-reload disable %{name}.service > /dev/null 2>&1 || :
109
    /bin/systemctl stop %{name}.service > /dev/null 2>&1 || :
110
fi
111
112
113
%postun
114
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
115
if [ $1 -ge 1 ] ; then
116
    # Package upgrade, not uninstall
117
    /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
118
fi
119
120
121
%files -f %{name}.lang
122
%attr(-,minidlna,minidlna) %config(noreplace) %{_sysconfdir}/minidlna.conf
123
%{_sbindir}/minidlnad
124
%{_unitdir}/minidlna.service
125
%{_mandir}/man5/%{name}.conf.5*
126
%{_mandir}/man8/minidlnad.8*
127
%dir %attr(-,minidlna,minidlna) /run/%{name}
128
%{_tmpfilesdir}/%{name}.conf
129
%dir %attr(-,minidlna,minidlna) %{_localstatedir}/cache/%{name}/
130
%dir %attr(-,minidlna,minidlna) %{_localstatedir}/log/%{name}/
131
%doc AUTHORS COPYING LICENCE.miniupnpd NEWS README TODO
132
133
134
%changelog
135
* Sun Oct 04 2015 Andrea Musuruane <musuruan@gmail.com> - 1.1.5-1
136
- Updated to upstream 1.1.5
137
138
* Mon Oct 20 2014 Sérgio Basto <sergio@serjux.com> - 1.1.4-3
139
- Rebuilt for FFmpeg 2.4.3
140
141
* Fri Sep 26 2014 Nicolas Chauvet <kwizart@gmail.com> - 1.1.4-2
142
- Rebuilt for FFmpeg 2.4.x
143
144
* Sat Aug 30 2014 Andrea Musuruane <musuruan@gmail.com> - 1.1.4-1
145
- Updated to upstream 1.1.4
146
147
* Thu Aug 07 2014 Sérgio Basto <sergio@serjux.com> - 1.1.3-2
148
- Rebuilt for ffmpeg-2.3
149
150
* Sat Jun 07 2014 Andrea Musuruane <musuruan@gmail.com> - 1.1.3-1
151
- Updated to upstream 1.1.3
152
153
* Sat Mar 29 2014 Andrea Musuruane <musuruan@gmail.com> - 1.1.2-2
154
- Rebuilt for new ffmpeg
155
156
* Sat Mar 08 2014 Andrea Musuruane <musuruan@gmail.com> - 1.1.2-1
157
- Updated to upstream 1.1.2
158
159
* Sun Jan 12 2014 Nicolas Chauvet <kwizart@gmail.com> - 1.1.1-1
160
- Update to 1.1.1
161
162
* Mon Sep 30 2013 Nicolas Chauvet <kwizart@gmail.com> - 1.1.0-2
163
- Rebuilt
164
165
* Sun Sep 15 2013 Andrea Musuruane <musuruan@gmail.com> - 1.1.0-1
166
- Updated to upstream 1.1.0
167
- Better systemd integration
168
169
* Thu Aug 15 2013 Nicolas Chauvet <kwizart@gmail.com> - 1.0.26-3
170
- Rebuilt for FFmpeg 2.0.x
171
172
* Sun May 26 2013 Nicolas Chauvet <kwizart@gmail.com> - 1.0.26-2
173
- Rebuilt for x264/FFmpeg
174
175
* Wed May 08 2013 Andrea Musuruane <musuruan@gmail.com> - 1.0.26-1
176
- Updated to upstream 1.0.26
177
178
* Wed Jan 30 2013 Nicolas Chauvet <kwizart@gmail.com> - 1.0.25-4
179
- Rebuilt for ffmpeg
180
181
* Sat Nov 24 2012 Nicolas Chauvet <kwizart@gmail.com> - 1.0.25-3
182
- Rebuilt for FFmpeg 1.0
183
184
* Sat Nov 03 2012 Andrea Musuruane <musuruan@gmail.com> 1.0.25-2
185
- Fixed FTBFS caused by ffmpeg 1.0
186
- Updated minidlna.service I forgot to commit (BZ #2294)
187
188
* Sat Jul 14 2012 Andrea Musuruane <musuruan@gmail.com> 1.0.25-1
189
- Updated to upstream 1.0.25
190
191
* Tue Jun 26 2012 Nicolas Chauvet <kwizart@gmail.com> - 1.0.24-3
192
- Rebuilt for FFmpeg
193
194
* Wed Apr 25 2012 Andrea Musuruane <musuruan@gmail.com> 1.0.24-2
195
- Run the daemon with the minidlna user (BZ #2294)
196
- Updated Debian man pages
197
198
* Sun Feb 19 2012 Andrea Musuruane <musuruan@gmail.com> 1.0.24-1
199
- Updated to upstream 1.0.24
200
201
* Sat Jan 28 2012 Andrea Musuruane <musuruan@gmail.com> 1.0.23-1
202
- Updated to upstream 1.0.23
203
204
* Sun Jan 22 2012 Andrea Musuruane <musuruan@gmail.com> 1.0.22-2
205
- Fixed systemd unit file
206
207
* Sun Jan 15 2012 Andrea Musuruane <musuruan@gmail.com> 1.0.22-1
208
- Updated to upstream 1.0.22
209
- Removed default Fedora RPM features (defattr, BuildRoot, clean section)
210
- Better consistent macro usage
211
212
* Sat Jul 23 2011 Andrea Musuruane <musuruan@gmail.com> 1.0.21-1
213
- Updated to upstream 1.0.21
214
215
* Sat Jun 18 2011 Andrea Musuruane <musuruan@gmail.com> 1.0.20-1
216
- First release
217
- Used Debian man pages
218

Comments