udpxy/udpxy.spec

Name: udpxy
Summary: UDP-to-HTTP multicast traffic relay daemon
Version: 1.0.23
Release: 1
License: GPLv3+
Group: Applications/Internet
URL: http://sourceforge.net/projects/udpxy/
Description: udpxy is a UDP-to-HTTP multicast traffic relay daemon: it forwards UDP traffic from a given multicast subscription to the requesting HTTP client.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dfateyev
# Upstream: Pavel V. Cherenkov <pcherenkov$gmail,com>

%define major_version 1.0.23
%define minor_version 0

Name: udpxy
Version: %{major_version}
Release: 1%{?dist}
Summary: UDP-to-HTTP multicast traffic relay daemon

Group: Applications/Internet
License: GPLv3+
URL: http://sourceforge.net/projects/udpxy/
Source0: http://downloads.sourceforge.net/%{name}/%{name}.%{major_version}-%{minor_version}-prod.tar.gz
Source1: udpxy.init
Source2: udpxy.sysconfig
BuildRoot: %{_tmppath}/%{name}-%{major_version}-%{minor_version}-%{release}-root

Requires: chkconfig
Requires: initscripts

%description
udpxy is a UDP-to-HTTP multicast traffic relay daemon:
it forwards UDP traffic from a given multicast subscription
to the requesting HTTP client.

%prep
%setup -n %{name}-%{major_version}-%{minor_version}

%{__chmod} a-x CHANGES

%build
%{__make} debug %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}

%{__make} install INSTALLROOT=%{buildroot}/usr

# fix 'udpxrec' symbolic link issue
%{__ln_s} -f %{_bindir}/udpxy %{buildroot}/%{_bindir}/udpxrec

%{__mkdir} -p %{buildroot}/%{_sysconfdir}/sysconfig %{buildroot}/%{_initrddir}
%{__install} -p -m755 %{SOURCE1} %{buildroot}/%{_initrddir}/%{name}
%{__install} -p -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}

%clean
%{__rm} -rf %{buildroot}

%post
/sbin/chkconfig --add udpxy
:

%preun
if [ "$1" -eq 0 ]; then
   /sbin/service udpxy stop &> /dev/null
   /sbin/chkconfig --del udpxy
fi
:

%files
%defattr(-,root,root,-)
%doc README CHANGES gpl.txt
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_initrddir}/%{name}
%{_bindir}/%{name}
%{_bindir}/udpxrec

%changelog
* Sat Sep 29 2012 Denis Fateyev <denis@fateyev.com> - 1.0.23-1
- Update to 1.0.23 release

* Fri Mar 16 2012 Denis Fateyev <denis@fateyev.com> - 1.0.21-1
- Initial rpm release