1 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
2 |
|
3 |
%define major 2 |
4 |
%define gir_major 0.10 |
5 |
%define libname %mklibname gexiv2_ %{major} |
6 |
%define develname %mklibname gexiv2 -d |
7 |
%define gir_name %mklibname gexiv2-gir %{gir_major} |
8 |
|
9 |
Summary: A GObject-based wrapper around the Exiv2 library |
10 |
Name: libgexiv2 |
11 |
Version: 0.10.6 |
12 |
Release: %mkrel 2 |
13 |
License: GPLv2+ |
14 |
Group: System/Libraries |
15 |
Source0: https://download.gnome.org/sources/gexiv2/%{url_ver}/gexiv2-%{version}.tar.xz |
16 |
Url: https://wiki.gnome.org/Projects/gexiv2 |
17 |
BuildRequires: pkgconfig(exiv2) >= 0.21 |
18 |
BuildRequires: glib2-devel |
19 |
BuildRequires: libtool |
20 |
BuildRequires: sed |
21 |
BuildRequires: libgirepository-devel |
22 |
BuildRequires: pkgconfig(vapigen) |
23 |
BuildRequires: pkgconfig(python) |
24 |
BuildRequires: python-gobject |
25 |
BuildRequires: pkgconfig(python3) |
26 |
BuildRequires: python3-gobject3 |
27 |
# ovitters: pkgconfig(gobject-introspection-1.0) includes script to determine typelib() auto buildrequires |
28 |
BuildRequires: pkgconfig(gobject-introspection-1.0) |
29 |
|
30 |
%description |
31 |
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes |
32 |
the basic features of Exiv2 available to GNOME applications. |
33 |
|
34 |
%package -n %{gir_name} |
35 |
Summary: GObject Introspection interface description for %{name} |
36 |
Group: System/Libraries |
37 |
Requires: %{libname} = %{version}-%{release} |
38 |
Conflicts: %{mklibname %{name}1.0-gir 1.0} < 1.29.3-4 |
39 |
Obsoletes: %{_lib}libgexiv2-gir0.4 < 0.6.1-2 |
40 |
|
41 |
%description -n %{gir_name} |
42 |
GObject Introspection interface description for %{name}. |
43 |
|
44 |
%package -n %{libname} |
45 |
Summary: A GObject-based wrapper around the Exiv2 library |
46 |
Group: System/Libraries |
47 |
|
48 |
%description -n %{libname} |
49 |
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes |
50 |
the basic features of Exiv2 available to GNOME applications. |
51 |
|
52 |
%package -n %{develname} |
53 |
Group: Development/C |
54 |
Summary: A GObject-based wrapper around the Exiv2 library |
55 |
Requires: %{libname} = %{version}-%{release} |
56 |
Requires: %{gir_name} = %{version}-%{release} |
57 |
Provides: %{name}-devel = %{version}-%{release} |
58 |
Conflicts: %{_lib}libgexiv2-gir0.4 < 0.6.1-2 |
59 |
|
60 |
%description -n %{develname} |
61 |
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes |
62 |
the basic features of Exiv2 available to GNOME applications. |
63 |
|
64 |
%prep |
65 |
%setup -q -n gexiv2-%{version} |
66 |
|
67 |
%build |
68 |
%configure2_5x --enable-introspection --enable-tests --enable-static=no |
69 |
%make |
70 |
|
71 |
%install |
72 |
%make_install |
73 |
|
74 |
find %{buildroot} -name '*.la' -delete |
75 |
|
76 |
%find_lang %{name} |
77 |
|
78 |
%check |
79 |
#%%make tests |
80 |
|
81 |
%files -n %{libname} |
82 |
%{_libdir}/*.so.%{major}{,.*} |
83 |
|
84 |
%files -n %{develname} |
85 |
%doc %{_docdir}/gtk-doc/html/gexiv2/ |
86 |
%{_includedir}/gexiv2 |
87 |
%{_libdir}/*.so |
88 |
%{_libdir}/pkgconfig/*.pc |
89 |
%{_datadir}/vala/vapi/gexiv2.vapi |
90 |
%{_datadir}/gir-1.0/*-%{gir_major}.gir |
91 |
#%%{python_sitearch}/gi/overrides/GExiv2.* |
92 |
%{python3_sitearch}/gi/overrides/GExiv2.* |
93 |
%{python3_sitearch}/gi/overrides/__pycache__/GExiv2.* |
94 |
|
95 |
%files -n %{gir_name} |
96 |
%{_libdir}/girepository-1.0/GExiv2-0.10.typelib |