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