3 %bcond_without static_libs # don't build static libraries
5 Summary: OSTree - Git for operating system binaries
6 Summary(pl.UTF-8): OSTree - Git dla binariów systemów operacyjnych
12 #Source0Download: https://github.com/ostreedev/ostree/releases
13 Source0: https://github.com/ostreedev/ostree/releases/download/v%{version}/libostree-%{version}.tar.xz
14 # Source0-md5: 631faed6c6bf9167947ca4c759c6cd8b
15 # for non-release checkouts
16 #Source1: https://github.com/GNOME/libglnx/archive/03138641298fd6799f46b16423871f959332bacf/libglnx.tar.gz
17 ## Source1-md5: c7234e0156af5480e9fa8eef85f7d107
18 #Source2: https://github.com/mendsley/bsdiff/archive/1edf9f656850c0c64dae260960fabd8249ea9c60/bsdiff.tar.gz
19 ## Source2-md5: 38464abb5e66b0c8dfbcf94fba6a8004
20 Patch0: grub2-pld.patch
21 URL: https://wiki.gnome.org/OSTree
22 BuildRequires: attr-devel
23 BuildRequires: autoconf >= 2.63
24 BuildRequires: automake >= 1:1.13
25 BuildRequires: avahi-devel >= 0.6.31
26 BuildRequires: avahi-glib-devel >= 0.6.31
28 BuildRequires: curl-devel >= 7.29.0
29 BuildRequires: e2fsprogs-devel
30 BuildRequires: glib2-devel >= 1:2.40.0
31 BuildRequires: gobject-introspection-devel >= 1.34.0
32 BuildRequires: gpgme-devel >= 1.1.8
33 BuildRequires: gtk-doc >= 1.15
34 BuildRequires: libarchive-devel >= 2.8.0
35 BuildRequires: libfuse-devel >= 2.9.2
36 BuildRequires: libmount >= 2.23.0
37 BuildRequires: libselinux-devel >= 2.2
38 BuildRequires: libsoup-devel >= 2.39.1
39 BuildRequires: libtool >= 2:2.2.4
40 BuildRequires: libxslt-progs
41 BuildRequires: pkgconfig
42 BuildRequires: sed >= 4.0
43 BuildRequires: systemd-devel >= 1:209
44 BuildRequires: tar >= 1:1.22
46 BuildRequires: xz-devel >= 1:5.0.5
47 BuildRequires: zlib-devel
48 Requires: glib2 >= 1:2.40.0
49 Requires: gpgme >= 1.1.8
50 Requires: libarchive >= 2.8.0
51 Requires: libselinux >= 2.2
52 Requires: libsoup >= 2.39.1
53 Requires: xz-libs >= 1:5.0.5
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 OSTree is a tool for managing bootable, immutable, versioned
58 filesystem trees. While it takes over some of the roles of tradtional
59 "package managers" like dpkg and rpm, it is not a package system; nor
60 is it a tool for managing full disk images. Instead, it sits between
61 those levels, offering a blend of the advantages (and disadvantages)
64 %description -l pl.UTF-8
65 OSTree to narzędzie do zarządzania uruchamialnymi, niezmiennymi,
66 wersjonowanymi drzewami systemów plików. O ile przejmuje niektóre
67 funkcje tradycyjnych "zarządców pakietów", takich jak dpkg i rpm, nie
68 jest to system pakietów; nie jest to także narzędzie do zarządzania
69 pełnymi obrazami dysków. Jest to poziom pośredni, oferujący połączenie
73 Summary: Header files for OSTree library
74 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OSTree
75 Group: Development/Libraries
76 Requires: %{name} = %{version}-%{release}
77 Requires: glib2-devel >= 1:2.40.0
80 Header files for OSTree library.
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki OSTree.
86 Summary: Static OSTree library
87 Summary(pl.UTF-8): Statyczna biblioteka OSTree
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
92 Static OSTree library.
94 %description static -l pl.UTF-8
95 Statyczna biblioteka OSTree.
98 Summary: OSTree API documentation
99 Summary(pl.UTF-8): Dokumentacja API biblioteki OSTree
101 %if "%{_rpmversion}" >= "4.6"
106 OSTree API documentation.
108 %description apidocs -l pl.UTF-8
109 Dokumentacja API biblioteki OSTree.
112 Summary: GRUB2 integration for OSTree
113 Summary(pl.UTF-8): Integracja bootloadera GRUB2 z OSTree
115 Requires: %{name} = %{version}-%{release}
119 GRUB2 integration for OSTree.
121 %description grub2 -l pl.UTF-8
122 Integracja bootloadera GRUB2 z OSTree.
124 %package -n bash-completion-ostree
125 Summary: Bash completion for ostree command
126 Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia ostree
127 Group: Applications/Shells
128 Requires: %{name} = %{version}-%{release}
129 Requires: bash-completion >= 2.0
131 %description -n bash-completion-ostree
132 Bash completion for ostree command.
134 %description -n bash-completion-ostree -l pl.UTF-8
135 Bashowe uzupełnianie parametrów polecenia ostree.
137 %package -n dracut-ostree
138 Summary: OSTree support for Dracut
139 Summary(pl.UTF-8): Obsługa OSTree dla Dracuta
140 Group: Applications/System
141 Requires: %{name} = %{version}-%{release}
144 %description -n dracut-ostree
145 OSTree support for Dracut.
147 %description -n dracut-ostree -l pl.UTF-8
148 Obsługa OSTree dla Dracuta.
151 %setup -q -n libostree-%{version}
154 # for non-release checkouts
155 #rmdir libglnx bsdiff
156 #%{__mv} libglnx-* libglnx
157 #%{__mv} bsdiff-* bsdiff
160 sed -e 's,$(libglnx_srcpath),libglnx,g' < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
161 sed -e 's,$(libbsdiff_srcpath),bsdiff,g' < bsdiff/Makefile-bsdiff.am >bsdiff/Makefile-bsdiff.am.inc
166 %{__aclocal} -I buildutil -I libglnx
173 --disable-silent-rules \
174 %{?with_static_libs:--enable-static} \
176 --with-html-dir=%{_gtkdocdir} \
177 --with-systemdsystemunitdir=%{systemdunitdir}
181 rm -rf $RPM_BUILD_ROOT
184 DESTDIR=$RPM_BUILD_ROOT
186 # obsoleted by pkg-config
187 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libostree-1.la
190 rm -rf $RPM_BUILD_ROOT
192 %post -p /sbin/ldconfig
193 %postun -p /sbin/ldconfig
196 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/ostree
199 %attr(755,root,root) %{_bindir}/rofiles-fuse
200 %attr(755,root,root) %{_libdir}/libostree-1.so.*.*.*
201 %attr(755,root,root) %ghost %{_libdir}/libostree-1.so.1
202 %{_libdir}/girepository-1.0/OSTree-1.0.typelib
203 %dir %{_libexecdir}/libostree
204 %attr(755,root,root) %{_libexecdir}/libostree/ostree-trivial-httpd
206 %{_mandir}/man1/ostree.1*
207 %{_mandir}/man1/ostree-*.1*
208 %{_mandir}/man1/rofiles-fuse.1*
209 %{_mandir}/man5/ostree.repo.5*
210 %{_mandir}/man5/ostree.repo-config.5*
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_libdir}/libostree-1.so
215 %{_includedir}/ostree-1
216 %{_datadir}/gir-1.0/OSTree-1.0.gir
217 %{_pkgconfigdir}/ostree-1.pc
219 %if %{with static_libs}
221 %defattr(644,root,root,755)
222 %{_libdir}/libostree-1.a
226 %defattr(644,root,root,755)
230 %defattr(644,root,root,755)
231 /lib/grub.d/15_ostree
232 %attr(755,root,root) %{_libexecdir}/libostree/grub2-15_ostree
234 %files -n bash-completion-ostree
235 %defattr(644,root,root,755)
236 %{bash_compdir}/ostree
238 %files -n dracut-ostree
239 %defattr(644,root,root,755)
240 %dir %{_prefix}/lib/ostree
241 %attr(755,root,root) %{_prefix}/lib/ostree/ostree-prepare-root
242 %attr(755,root,root) %{_prefix}/lib/ostree/ostree-remount
243 %{systemdunitdir}/ostree-finalize-staged.path
244 %{systemdunitdir}/ostree-finalize-staged.service
245 %{systemdunitdir}/ostree-prepare-root.service
246 %{systemdunitdir}/ostree-remount.service
247 %{systemdtmpfilesdir}/ostree-tmpfiles.conf
248 %attr(755,root,root) /lib/systemd/system-generators/ostree-system-generator
249 %dir %{_prefix}/lib/dracut/modules.d/98ostree
250 %attr(755,root,root) %{_prefix}/lib/dracut/modules.d/98ostree/module-setup.sh
251 %config(noreplace) %verify(not md5 mtime size) /etc/dracut.conf.d/ostree.conf