]> git.pld-linux.org Git - packages/gexiv2.git/blame - gexiv2.spec
rebuild with python 3.10
[packages/gexiv2.git] / gexiv2.spec
CommitLineData
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
6Summary: GObject-based wrapper around the Exiv2 library
7Summary(pl.UTF-8): Oparte na GObject obudowanie biblioteki Exiv2
819f5fc4 8Name: gexiv2
4c47cbd8 9Version: 0.14.0
1dc1a36e 10Release: 2
538a6660 11License: GPL v2+
7cbb7954 12Group: Libraries
4c47cbd8
JB
13Source0: https://download.gnome.org/sources/gexiv2/0.14/%{name}-%{version}.tar.xz
14# Source0-md5: b4b1ac55bf9d32fb36a35eb346e1728e
a87b73d6 15URL: https://wiki.gnome.org/Projects/gexiv2
dac116a9 16BuildRequires: exiv2-devel >= 0.27.4
538a6660 17BuildRequires: glib2-devel >= 1:2.46.0
a87b73d6 18BuildRequires: gobject-introspection-devel >= 0.10
1ee12e41 19BuildRequires: gtk-doc >= 1.14
87cebbe9 20BuildRequires: libstdc++-devel >= 6:4.7
538a6660 21BuildRequires: meson >= 0.48
87cebbe9 22BuildRequires: ninja >= 1.5
a87b73d6
JB
23BuildRequires: pkgconfig >= 1:0.26
24BuildRequires: python >= 2
25BuildRequires: python-pygobject3-devel >= 3
6f8130d9 26BuildRequires: python3 >= 1:3.2
a87b73d6 27BuildRequires: python3-pygobject3-devel >= 3
dac116a9 28BuildRequires: rpm-build >= 4.6
538a6660 29BuildRequires: rpmbuild(macros) >= 1.752
dac116a9 30BuildRequires: tar >= 1:1.22
87cebbe9 31BuildRequires: vala
dac116a9
JB
32BuildRequires: xz
33Requires: exiv2-libs >= 0.27.4
538a6660 34Requires: glib2 >= 1:2.46.0
819f5fc4
CM
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
dfb42d93 38gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes
819f5fc4
CM
39the basic features of Exiv2 available to GNOME applications.
40
7cbb7954
JB
41%description -l pl.UTF-8
42gexiv2 to oparte na GObject obudowanie biblioteki Exiv2. Udostępnia
43podstawowe możliwości Exiv2 aplikacjom GNOME.
44
819f5fc4 45%package devel
7cbb7954
JB
46Summary: Header files for gexiv2 library
47Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gexiv2
dfb42d93 48Group: Development/Libraries
b23ae6ce 49Requires: %{name} = %{version}-%{release}
dac116a9 50Requires: exiv2-devel >= 0.27.4
538a6660 51Requires: glib2-devel >= 1:2.46.0
7cbb7954 52Requires: libstdc++-devel
819f5fc4
CM
53
54%description devel
7cbb7954
JB
55Header files for gexiv2 library.
56
57%description devel -l pl.UTF-8
58Pliki nagłówkowe biblioteki gexiv2.
819f5fc4
CM
59
60%package static
7cbb7954
JB
61Summary: Static gexiv2 library
62Summary(pl.UTF-8): Statyczna biblioteka gexiv2
dfb42d93 63Group: Development/Libraries
7cbb7954 64Requires: %{name}-devel = %{version}-%{release}
819f5fc4
CM
65
66%description static
7cbb7954
JB
67Static gexiv2 library.
68
69%description static -l pl.UTF-8
70Statyczna biblioteka gexiv2.
71
59161dd4
MB
72%package apidocs
73Summary: gexiv2 API documentation
74Summary(pl.UTF-8): Dokumentacja API gexiv2
75Group: Documentation
76Requires: gtk-doc-common
436f17c4 77BuildArch: noarch
59161dd4
MB
78
79%description apidocs
80gexiv2 API documentation.
81
82%description apidocs -l pl.UTF-8
83Dokumentacja API gexiv2.
84
a87b73d6
JB
85%package -n python-gexiv2
86Summary: Python 2 binding for gexiv2 library
87Summary(pl.UTF-8): Wiązanie Pythona 2 do biblioteki gexiv2
88Group: Development/Languages/Python
89Requires: %{name} = %{version}-%{release}
4b9da47c 90Requires: python-pygobject3 >= 3
a87b73d6
JB
91
92%description -n python-gexiv2
93Python 2 binding for gexiv2 library.
94
95%description -n python-gexiv2 -l pl.UTF-8
96Wiązanie Pythona 2 do biblioteki gexiv2.
97
98%package -n python3-gexiv2
99Summary: Python 3 binding for gexiv2 library
100Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki gexiv2
101Group: Development/Languages/Python
102Requires: %{name} = %{version}-%{release}
4b9da47c 103Requires: python3-pygobject3 >= 3
a87b73d6
JB
104
105%description -n python3-gexiv2
106Python 3 binding for gexiv2 library.
107
108%description -n python3-gexiv2 -l pl.UTF-8
109Wiązanie Pythona 3 do biblioteki gexiv2.
110
7cbb7954
JB
111%package -n vala-gexiv2
112Summary: Vala binding for gexiv2 library
113Summary(pl.UTF-8): Wiązanie języka vala do biblioteki gexiv2
114Group: Development/Languages
115Requires: %{name}-devel = %{version}-%{release}
436f17c4 116BuildArch: noarch
7cbb7954
JB
117
118%description -n vala-gexiv2
119Vala binding for gexiv2 library.
120
121%description -n vala-gexiv2 -l pl.UTF-8
122Wią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
134rm -rf $RPM_BUILD_ROOT
135
87cebbe9 136%ninja_install -C build
a87b73d6 137
4c47cbd8
JB
138# no longer installed by meson
139install -d $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides
140cp -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
149rm -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
This page took 0.089267 seconds and 4 git commands to generate.