From 3008df9a5b53c9fd0cbdaeb010a2e1b067231eae Mon Sep 17 00:00:00 2001 From: Sam hartman Date: Mon, 10 Oct 2011 14:53:16 +0100 Subject: [PATCH] Add spec file --- Makefile.am | 2 +- jansson.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 jansson.spec diff --git a/Makefile.am b/Makefile.am index e1fd3ab..7e962db 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000..37c8ec4 --- /dev/null +++ b/jansson.spec @@ -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 -- 2.1.4