]>
Commit | Line | Data |
---|---|---|
8fdcc3c7 JB |
1 | # NOTE: on updates verify GExiv2.py python2 compatibility; |
2 | # when broken, fork last compatible version of GExiv2.py to python-gexiv2.spec | |
a87b73d6 JB |
3 | # |
4 | # Conditional build: | |
59161dd4 | 5 | %bcond_without apidocs # disable gtk-doc |
a87b73d6 | 6 | %bcond_without static_libs # static library |
612ce1af | 7 | |
7cbb7954 JB |
8 | Summary: GObject-based wrapper around the Exiv2 library |
9 | Summary(pl.UTF-8): Oparte na GObject obudowanie biblioteki Exiv2 | |
819f5fc4 | 10 | Name: gexiv2 |
99728656 | 11 | Version: 0.14.2 |
8fdcc3c7 | 12 | Release: 1 |
538a6660 | 13 | License: GPL v2+ |
7cbb7954 | 14 | Group: Libraries |
4c47cbd8 | 15 | Source0: https://download.gnome.org/sources/gexiv2/0.14/%{name}-%{version}.tar.xz |
99728656 | 16 | # Source0-md5: 1e65556fad5d24a4c365696544d8c945 |
8fdcc3c7 | 17 | Patch0: %{name}-python-archdir.patch |
a87b73d6 | 18 | URL: https://wiki.gnome.org/Projects/gexiv2 |
dac116a9 | 19 | BuildRequires: exiv2-devel >= 0.27.4 |
538a6660 | 20 | BuildRequires: glib2-devel >= 1:2.46.0 |
a87b73d6 | 21 | BuildRequires: gobject-introspection-devel >= 0.10 |
1ee12e41 | 22 | BuildRequires: gtk-doc >= 1.14 |
87cebbe9 | 23 | BuildRequires: libstdc++-devel >= 6:4.7 |
8fdcc3c7 | 24 | BuildRequires: meson >= 0.64 |
87cebbe9 | 25 | BuildRequires: ninja >= 1.5 |
a87b73d6 JB |
26 | BuildRequires: pkgconfig >= 1:0.26 |
27 | BuildRequires: python >= 2 | |
28 | BuildRequires: python-pygobject3-devel >= 3 | |
6f8130d9 | 29 | BuildRequires: python3 >= 1:3.2 |
a87b73d6 | 30 | BuildRequires: python3-pygobject3-devel >= 3 |
dac116a9 | 31 | BuildRequires: rpm-build >= 4.6 |
538a6660 | 32 | BuildRequires: rpmbuild(macros) >= 1.752 |
dac116a9 | 33 | BuildRequires: tar >= 1:1.22 |
87cebbe9 | 34 | BuildRequires: vala |
dac116a9 JB |
35 | BuildRequires: xz |
36 | Requires: exiv2-libs >= 0.27.4 | |
538a6660 | 37 | Requires: glib2 >= 1:2.46.0 |
819f5fc4 CM |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
8fdcc3c7 JB |
40 | # must be in sitedir due to "..overrides" and "..module" imports |
41 | %define py_gi_overridesdir %{py_sitedir}/gi/overrides | |
42 | %define py3_gi_overridesdir %{py3_sitedir}/gi/overrides | |
43 | ||
819f5fc4 | 44 | %description |
dfb42d93 | 45 | gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes |
819f5fc4 CM |
46 | the basic features of Exiv2 available to GNOME applications. |
47 | ||
7cbb7954 JB |
48 | %description -l pl.UTF-8 |
49 | gexiv2 to oparte na GObject obudowanie biblioteki Exiv2. Udostępnia | |
50 | podstawowe możliwości Exiv2 aplikacjom GNOME. | |
51 | ||
819f5fc4 | 52 | %package devel |
7cbb7954 JB |
53 | Summary: Header files for gexiv2 library |
54 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gexiv2 | |
dfb42d93 | 55 | Group: Development/Libraries |
b23ae6ce | 56 | Requires: %{name} = %{version}-%{release} |
dac116a9 | 57 | Requires: exiv2-devel >= 0.27.4 |
538a6660 | 58 | Requires: glib2-devel >= 1:2.46.0 |
7cbb7954 | 59 | Requires: libstdc++-devel |
819f5fc4 CM |
60 | |
61 | %description devel | |
7cbb7954 JB |
62 | Header files for gexiv2 library. |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki gexiv2. | |
819f5fc4 CM |
66 | |
67 | %package static | |
7cbb7954 JB |
68 | Summary: Static gexiv2 library |
69 | Summary(pl.UTF-8): Statyczna biblioteka gexiv2 | |
dfb42d93 | 70 | Group: Development/Libraries |
7cbb7954 | 71 | Requires: %{name}-devel = %{version}-%{release} |
819f5fc4 CM |
72 | |
73 | %description static | |
7cbb7954 JB |
74 | Static gexiv2 library. |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka gexiv2. | |
78 | ||
59161dd4 MB |
79 | %package apidocs |
80 | Summary: gexiv2 API documentation | |
81 | Summary(pl.UTF-8): Dokumentacja API gexiv2 | |
82 | Group: Documentation | |
83 | Requires: gtk-doc-common | |
436f17c4 | 84 | BuildArch: noarch |
59161dd4 MB |
85 | |
86 | %description apidocs | |
87 | gexiv2 API documentation. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Dokumentacja API gexiv2. | |
91 | ||
a87b73d6 JB |
92 | %package -n python-gexiv2 |
93 | Summary: Python 2 binding for gexiv2 library | |
94 | Summary(pl.UTF-8): Wiązanie Pythona 2 do biblioteki gexiv2 | |
95 | Group: Development/Languages/Python | |
96 | Requires: %{name} = %{version}-%{release} | |
4b9da47c | 97 | Requires: python-pygobject3 >= 3 |
a87b73d6 JB |
98 | |
99 | %description -n python-gexiv2 | |
100 | Python 2 binding for gexiv2 library. | |
101 | ||
102 | %description -n python-gexiv2 -l pl.UTF-8 | |
103 | Wiązanie Pythona 2 do biblioteki gexiv2. | |
104 | ||
105 | %package -n python3-gexiv2 | |
106 | Summary: Python 3 binding for gexiv2 library | |
107 | Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki gexiv2 | |
108 | Group: Development/Languages/Python | |
109 | Requires: %{name} = %{version}-%{release} | |
4b9da47c | 110 | Requires: python3-pygobject3 >= 3 |
a87b73d6 JB |
111 | |
112 | %description -n python3-gexiv2 | |
113 | Python 3 binding for gexiv2 library. | |
114 | ||
115 | %description -n python3-gexiv2 -l pl.UTF-8 | |
116 | Wiązanie Pythona 3 do biblioteki gexiv2. | |
117 | ||
7cbb7954 JB |
118 | %package -n vala-gexiv2 |
119 | Summary: Vala binding for gexiv2 library | |
120 | Summary(pl.UTF-8): Wiązanie języka vala do biblioteki gexiv2 | |
121 | Group: Development/Languages | |
122 | Requires: %{name}-devel = %{version}-%{release} | |
436f17c4 | 123 | BuildArch: noarch |
7cbb7954 JB |
124 | |
125 | %description -n vala-gexiv2 | |
126 | Vala binding for gexiv2 library. | |
127 | ||
128 | %description -n vala-gexiv2 -l pl.UTF-8 | |
129 | Wiązanie języka vala do biblioteki gexiv2. | |
819f5fc4 CM |
130 | |
131 | %prep | |
a87b73d6 | 132 | %setup -q |
8fdcc3c7 | 133 | %patch0 -p1 |
819f5fc4 CM |
134 | |
135 | %build | |
87cebbe9 JB |
136 | %meson build \ |
137 | %{?with_apidocs:-Dgtk_doc=true} | |
819f5fc4 | 138 | |
87cebbe9 | 139 | %ninja_build -C build |
7cbb7954 | 140 | |
819f5fc4 CM |
141 | %install |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
87cebbe9 | 144 | %ninja_install -C build |
a87b73d6 | 145 | |
4c47cbd8 JB |
146 | # no longer installed by meson |
147 | install -d $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides | |
148 | cp -p GExiv2.py $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides | |
a87b73d6 JB |
149 | %py_comp $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides |
150 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides | |
151 | %py_postclean | |
819f5fc4 | 152 | |
87cebbe9 JB |
153 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}/gi/overrides |
154 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}/gi/overrides | |
155 | ||
819f5fc4 CM |
156 | %clean |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
7cbb7954 JB |
159 | %post -p /sbin/ldconfig |
160 | %postun -p /sbin/ldconfig | |
161 | ||
819f5fc4 CM |
162 | %files |
163 | %defattr(644,root,root,755) | |
538a6660 | 164 | %doc AUTHORS NEWS README THANKS |
7cbb7954 | 165 | %attr(755,root,root) %{_libdir}/libgexiv2.so.*.*.* |
56265065 | 166 | %attr(755,root,root) %ghost %{_libdir}/libgexiv2.so.2 |
a87b73d6 | 167 | %{_libdir}/girepository-1.0/GExiv2-0.10.typelib |
819f5fc4 CM |
168 | |
169 | %files devel | |
170 | %defattr(644,root,root,755) | |
7cbb7954 | 171 | %attr(755,root,root) %{_libdir}/libgexiv2.so |
a87b73d6 | 172 | %{_datadir}/gir-1.0/GExiv2-0.10.gir |
7cbb7954 JB |
173 | %{_includedir}/gexiv2 |
174 | %{_pkgconfigdir}/gexiv2.pc | |
819f5fc4 | 175 | |
a87b73d6 | 176 | %if %{with static_libs} |
819f5fc4 CM |
177 | %files static |
178 | %defattr(644,root,root,755) | |
7cbb7954 | 179 | %{_libdir}/libgexiv2.a |
a87b73d6 JB |
180 | %endif |
181 | ||
9d5f3752 | 182 | %if %{with apidocs} |
59161dd4 MB |
183 | %files apidocs |
184 | %defattr(644,root,root,755) | |
185 | %{_gtkdocdir}/gexiv2 | |
9d5f3752 | 186 | %endif |
59161dd4 | 187 | |
a87b73d6 JB |
188 | %files -n python-gexiv2 |
189 | %defattr(644,root,root,755) | |
8fdcc3c7 | 190 | %{py_gi_overridesdir}/GExiv2.py[co] |
a87b73d6 JB |
191 | |
192 | %files -n python3-gexiv2 | |
193 | %defattr(644,root,root,755) | |
8fdcc3c7 JB |
194 | %{py3_gi_overridesdir}/GExiv2.py |
195 | %{py3_gi_overridesdir}/__pycache__/GExiv2.cpython-*.py[co] | |
7cbb7954 JB |
196 | |
197 | %files -n vala-gexiv2 | |
198 | %defattr(644,root,root,755) | |
87cebbe9 | 199 | %{_datadir}/vala/vapi/gexiv2.deps |
7cbb7954 | 200 | %{_datadir}/vala/vapi/gexiv2.vapi |