summaryrefslogtreecommitdiff
path: root/libradsec.spec.in
diff options
context:
space:
mode:
authorSam Hartman <hartmans@painless-security.com>2014-03-06 08:30:39 -0500
committerSam Hartman <hartmans@painless-security.com>2014-03-06 08:30:39 -0500
commit856332bf1247ba965b6e3da1fe90cf6a3e3ebbd0 (patch)
tree30d1d50405e8a89eb1d4fd47fa012ece558cc489 /libradsec.spec.in
parent07182442a6e3a194448b13a419c568bcab43d363 (diff)
parent3d954bfd2f658ac05a0f20a1241738ed3e3fdd28 (diff)
Merge remote-tracking branch 'origin/master' into debian
In particular update root of tree
Diffstat (limited to 'libradsec.spec.in')
-rw-r--r--libradsec.spec.in77
1 files changed, 77 insertions, 0 deletions
diff --git a/libradsec.spec.in b/libradsec.spec.in
new file mode 100644
index 0000000..e301aff
--- /dev/null
+++ b/libradsec.spec.in
@@ -0,0 +1,77 @@
+Name: @PACKAGE@
+Version: @PACKAGE_VERSION@
+Release: 1%{?dist}
+Summary: RADIUS over TLS library
+
+Group: System Environment/Libraries
+License: BSD
+URL: http://software.uninett.no/radsecproxy/?page=documentation
+Source0: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+
+
+BuildRequires: openssl-devel
+BuildRequires: libconfuse-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: libevent-devel >= 2.0
+
+
+
+%description
+ Libradsec is a RADIUS over TLS library.
+
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+ export CPPFLAGS='-I%{_includedir}'
+ export LDFLAGS='-L%{_libdir}'
+%configure --disable-static --enable-tls --enable-tls-psk
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
+
+
+%changelog
+* Tue Sep 27 2011 <hartmans@moonbuildcentos.dev.ja.net> - %{version}-1
+- initial version
+