~vanvugt/+junk/mediatomb

« back to all changes in this revision

Viewing changes to mediatomb.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-03-02 13:09:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080302130916-zlljdze3kt7vuq4b
Tags: 0.11.0-1
* New upstream release.
* Include message about which inotify headers will be used when enabling
  inotify runtime support.
* Fixed error with use of INTERFACE in init script. Also removed use of -m
  option.
* Including new config.xml options.
* Added more build dependencies for new upstream release.
* Removed build dependency of libid3-dev, taglib is now preferred.
* mediatomb.xpm and manpage.xml is now included in orig tarball.
* inotify patch is not needed anymore.
* md5 patch has been committed upstream and is no longer needed. Also removed
  README.Debian.
* TwinHelix PNG fix is now used. Removed from TODO.
* Adding dependency of iceweasel for mediatomb package.
* Updated copyright file.
* Updated watch file.
* Updated rules file for proper configure options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%define name mediatomb 
2
2
%define version @VERSION@
3
 
%define release 1
 
3
%define release 8%{?dist}
4
4
 
5
5
Version: %{version}
6
 
Summary: UPnP AV MediaServer 
 
6
Summary: MediaTomb - UPnP AV Mediaserver for Linux
7
7
Name: %{name}
8
8
Release: %{release}
9
 
License: GPL
 
9
License: GPLv2
10
10
Group: Applications/Multimedia
11
 
Source: %{name}-%{version}.tar.gz
 
11
Source: http://downloads.sourceforge.net/mediatomb/%{name}-%{version}.tar.gz
12
12
URL: http://mediatomb.cc
13
 
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot 
14
 
BuildRequires: sqlite-devel => 3
15
 
BuildRequires: file
 
13
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
 
14
BuildRequires: sqlite-devel, mysql-devel, libexif-devel, taglib-devel, file-devel, js-devel, zlib-devel
 
15
Requires: mysql
 
16
Requires(pre): shadow-utils
 
17
Requires(post): /sbin/chkconfig
 
18
Requires(preun): /sbin/chkconfig
 
19
Requires(preun): /sbin/service
16
20
 
17
21
%description
18
 
MediaTomb - UPnP AV Mediaserver for Linux.
 
22
MediaTomb is an open source (GPL) UPnP MediaServer with a nice web user 
 
23
interface, it allows you to stream your digital media through your home
 
24
network and listen to/watch it on a variety of UPnP compatible devices.
19
25
 
 
26
MediaTomb implements the UPnP MediaServer V 1.0 specification that can 
 
27
be found on http://www.upnp.org/.
20
28
%prep 
21
 
 
22
29
%setup -q
23
30
 
24
31
%build
25
 
%configure
 
32
%configure --enable-taglib
 
33
%{__make} %{?_smp_mflags}
26
34
 
27
 
make
28
35
 
29
36
%install
30
 
rm -rf $RPM_BUILD_ROOT
31
 
 
32
 
install -D -m0755 scripts/mediatomb-service-fedora %{buildroot}%{_initrddir}/mediatomb
33
 
install -D -m0755 config/mediatomb-conf-fedora %{buildroot}%{_sysconfdir}/mediatomb.conf
34
 
 
35
 
%makeinstall
 
37
%{__rm} -rf $RPM_BUILD_ROOT
 
38
 
 
39
%{__install} -p -D -m0755 scripts/mediatomb-service-fedora $RPM_BUILD_ROOT%{_initrddir}/mediatomb
 
40
%{__install} -p -D -m0644 config/mediatomb-conf-fedora $RPM_BUILD_ROOT%{_sysconfdir}/mediatomb.conf
 
41
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 
42
 
 
43
# make all files under %%_sysconfdir/mediatomb are owned by
 
44
# this package
 
45
%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/mediatomb
 
46
touch $RPM_BUILD_ROOT%{_sysconfdir}/mediatomb/{config.xml,mediatomb.db,mediatomb.html}
 
47
%{__mkdir_p}  $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
 
