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