/[packages]/cauldron/json-glib/current/SPECS/json-glib.spec
ViewVC logotype

Contents of /cauldron/json-glib/current/SPECS/json-glib.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 608520 - (show annotations) (download)
Tue Mar 25 11:55:51 2014 UTC (10 years, 1 month ago) by ovitters
File size: 2476 byte(s)
new version 1.0.0
1 %define libver 1.0
2 %define major 0
3 %define girmajor 1.0
4
5 %define libname %mklibname %{name} %{libver} %{major}
6 %define develname %mklibname %{name} -d
7 %define girname %mklibname %{name}-gir %{girmajor}
8
9 %define url_ver %(echo %{version}|cut -d. -f1,2)
10
11 Name: json-glib
12 Version: 1.0.0
13 Release: %mkrel 1
14 Summary: Library for JavaScript Object Notation format
15 Group: System/Libraries
16 License: LGPLv2+
17 URL: https://wiki.gnome.org/JsonGlib
18 Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
19 BuildRequires: pkgconfig(gobject-2.0) >= 2.37.6
20 BuildRequires: pkgconfig(gio-2.0)
21 BuildRequires: gobject-introspection-devel
22 BuildRequires: gtk-doc
23 Requires: %{libname} = %{version}
24
25 %description
26 %{name} is a library providing serialization and deserialization support
27 for the JavaScript Object Notation (JSON) format.
28
29 %package -n %{libname}
30 Summary: Shared libraries for %{name}
31 Group: System/Libraries
32 Requires: %{name} = %{version}
33
34 %description -n %{libname}
35 %{name} is a library providing serialization and deserialization support
36 for the JavaScript Object Notation (JSON) format.
37
38
39 %package -n %{develname}
40 Summary: Development files for %{name}
41 Group: Development/C
42 Provides: lib%{name}-devel = %version-%release
43 Requires: %{libname} = %{version}
44
45 %description -n %{develname}
46 The %{develname} package contains libraries and header files for
47 developing applications that use %{name}.
48
49 %package -n %{girname}
50 Summary: GObject Introspection interface description for %name
51 Group: System/Libraries
52 Requires: %{libname} = %{version}-%{release}
53 Conflicts: %{mklibname %{name}1.0-gir 1.0} < 0.13.4-3
54
55 %description -n %{girname}
56 GObject Introspection interface description for %name.
57
58 %prep
59 %setup -q
60
61 %build
62 %configure2_5x --disable-static
63 %make
64
65 %install
66 %makeinstall_std
67
68 # we don't want these
69 find %{buildroot} -name "*.la" -exec rm -rf {} \;
70
71 %find_lang %{name}-%{libver}
72
73 %check
74 %make check
75
76 %files -f %{name}-%{libver}.lang
77 %{_bindir}/json-glib-format
78 %{_bindir}/json-glib-validate
79 %{_mandir}/man1/json-glib-format.1*
80 %{_mandir}/man1/json-glib-validate.1*
81
82 %files -n %{libname}
83 %{_libdir}/lib%{name}-%{libver}.so.%{major}*
84
85 %files -n %{girname}
86 %{_libdir}/girepository-1.0/Json-%{girmajor}.typelib
87
88 %files -n %{develname}
89 %doc NEWS ChangeLog
90 %doc %{_datadir}/gtk-doc/html/%{name}/
91 %{_libdir}/lib%{name}-%{libver}.so
92 %{_libdir}/pkgconfig/%{name}-%{libver}.pc
93 %{_includedir}/%{name}-%{libver}/
94 %{_datadir}/gir-1.0/Json-%{girmajor}.gir

  ViewVC Help
Powered by ViewVC 1.1.30