From 762dae56e3b45f2d0b5623ed06be6f1d6a106e94 Mon Sep 17 00:00:00 2001 From: Sam hartman Date: Fri, 23 Jan 2015 18:24:00 +0000 Subject: [PATCH] Initial RPM spec --- CMakeLists.txt | 9 ++++++++- gssweb.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 gssweb.spec diff --git a/CMakeLists.txt b/CMakeLists.txt index 472bd84..adbea33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,10 @@ cmake_minimum_required(VERSION 2.8) + +set(DIST_VERSION 0.1) + add_subdirectory(json_gssapi) -add_subdirectory(browsers) \ No newline at end of file +add_subdirectory(browsers) + +add_custom_target(dist + COMMAND git archive --prefix gssweb/ HEAD |gzip -9 >gssweb-${DIST_VERSION}.tar.gz +) diff --git a/gssweb.spec b/gssweb.spec new file mode 100644 index 0000000..e06e10c --- /dev/null +++ b/gssweb.spec @@ -0,0 +1,48 @@ +Name: gssweb +Version: 0.1 +Release: 1%{?dist} +Summary: GSS-API for Javascript and the Web + +Group: Security Tools +License: BSD +URL: http://www.project-moonshot.org/ +Source0: gssweb-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: openssl-devel, cppunit-devel, jansson-devel, krb5-devel +Requires: moonshot-ui + + + +%description +This includes the json GSSAPI executables and libraries. + + +%prep +%setup -q -n gssweb + + +%build +%cmake +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_libdir}/libjsongssapi.so + %{_libdir}/libjsongssapi.so.* +%{_bindir}/json_gssapi + + + +%changelog + -- 2.1.4