changeset 1224:7769172b877c

Add RPM spec contributed in http://lists.freediameter.net/pipermail/dev/2013-July/000220.html
author Sebastien Decugis <sdecugis@freediameter.net>
date Tue, 16 Jul 2013 16:14:14 +0200
parents ec741f31cd55
children ce8bc8227ef4
files contrib/RPM/build_rpm.txt contrib/RPM/freeDiameter.spec
diffstat 2 files changed, 84 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/RPM/build_rpm.txt	Tue Jul 16 16:14:14 2013 +0200
@@ -0,0 +1,6 @@
+[krum@ThinkPad DelMe]$ cp freeDiameter.spec /home/krum/rpmbuild/SPECS/
+[krum@ThinkPad DelMe]$ cd /home/krum/rpmbuild/SOURCES/
+[krum@ThinkPad ~]$ cd /home/krum/rpmbuild/SOURCES/
+[krum@ThinkPad SOURCES]$ wget http://www.freediameter.net/hg/freeDiameter/archive/1.1.6.tar.gz
+[krum@ThinkPad SOURCES]$ cd ../SPECS/
+[krum@ThinkPad SPECS]$ rpmbuild -ba freeDiameter.spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/RPM/freeDiameter.spec	Tue Jul 16 16:14:14 2013 +0200
@@ -0,0 +1,78 @@
+
+Name: freeDiameter		
+Version: 1.1.6 	
+Release: 1%{?dist}
+Packager: krum.boy4ev@gmail.com
+Summary: freeDiameter is an implementation of the Diameter protocol. 	
+Group: Development/Libraries		
+License: BSD License	
+URL: http://www.freediameter.net		
+Source0: http://www.freediameter.net/hg/freeDiameter/archive/1.1.6.tar.gz	
+
+BuildRequires: cmake make gcc gcc-c++ flex bison lksctp-tools-devel 
+BuildRequires: gnutls-devel libgcrypt-devel libidn-devel
+BuildRequires: mercurial	
+Requires: lksctp-tools	
+
+%description
+freeDiameter is an implementation of the Diameter protocol.
+	
+Diameter is a protocol designed to carry Authentication, Authorization and
+Accounting (AAA) payload. It is an evolution of the RADIUS protocol (as the
+name suggests).
+
+See http://www.freediameter.net/ for more information on the project.
+	
+freeDiameter was previously known as the "waaad" project (WIDE AAA Daemon)
+This project is not related to the "freediameter" project from Sun on sourceforge.
+	
+Author: Sebastien Decugis.
+
+%package daemon
+Summary:  Simple daemon parses the command line and initializes the freeDiameter framework.
+Group: Development/Libraries
+Requires: freeDiameter
+
+%description daemon
+freeDiameterd : this simple daemon parses the command line and initializes the
+freeDiameter framework. Use it for your Diameter server & agent components.
+In case of Diameter clients, you probably will prefer linking the libfdcore
+directly with your client application that must be made Diameter-aware.
+
+
+%prep
+%setup -qn %{name}-%{version}
+
+
+%build
+mkdir -p build
+cd build
+cmake ../
+
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd build
+make install DESTDIR=$RPM_BUILD_ROOT
+make test
+
+%post daemon
+echo "/usr/local/lib/" > /etc/ld.so.conf.d/%{name}.conf 
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+/usr/local/include/
+/usr/local/lib/
+
+%files daemon
+%defattr(-,root,root,-)
+/usr/local/bin/
+
+
+
+%changelog
+ * Sat Jul 5 2013 Krum Boychev <krum.boy4ev@gmail.com> - 1.1.6-1
+ - initial version
"Welcome to our mercurial repository"