Add spec file
[jansson.git] / jansson.spec
1 Name:           jansson
2 Version:        2.0
3 Release:        1%{?dist}
4 Summary:        Javascript Object Notation parsing library
5
6 Group:          System Environment/Libraries
7 License:        2-clause BSD
8 URL:            http://www.digip.org/jansson/doc/
9 Source0:        %{name}-%{version}.tar.gz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
11
12
13 %description
14 A JSON parser.
15
16
17 %prep
18 %setup -q
19
20
21 %build
22 %configure
23 make %{?_smp_mflags}
24
25
26 %install
27 rm -rf $RPM_BUILD_ROOT
28 make install DESTDIR=$RPM_BUILD_ROOT
29
30
31 %clean
32 rm -rf $RPM_BUILD_ROOT
33 %package devel
34 Summary: Development files for %{name}
35
36 %description devel
37 Development files for jansson.
38
39
40
41 %files
42 %defattr(-,root,root,-)
43 %doc README.rst 
44 %doc LICENSE
45 %{_libdir}/*.so.*
46
47 %files devel
48 %defattr(-,root,root,-)
49 %{_includedir}/*
50 %exclude %{_libdir}/*.la
51 %{_libdir}/*.so
52 %{_libdir}/*.a
53 %{_libdir}/pkgconfig/*
54
55
56
57 %changelog