]> git.pld-linux.org Git - SPECS.git/blob - ushare.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / ushare.spec
1 Summary:        uShare is a UPnP A/V Media Server
2 Summary(pl.UTF-8):      uShare jest serwerem mediów A/V UPnP
3 Name:           ushare
4 Version:        1.1a
5 Release:        0.1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://ushare.geexbox.org/releases/%{name}-%{version}.tar.bz2
9 # Source0-md5:  5bbcdbf1ff85a9710fa3d4e82ccaa251
10 Patch0:         %{name}-upnp-build-fix.patch
11 URL:            http://www.geexbox.org/wiki/index.php/UShare
12 BuildRequires:  libupnp-devel >= 1.4.2
13 BuildRequires:  libdlna-devel >= 0.2.1
14 BuildRequires:  rpmbuild(macros) >= 1.228
15 Requires(post,preun):   /sbin/chkconfig
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 uShare is a UPnP (TM) A/V Media Server. It implements the server
20 component that provides UPnP media devices with information on
21 available multimedia files.
22
23 %description -l pl.UTF-8
24 uShare jest serwerem mediów A/V UPnP. Implementuje komponenty serwera,
25 który udostępnia urządzeniom UPnP media z informacjami.
26
27 %prep
28 %setup -q
29 %patch0 -p1
30
31 %build
32 ./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc --enable-dlna
33 %{__make}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37
38 %{__make} install \
39         DESTDIR=$RPM_BUILD_ROOT
40
41 %find_lang %{name}
42
43 %post
44 /sbin/chkconfig --add %{name}
45 %service %{name} restart
46
47 %preun
48 if [ "$1" = "0" ]; then
49         %service -q %{name} stop
50         /sbin/chkconfig --del %{name}
51 fi
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files -f %{name}.lang
57 %defattr(644,root,root,755)
58 %doc AUTHORS ChangeLog NEWS README THANKS TODO
59 #%attr(754,root,root) /etc/rc.d/init.d/%{name}
60 %attr(754,root,root) /etc/init.d/ushare
61 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ushare.conf
62 %attr(755,root,root) /usr/bin/ushare
63 #%{_mandir}/man1/*
This page took 0.309655 seconds and 3 git commands to generate.