48
 
 
49
%{__cat} > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} << 'EOF'
 
50
/var/log/mediatomb {
 
51
create 644 root root
 
52
        monthly
 
53
        compress
 
54
        missingok
 
55
}
 
56
EOF
36
57
 
37
58
%clean
38
 
rm -rf $RPM_BUILD_ROOT
 
59
%{__rm} -rf $RPM_BUILD_ROOT
 
60
 
 
61
%pre
 
62
getent group mediatomb >/dev/null || groupadd -r mediatomb
 
63
getent passwd mediatomb >/dev/null || \
 
64
useradd -r -g mediatomb -d %{_sysconfdir}/mediatomb -s /sbin/nologin \
 
65
    -c "To run Mediatomb" mediatomb
 
66
exit 0
39
67
 
40
68
%post
41
 
chkconfig --add mediatomb
 
69
/sbin/chkconfig --add mediatomb
42
70
 
43
71
%preun
44
 
service mediatomb stop > /dev/null 2>&1
45
 
chkconfig --del mediatomb
 
72
if [ $1 = 0 ]; then
 
73
        /sbin/service mediatomb stop >/dev/null 2>&1
 
74
        /sbin/chkconfig --del mediatomb
 
75
fi
46
76
 
47
77
%files
48
 
%defattr(-,root,root)
49
 
%doc README README.UTF_8 AUTHORS ChangeLog COPYING INSTALL doc/doxygen.conf
 
78
%defattr(-,root,root,-)
 
79
%doc README README.UTF_8 AUTHORS ChangeLog COPYING doc/doxygen.conf
50
80
%doc doc/scripting.txt doc/scripting_utf8.txt
51
 
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/mediatomb.conf
 
81
%attr(-,mediatomb,mediatomb)%config(noreplace) %{_sysconfdir}/mediatomb.conf
 
82
%attr(-,mediatomb,mediatomb)%dir %{_sysconfdir}/%{name}/
 
83
%attr(-,mediatomb,mediatomb)%ghost %{_sysconfdir}/%{name}/*
 
84
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
52
85
%{_bindir}/mediatomb
53
 
%{_datadir}/%{name}/
 
86
%{_datadir}/%{name}/*
54
87
%{_mandir}/man1/*
55
88
%{_initrddir}/mediatomb
56
89
 
57
90
%changelog
 
91
* Fri Jan 4 2008 Sergey Bostandzhyan <jin@mediatomb.cc> 0.10.0-8
 
92
- Removed libextractor and enabled taglib instead of id3lib
 
93
 
 
94
* Thu Jan 3 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> 0.10.0-7
 
95
- Added mysql-devel to build requires
 
96
 
 
97
* Thu Jan 3 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> 0.10.0-6
 
98
- Cleaned up spec file
 
99
 
 
100
* Wed Jan 2 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> 0.10.0-5
 
101
- Added mysql-libs for build requires instead of mysql-devel
 
102
 
 
103
* Wed Jan 2 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> 0.10.0-4
 
104
- Actually added the patches to the file.
 
105
- Added the ownership changes (Mamoru Tasaka)
 
106
- Libextractor enabled
 
107
 
 
108
* Wed Jan 2 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> 0.10.0-3
 
109
- Added patchs to patch ownership of /etc/mediatomb.conf and /etc/mediatomb
 
110
- Adjusted pre and post scripts and add user and group mediatomb
 
111
- Changed attributes so files are owned by mediatomb
 
112
- Cleaned Requires and added two files for build-requires
 
113
 
 
114
* Sun Dec 23 2007 Marc Wiriadisastra <marc@mwiriadi.id.au> 0.10.0-2
 
115
- Altered spec file for inclusion into Fedora
58
116
* Wed Jul 11 2007 Sergey Bostandzhyan <jin@mediatomb.cc> 0.10.0-1
59
117
- Version is now filled in by the configure script.
60
118
* Sun May 27 2007 Sergey Bostandzhyan <jin@mediatomb.cc> 0.9.1-1