Add spec file moonshot
authorSam hartman <hartmans@painless-security.com>
Mon, 10 Oct 2011 13:53:16 +0000 (14:53 +0100)
committerSam hartman <hartmans@painless-security.com>
Mon, 10 Oct 2011 13:53:16 +0000 (14:53 +0100)
Makefile.am
jansson.spec [new file with mode: 0644]

index e1fd3ab..7e962db 100644 (file)
@@ -1,4 +1,4 @@
-EXTRA_DIST = CHANGES LICENSE README.rst
+EXTRA_DIST = CHANGES LICENSE README.rst jansson.spec
 SUBDIRS = doc src test
 
 # "make distcheck" builds the dvi target, so use it to check that the
diff --git a/jansson.spec b/jansson.spec
new file mode 100644 (file)
index 0000000..37c8ec4
--- /dev/null
@@ -0,0 +1,57 @@
+Name:          jansson
+Version:       2.0
+Release:       1%{?dist}
+Summary:       Javascript Object Notation parsing library
+
+Group:         System Environment/Libraries
+License:       2-clause BSD
+URL:           http://www.digip.org/jansson/doc/
+Source0:       %{name}-%{version}.tar.gz
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
+
+
+%description
+A JSON parser.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+%package devel
+Summary: Development files for %{name}
+
+%description devel
+Development files for jansson.
+
+
+
+%files
+%defattr(-,root,root,-)
+%doc README.rst 
+%doc LICENSE
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%exclude %{_libdir}/*.la
+%{_libdir}/*.so
+%{_libdir}/*.a
+%{_libdir}/pkgconfig/*
+
+
+
+%changelog