minidlna/minidlna.spec

167 lines
4.8 KiB
RPMSpec
Raw Normal View History

2012-07-04 11:59:16 +03:00
%if "%{_unitdir}" == "%%{unitdir}"
%define %{_unitdir} /lib/systemd/system
%endif
Summary: A DLNA/UPnP-AV compliant media server
Name: minidlna
Version: 1.0.24
Release: %mkrel 2
URL: http://sourceforge.net/projects/minidlna/
Group: Networking/Other
License: GPL
Source0: minidlna_%{version}_src.tar.gz
Source1: initscript
Source3: minidlna.1
Source4: minidlna.conf.5
Source5: %{name}.service
2012-02-01 19:43:30 +04:00
# Local patches
# Selected patches from development tree
#Patch100:
# Selected patches from upstream patch tracker
#Patch200:
2012-07-04 11:59:16 +03:00
BuildRequires: libflac-devel
BuildRequires: libid3tag-devel
BuildRequires: libexif-devel
BuildRequires: libjpeg-devel
BuildRequires: sqlite3-devel
BuildRequires: ffmpeg-devel
BuildRequires: libvorbis-devel
BuildRequires: systemd-units
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRoot: %{_tmppath}/%{name}-%{version}-root
2012-02-01 19:43:30 +04:00
%description
MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
compliant with DLNA/UPnP-AV clients. MiniDLNA serves multimedia content
such as music, video and pictures to compatible clients on the network.
See http://www.upnp.org/ for more details on UPnP
and http://www.dlna.org/ for mode details on DLNA.
%prep
%setup -q
./genconfig.sh
sed -i -e 's!^\(#define OS_NAME\).*!\1 "%{product_vendor}"!
s!^\(#define OS_VERSION\).*!\1 "%{product_version}"!
s!^\(#define OS_URL\).*!\1 "http://www.mandriva.com/"!
s!^\(#define DEFAULT_DB_PATH\).*!\1 "/var/cache/%{name}"!
s!^\(#define DEFAULT_LOG_PATH\).*!\1 "/var/log"!' config.h
2012-07-04 11:59:16 +03:00
2012-02-01 19:43:30 +04:00
%build
2012-07-04 11:59:16 +03:00
%serverbuild
%setup_compile_flags
#(tpg) obey %optflags
sed -i 's/CFLAGS = -Wall -g -O3/CFLAGS +=/' Makefile
#(tpg) verbose make
sed -i 's/@$(CC)/$(CC)/' Makefile
2012-02-01 19:43:30 +04:00
%make
%install
rm -rf %{buildroot}
2012-07-04 11:59:16 +03:00
%makeinstall_std
%if %mdkver >= 201100
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
%else
install -m 755 -D %{SOURCE1} %{buildroot}%{_initrddir}/minidlna
%endif
install -m 644 -D minidlna.conf %{buildroot}%{_sysconfdir}/minidlna.conf
install -m 644 -D %{SOURCE3} %{buildroot}%{_mandir}/man1/minidlna.1
install -m 644 -D %{SOURCE4} %{buildroot}%{_mandir}/man5/minidlna.conf.5
2012-02-01 19:43:30 +04:00
%clean
rm -rf %{buildroot}
%post
%_post_service minidlna
%preun
%_preun_service minidlna
%files
%defattr(0644,root,root,0755)
%doc README
%attr(755,-,-) %{_sbindir}/minidlna
2012-07-04 11:59:16 +03:00
%if %mdkver >= 201100
%{_unitdir}/%{name}.service
%else
2012-02-01 19:43:30 +04:00
%attr(755,-,-) %{_initrddir}/minidlna
2012-07-04 11:59:16 +03:00
%endif
2012-02-01 19:43:30 +04:00
%config(noreplace) %{_sysconfdir}/minidlna.conf
%{_mandir}/man1/minidlna.1*
%{_mandir}/man5/minidlna.conf.5*
%changelog
2012-07-04 11:59:16 +03:00
* Mon Feb 27 2012 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.24-2mdv2012.0
+ Revision: 780959
- use upstream config file
- update to new version 1.0.24
* Sun Feb 05 2012 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.23-2
+ Revision: 771266
- update to new version 1.0.23
+ Claudio Matsuoka <claudio@mandriva.com>
- address rpmlint errors
- make spec buildable in 2011 with undefined %%{_unitdir}
* Sat Jan 07 2012 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.22-4
+ Revision: 758635
- obey %%optflags
- switch to verbose mode while compiling
- provide minidlna.service
- spec file clean
* Wed Dec 21 2011 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.22-3
+ Revision: 744182
- revert use os setup_compile_flags
- make use of %%serverbuild_hardened
- use %%setup_compile_flags
* Sat Sep 17 2011 Claudio Matsuoka <claudio@mandriva.com> 1.0.22-1
+ Revision: 700180
- new upstream release 1.0.22
* includes fixes for TiVo, Marantz receivers, Roku SoundBridge and
Samsung series B and D TVs.
* Mon Jul 04 2011 Claudio Matsuoka <claudio@mandriva.com> 1.0.20-1
2012-02-01 19:43:30 +04:00
+ Revision: 688671
- new upstream release 1.0.20
* Fix a crash bug when scanning MPEG-TS files with odd packet sizes
* Fix AVI file streaming on Samsung A-Series TV's
* Improve support for the NETGEAR Digital Entertainer Live (EVA2000)
* Add support for multiple network interfaces
* Add subtitle support for LG TV's and Blu-Ray players
* Fix some minor coding issues found by cppcheck
* Add client adaptation support for Toshiba Regza TV's
* Send known audio-only devices straight to the Music section on root request
* Add client adaptation support for Roku SoundBridge audio clients
* Improve Sony client adaptation to allow support for more file types
* Add support for reading tags from MP4 video files with recent lavf versions
* Add support for Samsung's GetFeatureList method
* Wed Jan 26 2011 Claudio Matsuoka <claudio@mandriva.com> 1.0.18.2-3
+ Revision: 633000
- send to release repository
* Sun Jan 23 2011 Claudio Matsuoka <claudio@mandriva.com> 1.0.18.2-2
+ Revision: 632427
- apply upstream patch to specify log directory
- set configuration file as noreplace
- add manual pages written by Beno?\195?\174t Knecht for Debian
* Sat Jan 22 2011 Claudio Matsuoka <claudio@mandriva.com> 1.0.18.2-1
+ Revision: 632299
- imported package minidlna