]>
Commit | Line | Data |
---|---|---|
8a714495 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
1fb01f78 | 4 | |
8a714495 JB |
5 | Summary: OSTree - Git for operating system binaries |
6 | Summary(pl.UTF-8): OSTree - Git dla binariów systemów operacyjnych | |
7 | Name: ostree | |
19103511 JB |
8 | Version: 2015.5 |
9 | Release: 1 | |
8a714495 JB |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
19103511 JB |
12 | #Source0: http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{name}-%{version}.tar.xz |
13 | Source0: https://github.com/GNOME/ostree/archive/v%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 8709f98decbc40c9af8c1abd1c5552b3 | |
15 | # official https://git.gnome.org/browse/libglnx | |
16 | Source1: https://github.com/GNOME/libglnx/archive/371172bcfd869867cf1c2847fcbbb3aa22adddb6/libglnx.tar.gz | |
17 | # Source1-md5: 2de1e869bbf3a0b77b88bfe09637c556 | |
18 | Source2: https://github.com/mendsley/bsdiff/archive/1edf9f656850c0c64dae260960fabd8249ea9c60/bsdiff.tar.gz | |
19 | # Source2-md5: 38464abb5e66b0c8dfbcf94fba6a8004 | |
8a714495 JB |
20 | URL: https://wiki.gnome.org/OSTree |
21 | BuildRequires: attr-devel | |
22 | BuildRequires: autoconf >= 2.63 | |
19103511 JB |
23 | BuildRequires: automake >= 1:1.13 |
24 | BuildRequires: e2fsprogs-devel | |
25 | BuildRequires: glib2-devel >= 1:2.40.0 | |
8a714495 | 26 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
1fb01f78 | 27 | BuildRequires: gpgme-devel >= 1.1.8 |
8a714495 JB |
28 | BuildRequires: gtk-doc >= 1.15 |
29 | BuildRequires: libarchive-devel >= 2.8.0 | |
19103511 | 30 | BuildRequires: libgsystem-devel >= 2015.1 |
3bbc680a | 31 | BuildRequires: libselinux-devel >= 2.2 |
8a714495 JB |
32 | BuildRequires: libsoup-devel >= 2.39.1 |
33 | BuildRequires: libtool >= 2:2.2.4 | |
34 | BuildRequires: libxslt-progs | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: sed >= 4.0 | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xz | |
19103511 JB |
39 | BuildRequires: xz-devel >= 5.0.5 |
40 | BuildRequires: zlib-devel | |
41 | Requires: glib2 >= 1:2.40.0 | |
8a714495 JB |
42 | Requires: gpgme >= 1.1.8 |
43 | Requires: libarchive >= 2.8.0 | |
3bbc680a | 44 | Requires: libselinux >= 2.2 |
8a714495 JB |
45 | Requires: libsoup >= 2.39.1 |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | OSTree is a tool for managing bootable, immutable, versioned | |
50 | filesystem trees. While it takes over some of the roles of tradtional | |
51 | "package managers" like dpkg and rpm, it is not a package system; nor | |
52 | is it a tool for managing full disk images. Instead, it sits between | |
53 | those levels, offering a blend of the advantages (and disadvantages) | |
54 | of both. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | OSTree to narzędzie do zarządzania uruchamialnymi, niezmiennymi, | |
58 | wersjonowanymi drzewami systemów plików. O ile przejmuje niektóre | |
59 | funkcje tradycyjnych "zarządców pakietów", takich jak dpkg i rpm, nie | |
60 | jest to system pakietów; nie jest to także narzędzie do zarządzania | |
61 | pełnymi obrazami dysków. Jest to poziom pośredni, oferujący połączenie | |
62 | zalet (i wad) obu. | |
63 | ||
64 | %package devel | |
65 | Summary: Header files for OSTree library | |
66 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OSTree | |
67 | Group: Development/Libraries | |
68 | Requires: %{name} = %{version}-%{release} | |
19103511 | 69 | Requires: glib2-devel >= 1:2.40.0 |
8a714495 JB |
70 | |
71 | %description devel | |
72 | Header files for OSTree library. | |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Pliki nagłówkowe biblioteki OSTree. | |
76 | ||
77 | %package static | |
78 | Summary: Static OSTree library | |
79 | Summary(pl.UTF-8): Statyczna biblioteka OSTree | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | ||
83 | %description static | |
84 | Static OSTree library. | |
85 | ||
86 | %description static -l pl.UTF-8 | |
87 | Statyczna biblioteka OSTree. | |
88 | ||
89 | %package apidocs | |
90 | Summary: OSTree API documentation | |
91 | Summary(pl.UTF-8): Dokumentacja API biblioteki OSTree | |
92 | Group: Documentation | |
1fb01f78 ER |
93 | %if "%{_rpmversion}" >= "5" |
94 | BuildArch: noarch | |
95 | %endif | |
8a714495 JB |
96 | |
97 | %description apidocs | |
98 | OSTree API documentation. | |
99 | ||
100 | %description apidocs -l pl.UTF-8 | |
101 | Dokumentacja API biblioteki OSTree. | |
102 | ||
19103511 JB |
103 | %package grub2 |
104 | Summary: GRUB2 integration for OSTree | |
105 | Summary(pl.UTF-8): Integracja bootloadera GRUB2 z OSTree | |
106 | Group: Libraries | |
107 | Requires: %{name} = %{version}-%{release} | |
108 | Requires: grub2 | |
109 | ||
110 | %description grub2 | |
111 | GRUB2 integration for OSTree. | |
112 | ||
113 | %description grub2 -l pl.UTF-8 | |
114 | Integracja bootloadera GRUB2 z OSTree. | |
115 | ||
8a714495 JB |
116 | %package -n dracut-ostree |
117 | Summary: OSTree support for Dracut | |
118 | Summary(pl.UTF-8): Obsługa OSTree dla Dracuta | |
119 | Group: Applications/System | |
120 | Requires: %{name} = %{version}-%{release} | |
121 | Requires: dracut | |
122 | ||
123 | %description -n dracut-ostree | |
124 | OSTree support for Dracut. | |
125 | ||
126 | %description -n dracut-ostree -l pl.UTF-8 | |
127 | Obsługa OSTree dla Dracuta. | |
128 | ||
129 | %prep | |
19103511 JB |
130 | %setup -q -a1 -a2 |
131 | rmdir libglnx bsdiff | |
132 | %{__mv} libglnx-* libglnx | |
133 | %{__mv} bsdiff-* bsdiff | |
134 | ||
135 | # see autogen.sh | |
136 | sed -e 's,$(libglnx_srcpath),'./libglnx,g < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc | |
137 | sed -e 's,$(libbsdiff_srcpath),'./bsdiff,g < bsdiff/Makefile-bsdiff.am >bsdiff/Makefile-bsdiff.am.inc | |
8a714495 JB |
138 | |
139 | %build | |
8a714495 | 140 | %{__libtoolize} |
6388086d | 141 | %{__gtkdocize} |
8a714495 JB |
142 | %{__aclocal} -I m4 |
143 | %{__autoconf} | |
144 | %{__autoheader} | |
145 | %{__automake} | |
146 | %configure \ | |
147 | GJS=/usr/bin/gjs \ | |
148 | --enable-gtk-doc \ | |
149 | --disable-silent-rules \ | |
150 | %{?with_static_libs:--enable-static} \ | |
151 | --with-dracut \ | |
152 | --with-html-dir=%{_gtkdocdir} \ | |
153 | --with-systemdsystemunitdir=%{systemdunitdir} | |
154 | %{__make} | |
155 | ||
156 | %install | |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
159 | %{__make} install \ | |
160 | DESTDIR=$RPM_BUILD_ROOT | |
161 | ||
162 | # obsoleted by pkg-config | |
163 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libostree-1.la | |
164 | ||
165 | %clean | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
168 | %post -p /sbin/ldconfig | |
169 | %postun -p /sbin/ldconfig | |
170 | ||
171 | %files | |
172 | %defattr(644,root,root,755) | |
173 | %doc README.md TODO | |
174 | %attr(755,root,root) %{_bindir}/ostree | |
175 | %attr(755,root,root) %{_libdir}/libostree-1.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libostree-1.so.1 | |
177 | %{_libdir}/girepository-1.0/OSTree-1.0.typelib | |
178 | %{_datadir}/ostree | |
179 | %{_mandir}/man1/ostree.1* | |
19103511 JB |
180 | %{_mandir}/man1/ostree-*.1* |
181 | %{_mandir}/man5/ostree.repo.5* | |
182 | %{_mandir}/man5/ostree.repo-config.5* | |
8a714495 JB |
183 | |
184 | %files devel | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/libostree-1.so | |
187 | %{_includedir}/ostree-1 | |
188 | %{_datadir}/gir-1.0/OSTree-1.0.gir | |
189 | %{_pkgconfigdir}/ostree-1.pc | |
190 | ||
191 | %if %{with static_libs} | |
192 | %files static | |
193 | %defattr(644,root,root,755) | |
194 | %{_libdir}/libostree-1.a | |
195 | %endif | |
196 | ||
197 | %files apidocs | |
198 | %defattr(644,root,root,755) | |
199 | %{_gtkdocdir}/ostree | |
200 | ||
19103511 JB |
201 | %files grub2 |
202 | %defattr(644,root,root,755) | |
203 | /etc/grub.d/15_ostree | |
204 | %dir %{_libexecdir}/ostree | |
205 | %attr(755,root,root) %{_libexecdir}/ostree/grub2-15_ostree | |
206 | ||
8a714495 JB |
207 | %files -n dracut-ostree |
208 | %defattr(644,root,root,755) | |
209 | %attr(755,root,root) %{_sbindir}/ostree-prepare-root | |
210 | %attr(755,root,root) %{_sbindir}/ostree-remount | |
6388086d | 211 | %{systemdunitdir}/ostree-prepare-root.service |
8a714495 | 212 | %{systemdunitdir}/ostree-remount.service |
f1c96329 | 213 | %dir %{_prefix}/lib/dracut/modules.d/98ostree |
8a714495 | 214 | %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/98ostree/module-setup.sh |
8a714495 | 215 | %config(noreplace) %verify(not md5 mtime size) /etc/dracut.conf.d/ostree.conf |