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