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