Initial RPM spec
authorSam hartman <hartmans@painless-security.com>
Fri, 23 Jan 2015 18:24:00 +0000 (18:24 +0000)
committerSam Hartman <hartmans@debian.org>
Fri, 22 May 2015 18:39:34 +0000 (14:39 -0400)
CMakeLists.txt
gssweb.spec [new file with mode: 0644]

index 472bd84..adbea33 100644 (file)
@@ -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 (file)
index 0000000..e06e10c
--- /dev/null
@@ -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
+