]>
Commit | Line | Data |
---|---|---|
67b191aa JB |
1 | # |
2 | # Conditional build: | |
54c2da3c | 3 | %bcond_without apidocs # API documentation |
67b191aa | 4 | %bcond_without static_libs # static libraries |
6967c5f7 | 5 | |
67b191aa JB |
6 | Summary: Automatic archives creating and extracting library |
7 | Summary(pl.UTF-8): Biblioteka do automatycznego tworzenia i rozpakowywania archiwów | |
6967c5f7 | 8 | Name: gnome-autoar |
f3d5552a | 9 | Version: 0.4.2 |
801e33d3 | 10 | Release: 1 |
49db5d71 | 11 | License: LGPL v2.1+ |
67b191aa | 12 | Group: Libraries |
54c2da3c | 13 | Source0: https://download.gnome.org/sources/gnome-autoar/0.4/%{name}-%{version}.tar.xz |
f3d5552a | 14 | # Source0-md5: 06a6533559ad795309577ee78d937513 |
67b191aa JB |
15 | Patch0: %{name}-pc.patch |
16 | URL: https://github.com/GNOME/gnome-autoar/ | |
67b191aa | 17 | BuildRequires: glib2-devel >= 1:2.36 |
67b191aa JB |
18 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
19 | BuildRequires: gtk+3-devel >= 3.2 | |
54c2da3c JB |
20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.14} |
21 | BuildRequires: libarchive-devel >= 3.4.0 | |
22 | BuildRequires: meson >= 0.58.0 | |
67b191aa | 23 | BuildRequires: pkgconfig |
54c2da3c | 24 | BuildRequires: ninja >= 1.5 |
620700f1 | 25 | BuildRequires: rpm-build >= 4.6 |
ae3597db | 26 | BuildRequires: rpmbuild(macros) >= 1.752 |
54c2da3c | 27 | BuildRequires: sed >= 4.0 |
49db5d71 | 28 | BuildRequires: tar >= 1:1.22 |
3347935a | 29 | BuildRequires: vala >= 2:0.22.0 |
49db5d71 | 30 | BuildRequires: xz |
67b191aa | 31 | Requires(post,postun): /sbin/ldconfig |
67b191aa | 32 | Requires: glib2 >= 1:2.36 |
54c2da3c | 33 | Requires: libarchive >= 3.4.0 |
67b191aa JB |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | gnome-autoar provides functions, widgets, and gschemas for GNOME | |
38 | applications which want to use archives as a convient method to | |
39 | tranfer directories over the Internet. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | gnome-autoar udostępnia funkcje, widgety oraz gschema dla aplikacji | |
43 | GNOME chcących używać archiwów jako wygodnej metody przesyłania | |
44 | katalogów przez Internet. | |
45 | ||
46 | %package devel | |
47 | Summary: Header files for gnome-autoar library | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gnome-autoar | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | Requires: glib2-devel >= 1:2.36 | |
54c2da3c | 52 | Requires: libarchive-devel >= 3.4.0 |
67b191aa JB |
53 | |
54 | %description devel | |
55 | Header files for gnome-autoar library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki gnome-autoar. | |
59 | ||
60 | %package static | |
61 | Summary: Static gnome-autoar library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka gnome-autoar | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static gnome-autoar library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka gnome-autoar. | |
71 | ||
54c2da3c JB |
72 | %package -n vala-gnome-autoar |
73 | Summary: gnome-autoar API for Vala language | |
74 | Summary(pl.UTF-8): API gnome-autoar dla języka Vala | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | Requires: vala >= 2:0.22.0 | |
78 | BuildArch: noarch | |
79 | ||
80 | %description -n vala-gnome-autoar | |
81 | gnome-autoar API for Vala language. | |
82 | ||
83 | %description -n vala-gnome-autoar -l pl.UTF-8 | |
84 | API gnome-autoar dla języka Vala. | |
85 | ||
67b191aa JB |
86 | %package gtk |
87 | Summary: GTK+ widgets library for gnome-autoar | |
88 | Summary(pl.UTF-8): Biblioteka widgetów GTK+ dla biblioteki gnome-autoar | |
89 | Group: X11/Libraries | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | Requires: gtk+3 >= 3.2 | |
92 | ||
93 | %description gtk | |
94 | gnome-autoar-gtk provides widgets for gnome-autoar library. | |
95 | ||
96 | %description gtk -l pl.UTF-8 | |
97 | gnome-autoar-gtk udostępnia widgety dla biblioteki gnome-autoar. | |
98 | ||
99 | %package gtk-devel | |
100 | Summary: Header files for gnome-autoar-gtk library | |
101 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gnome-autoar-gtk | |
102 | Group: X11/Development/Libraries | |
103 | Requires: %{name}-devel = %{version}-%{release} | |
104 | Requires: %{name}-gtk = %{version}-%{release} | |
105 | Requires: gtk+3-devel >= 3.2 | |
106 | ||
107 | %description gtk-devel | |
108 | Header files for gnome-autoar-gtk library. | |
109 | ||
110 | %description gtk-devel -l pl.UTF-8 | |
111 | Pliki nagłówkowe biblioteki gnome-autoar-gtk. | |
112 | ||
113 | %package gtk-static | |
114 | Summary: Static gnome-autoar-gtk library | |
115 | Summary(pl.UTF-8): Statyczna biblioteka gnome-autoar-gtk | |
116 | Group: X11/Development/Libraries | |
117 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
118 | ||
119 | %description gtk-static | |
120 | Static gnome-autoar-gtk library. | |
121 | ||
122 | %description gtk-static -l pl.UTF-8 | |
123 | Statyczna biblioteka gnome-autoar-gtk. | |
124 | ||
54c2da3c JB |
125 | %package -n vala-gnome-autoar-gtk |
126 | Summary: gnome-autoar-gtk API for Vala language | |
127 | Summary(pl.UTF-8): API gnome-autoar-gtk dla języka Vala | |
128 | Group: Development/Libraries | |
129 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
130 | Requires: vala-gnome-autoar = %{version}-%{release} | |
131 | BuildArch: noarch | |
132 | ||
133 | %description -n vala-gnome-autoar-gtk | |
134 | gnome-autoar-gtk API for Vala language. | |
135 | ||
136 | %description -n vala-gnome-autoar-gtk -l pl.UTF-8 | |
137 | API gnome-autoar-gtk dla języka Vala. | |
138 | ||
67b191aa JB |
139 | %package apidocs |
140 | Summary: gnome-autoar API documentation | |
141 | Summary(pl.UTF-8): Dokumentacja API bibliotek gnome-autoar | |
142 | Group: Documentation | |
3efeed36 | 143 | BuildArch: noarch |
67b191aa JB |
144 | |
145 | %description apidocs | |
146 | API documentation for gnome-autoar libraries. | |
147 | ||
148 | %description apidocs -l pl.UTF-8 | |
149 | Dokumentacja API bibliotek gnome-autoar. | |
150 | ||
151 | %prep | |
801e33d3 | 152 | %setup -q |
67b191aa JB |
153 | %patch0 -p1 |
154 | ||
54c2da3c JB |
155 | %if %{with static_libs} |
156 | %{__sed} -i -e '/^libgnome_autoar\(_gtk\)\? =/ s/shared_library/library/' gnome-autoar/meson.build | |
157 | %endif | |
158 | ||
67b191aa | 159 | %build |
54c2da3c JB |
160 | %meson build \ |
161 | %{?with_apidocs:-Dgtk_doc=true} \ | |
162 | -Dvapi=true | |
163 | ||
164 | %ninja_build -C build | |
67b191aa JB |
165 | |
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
54c2da3c | 169 | %ninja_install -C build |
67b191aa JB |
170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
f0ef3c70 MB |
174 | %post -p /sbin/ldconfig |
175 | %postun -p /sbin/ldconfig | |
67b191aa JB |
176 | |
177 | %post gtk -p /sbin/ldconfig | |
178 | %postun gtk -p /sbin/ldconfig | |
179 | ||
180 | %files | |
181 | %defattr(644,root,root,755) | |
801e33d3 MB |
182 | %attr(755,root,root) %{_libdir}/libgnome-autoar-0.so.*.*.* |
183 | %attr(755,root,root) %ghost %{_libdir}/libgnome-autoar-0.so.0 | |
67b191aa | 184 | %{_libdir}/girepository-1.0/GnomeAutoar-0.1.typelib |
67b191aa JB |
185 | |
186 | %files devel | |
187 | %defattr(644,root,root,755) | |
801e33d3 | 188 | %attr(755,root,root) %{_libdir}/libgnome-autoar-0.so |
67b191aa | 189 | %{_datadir}/gir-1.0/GnomeAutoar-0.1.gir |
801e33d3 MB |
190 | %dir %{_includedir}/gnome-autoar-0 |
191 | %dir %{_includedir}/gnome-autoar-0/gnome-autoar | |
192 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-compressor.h | |
193 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-enum-types.h | |
194 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-extractor.h | |
195 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-mime-types.h | |
196 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-format-filter.h | |
197 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-misc.h | |
198 | %{_includedir}/gnome-autoar-0/gnome-autoar/gnome-autoar.h | |
199 | %{_pkgconfigdir}/gnome-autoar-0.pc | |
67b191aa JB |
200 | |
201 | %if %{with static_libs} | |
202 | %files static | |
203 | %defattr(644,root,root,755) | |
801e33d3 | 204 | %{_libdir}/libgnome-autoar-0.a |
67b191aa JB |
205 | %endif |
206 | ||
54c2da3c JB |
207 | %files -n vala-gnome-autoar |
208 | %defattr(644,root,root,755) | |
209 | %{_datadir}/vala/vapi/gnome-autoar-0.deps | |
210 | %{_datadir}/vala/vapi/gnome-autoar-0.vapi | |
211 | ||
67b191aa JB |
212 | %files gtk |
213 | %defattr(644,root,root,755) | |
801e33d3 MB |
214 | %attr(755,root,root) %{_libdir}/libgnome-autoar-gtk-0.so.*.*.* |
215 | %attr(755,root,root) %ghost %{_libdir}/libgnome-autoar-gtk-0.so.0 | |
67b191aa JB |
216 | %{_libdir}/girepository-1.0/GnomeAutoarGtk-0.1.typelib |
217 | ||
218 | %files gtk-devel | |
219 | %defattr(644,root,root,755) | |
801e33d3 | 220 | %attr(755,root,root) %{_libdir}/libgnome-autoar-gtk-0.so |
67b191aa | 221 | %{_datadir}/gir-1.0/GnomeAutoarGtk-0.1.gir |
801e33d3 MB |
222 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-gtk.h |
223 | %{_includedir}/gnome-autoar-0/gnome-autoar/autoar-gtk-chooser.h | |
224 | %{_pkgconfigdir}/gnome-autoar-gtk-0.pc | |
67b191aa JB |
225 | |
226 | %if %{with static_libs} | |
227 | %files gtk-static | |
228 | %defattr(644,root,root,755) | |
801e33d3 | 229 | %{_libdir}/libgnome-autoar-gtk-0.a |
67b191aa JB |
230 | %endif |
231 | ||
54c2da3c | 232 | %files -n vala-gnome-autoar-gtk |
67b191aa | 233 | %defattr(644,root,root,755) |
54c2da3c JB |
234 | %{_datadir}/vala/vapi/gnome-autoar-gtk-0.deps |
235 | %{_datadir}/vala/vapi/gnome-autoar-gtk-0.vapi | |
f0ef3c70 | 236 | |
54c2da3c | 237 | %files apidocs |
f0ef3c70 | 238 | %defattr(644,root,root,755) |
54c2da3c | 239 | %{_gtkdocdir}/gnome-autoar |