]>
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 |
59161dd4 MB |
9 | Version: 0.10.5 |
10 | Release: 1 | |
7cbb7954 JB |
11 | License: GPL v2 |
12 | Group: Libraries | |
6f8130d9 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gexiv2/0.10/%{name}-%{version}.tar.xz |
59161dd4 | 14 | # Source0-md5: ee99e45cfc72db3041e7eb83f1c64372 |
a87b73d6 | 15 | URL: https://wiki.gnome.org/Projects/gexiv2 |
3be85c32 | 16 | BuildRequires: exiv2-devel >= 0.21 |
a87b73d6 JB |
17 | BuildRequires: glib2-devel >= 1:2.26.1 |
18 | BuildRequires: gobject-introspection-devel >= 0.10 | |
1ee12e41 | 19 | BuildRequires: gtk-doc >= 1.14 |
7cbb7954 | 20 | BuildRequires: libstdc++-devel |
7cbb7954 | 21 | BuildRequires: m4 |
a87b73d6 JB |
22 | BuildRequires: pkgconfig >= 1:0.26 |
23 | BuildRequires: python >= 2 | |
24 | BuildRequires: python-pygobject3-devel >= 3 | |
6f8130d9 | 25 | BuildRequires: python3 >= 1:3.2 |
a87b73d6 JB |
26 | BuildRequires: python3-pygobject3-devel >= 3 |
27 | BuildRequires: rpmbuild(macros) >= 1.219 | |
3be85c32 | 28 | Requires: exiv2-libs >= 0.21 |
a87b73d6 | 29 | Requires: glib2 >= 1:2.26.1 |
819f5fc4 CM |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
dfb42d93 | 33 | gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes |
819f5fc4 CM |
34 | the basic features of Exiv2 available to GNOME applications. |
35 | ||
7cbb7954 JB |
36 | %description -l pl.UTF-8 |
37 | gexiv2 to oparte na GObject obudowanie biblioteki Exiv2. Udostępnia | |
38 | podstawowe możliwości Exiv2 aplikacjom GNOME. | |
39 | ||
819f5fc4 | 40 | %package devel |
7cbb7954 JB |
41 | Summary: Header files for gexiv2 library |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gexiv2 | |
dfb42d93 | 43 | Group: Development/Libraries |
b23ae6ce | 44 | Requires: %{name} = %{version}-%{release} |
7cbb7954 | 45 | Requires: exiv2-devel >= 0.21 |
a87b73d6 | 46 | Requires: glib2-devel >= 1:2.26.1 |
7cbb7954 | 47 | Requires: libstdc++-devel |
819f5fc4 CM |
48 | |
49 | %description devel | |
7cbb7954 JB |
50 | Header files for gexiv2 library. |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki gexiv2. | |
819f5fc4 CM |
54 | |
55 | %package static | |
7cbb7954 JB |
56 | Summary: Static gexiv2 library |
57 | Summary(pl.UTF-8): Statyczna biblioteka gexiv2 | |
dfb42d93 | 58 | Group: Development/Libraries |
7cbb7954 | 59 | Requires: %{name}-devel = %{version}-%{release} |
819f5fc4 CM |
60 | |
61 | %description static | |
7cbb7954 JB |
62 | Static gexiv2 library. |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka gexiv2. | |
66 | ||
59161dd4 MB |
67 | %package apidocs |
68 | Summary: gexiv2 API documentation | |
69 | Summary(pl.UTF-8): Dokumentacja API gexiv2 | |
70 | Group: Documentation | |
71 | Requires: gtk-doc-common | |
72 | %if "%{_rpmversion}" >= "5" | |
73 | BuildArch: noarch | |
74 | %endif | |
75 | ||
76 | %description apidocs | |
77 | gexiv2 API documentation. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API gexiv2. | |
81 | ||
a87b73d6 JB |
82 | %package -n python-gexiv2 |
83 | Summary: Python 2 binding for gexiv2 library | |
84 | Summary(pl.UTF-8): Wiązanie Pythona 2 do biblioteki gexiv2 | |
85 | Group: Development/Languages/Python | |
86 | Requires: %{name} = %{version}-%{release} | |
4b9da47c | 87 | Requires: python-pygobject3 >= 3 |
a87b73d6 JB |
88 | |
89 | %description -n python-gexiv2 | |
90 | Python 2 binding for gexiv2 library. | |
91 | ||
92 | %description -n python-gexiv2 -l pl.UTF-8 | |
93 | Wiązanie Pythona 2 do biblioteki gexiv2. | |
94 | ||
95 | %package -n python3-gexiv2 | |
96 | Summary: Python 3 binding for gexiv2 library | |
97 | Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki gexiv2 | |
98 | Group: Development/Languages/Python | |
99 | Requires: %{name} = %{version}-%{release} | |
4b9da47c | 100 | Requires: python3-pygobject3 >= 3 |
a87b73d6 JB |
101 | |
102 | %description -n python3-gexiv2 | |
103 | Python 3 binding for gexiv2 library. | |
104 | ||
105 | %description -n python3-gexiv2 -l pl.UTF-8 | |
106 | Wiązanie Pythona 3 do biblioteki gexiv2. | |
107 | ||
7cbb7954 JB |
108 | %package -n vala-gexiv2 |
109 | Summary: Vala binding for gexiv2 library | |
110 | Summary(pl.UTF-8): Wiązanie języka vala do biblioteki gexiv2 | |
111 | Group: Development/Languages | |
112 | Requires: %{name}-devel = %{version}-%{release} | |
612ce1af ER |
113 | %if "%{_rpmversion}" >= "5" |
114 | BuildArch: noarch | |
115 | %endif | |
7cbb7954 JB |
116 | |
117 | %description -n vala-gexiv2 | |
118 | Vala binding for gexiv2 library. | |
119 | ||
120 | %description -n vala-gexiv2 -l pl.UTF-8 | |
121 | Wią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 |
137 | rm -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 | |
151 | rm -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 |