~vanvugt/ubuntu/oneiric/mediatomb/fix-770964-784431

« back to all changes in this revision

Viewing changes to mediatomb.spec

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2009-04-22 21:39:19 UTC
  • mto: (4.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090422213919-52m015y6gcpv1m1g
Tags: upstream-0.12.0~svn2018
ImportĀ upstreamĀ versionĀ 0.12.0~svn2018

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%define name mediatomb 
2
 
%define version 0.11.0
3
 
%define release 8%{?dist}
4
 
 
5
 
Version: %{version}
6
 
Summary: MediaTomb - UPnP AV Mediaserver for Linux
7
 
Name: %{name}
8
 
Release: %{release}
9
 
License: GPLv2
10
 
Group: Applications/Multimedia
11
 
Source: http://downloads.sourceforge.net/mediatomb/%{name}-%{version}.tar.gz
12
 
URL: http://mediatomb.cc
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
20
 
 
21
 
%description
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.
25
 
 
26
 
MediaTomb implements the UPnP MediaServer V 1.0 specification that can 
27
 
be found on http://www.upnp.org/.
28
 
%prep 
29
 
%setup -q
30
 
 
31
 
%build
32
 
%configure --enable-taglib
33
 
%{__make} %{?_smp_mflags}
34
 
 
35
 
 
36
 
%install
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
57
 
 
58
 
%clean
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
67
 
 
68
 
%post
69
 
/sbin/chkconfig --add mediatomb
70
 
 
71
 
%preun
72
 
if [ $1 = 0 ]; then
73
 
        /sbin/service mediatomb stop >/dev/null 2>&1
74
 
        /sbin/chkconfig --del mediatomb
75
 
fi
76
 
 
77
 
%files
78
 
%defattr(-,root,root,-)
79
 
%doc README README.UTF_8 AUTHORS ChangeLog COPYING doc/doxygen.conf
80
 
%doc doc/scripting.txt doc/scripting_utf8.txt
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}
85
 
%{_bindir}/mediatomb
86
 
%{_datadir}/%{name}/*
87
 
%{_mandir}/man1/*
88
 
%{_initrddir}/mediatomb
89
 
 
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
116
 
* Wed Jul 11 2007 Sergey Bostandzhyan <jin@mediatomb.cc> 0.10.0-1
117
 
- Version is now filled in by the configure script.
118
 
* Sun May 27 2007 Sergey Bostandzhyan <jin@mediatomb.cc> 0.9.1-1
119
 
- updated the init script
120
 
* Sun Mar 25 2007 Sergey Bostandzhyan <jin@mediatomb.cc> 0.9.0-1
121
 
- Synced with the new script naming and adjusted for the release,
122
 
  added man page.
123
 
* Mon Feb 26 2007 Sergey Bostandzhyan <jin@mediatomb.cc>
124
 
- Removed some files that were no longer needed.
125
 
* Wed Sep  7 2005 Sergey Bostandzhyan <jin@mediatomb.cc>
126
 
- Removed some buildrequires, our configure script should handle different
127
 
  scenarios itself.
128
 
* Wed Jun 15 2005 Sergey Bostandzhyan <jin@mediatomb.cc>
129
 
- Added init.d script + chkconfig
130
 
* Thu Apr 14 2005 Sergey Bostandzhyan <jin@mediatomb.cc>
131
 
- Initial release
132