/[smecontribs]/rpms/mediatomb/contribs9/mediatomb.spec
ViewVC logotype

Annotation of /rpms/mediatomb/contribs9/mediatomb.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Sun Apr 30 21:46:24 2017 UTC (7 years, 6 months ago) by unnilennium
Branch: MAIN
Changes since 1.1: +1 -1 lines
* Sat Jun 25 2011 Steve Huff <shuff@vecna.org> - 0.12.1-1
- Initial package.

1 unnilennium 1.1 # $Id$
2     # Authority: shuff
3     # Upstream: Sergey Bostandzhyan <contact$mediatomb,cc>
4     # ExcludeDist: el2
5    
6     # el6 changed the package name to libcurl
7     %{?el3:%define _without_libcurl 1}
8     %{?el4:%define _without_libcurl 1}
9     %{?el5:%define _without_libcurl 1}
10    
11     # el6 split out file and file-devel
12     %{?el3:%define _without_file-devel 1}
13     %{?el4:%define _without_file-devel 1}
14     %{?el5:%define _without_file-devel 1}
15    
16     Summary: UPnP server with web interface
17     Name: mediatomb
18     Version: 0.12.1
19     Release: 1%{?dist}
20     License: GPL
21     Group: Applications/Multimedia
22     URL: http://mediatomb.cc/
23    
24     Packager: Steve Huff <shuff@vecna.org>
25     Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
26    
27     Source: http://downloads.sourceforge.net/project/mediatomb/MediaTomb/%{version}/mediatomb-%{version}.tar.gz
28     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
29    
30     #Buildarch: noarch
31     BuildRequires: binutils
32     BuildRequires: expat-devel
33     BuildRequires: file%{?_without_file-devel:-devel}
34     BuildRequires: ffmpeg-devel
35     BuildRequires: gcc-c++
36     BuildRequires: js-devel
37     # BuildRequires: lastfmlib-devel
38     BuildRequires: %{!?_without_libcurl:lib}curl-devel >= 4
39     BuildRequires: libexif-devel
40     # BuildRequires: libffmpegthumbnailer-devel
41     BuildRequires: libssh2-devel
42     BuildRequires: nspr-devel
43     BuildRequires: make
44     BuildRequires: mysql-devel >= 4
45 unnilennium 1.2 #BuildRequires: rpm-macros-rpmforge
46 unnilennium 1.1 BuildRequires: sqlite-devel >= 3
47     BuildRequires: taglib-devel
48     BuildRequires: zlib-devel
49    
50     %description
51     MediaTomb is an open source (GPL) UPnP MediaServer with a nice web user
52     interface, it allows you to stream your digital media through your home network
53     and listen to/watch it on a variety of UPnP compatible devices.
54    
55     MediaTomb implements the UPnP MediaServer V 1.0 specification that can be found
56     on http://www.upnp.org/. The current implementation focuses on parts that are
57     required by the specification, however we look into extending the functionality
58     to cover the optional parts of the spec as well.
59    
60     MediaTomb should work with any UPnP compliant MediaRenderer, please tell us if
61     you experience difficulties with particular models, also take a look at the
62     Supported Devices list for more information.
63    
64    
65     %prep
66     %setup
67    
68     %build
69     %configure \
70     --disable-dependency-tracking \
71     --enable-ffmpeg \
72     --with-search=%{_usr}
73     %{__make} %{?_smp_mflags}
74    
75     # fix mediatomb init script
76     %{__perl} -pi -e 's|/etc/mediatomb\.conf|/etc/sysconfig/mediatomb|;' scripts/mediatomb-service-fedora
77    
78     %install
79     %{__rm} -rf %{buildroot}
80     %{__make} install DESTDIR="%{buildroot}"
81    
82     # init script
83     %{__install} -d -m755 %{buildroot}%{_initrddir}
84     %{__install} -m755 scripts/mediatomb-service-fedora %{buildroot}%{_initrddir}/mediatomb
85    
86     # config file
87     %{__install} -d -m755 %{buildroot}%{_sysconfdir}/sysconfig
88     %{__install} -m755 config/mediatomb-conf-fedora %{buildroot}%{_sysconfdir}/sysconfig/mediatomb
89    
90     # fix for stupid strip issue
91     #%{__chmod} -R u+w %{buildroot}/*
92    
93     %post
94     if [ $1 -eq 1 ]; then
95     /usr/sbin/groupadd -f -r mediatomb
96     /usr/sbin/useradd -d %{_datadir}/mediatomb -g mediatomb -r -s /bin/false mediatomb
97     /sbin/chkconfig --add mediatomb
98     exit 0
99     fi
100    
101     %preun
102     if [ $1 -eq 0 ]; then
103     /sbin/chkconfig --del mediatomb
104     /usr/sbin/userdel mediatomb
105     /usr/sbin/groupdel mediatomb
106     exit 0
107     fi
108    
109     %clean
110     %{__rm} -rf %{buildroot}
111    
112     %files
113     %defattr(-, root, root, 0755)
114     %doc AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO doc/ scripts/
115     %doc %{_mandir}/man?/*
116     %{_bindir}/*
117     %{_datadir}/mediatomb/
118     %{_initrddir}/mediatomb
119     %config %{_sysconfdir}/sysconfig/mediatomb
120    
121     %changelog
122     * Sat Jun 25 2011 Steve Huff <shuff@vecna.org> - 0.12.1-1
123     - Initial package.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed