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