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