]> git.pld-linux.org Git - packages/ostree.git/blob - ostree.spec
b84c5e12213f5326df94ff70c20eb797efcea6d6
[packages/ostree.git] / ostree.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4
5 Summary:        OSTree - Git for operating system binaries
6 Summary(pl.UTF-8):      OSTree - Git dla binariów systemów operacyjnych
7 Name:           ostree
8 Version:        2020.3
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
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
27 BuildRequires:  bison
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
45 BuildRequires:  xz
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)
55
56 %description
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)
62 of both.
63
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
70 zalet (i wad) obu.
71
72 %package devel
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
78
79 %description devel
80 Header files for OSTree library.
81
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki OSTree.
84
85 %package static
86 Summary:        Static OSTree library
87 Summary(pl.UTF-8):      Statyczna biblioteka OSTree
88 Group:          Development/Libraries
89 Requires:       %{name}-devel = %{version}-%{release}
90
91 %description static
92 Static OSTree library.
93
94 %description static -l pl.UTF-8
95 Statyczna biblioteka OSTree.
96
97 %package apidocs
98 Summary:        OSTree API documentation
99 Summary(pl.UTF-8):      Dokumentacja API biblioteki OSTree
100 Group:          Documentation
101 %if "%{_rpmversion}" >= "4.6"
102 BuildArch:      noarch
103 %endif
104
105 %description apidocs
106 OSTree API documentation.
107
108 %description apidocs -l pl.UTF-8
109 Dokumentacja API biblioteki OSTree.
110
111 %package grub2
112 Summary:        GRUB2 integration for OSTree
113 Summary(pl.UTF-8):      Integracja bootloadera GRUB2 z OSTree
114 Group:          Libraries
115 Requires:       %{name} = %{version}-%{release}
116 Requires:       grub2
117
118 %description grub2
119 GRUB2 integration for OSTree.
120
121 %description grub2 -l pl.UTF-8
122 Integracja bootloadera GRUB2 z OSTree.
123
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
130
131 %description -n bash-completion-ostree
132 Bash completion for ostree command.
133
134 %description -n bash-completion-ostree -l pl.UTF-8
135 Bashowe uzupełnianie parametrów polecenia ostree.
136
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}
142 Requires:       dracut
143
144 %description -n dracut-ostree
145 OSTree support for Dracut.
146
147 %description -n dracut-ostree -l pl.UTF-8
148 Obsługa OSTree dla Dracuta.
149
150 %prep
151 %setup -q -n libostree-%{version}
152 %patch0 -p1
153
154 # for non-release checkouts
155 #rmdir libglnx bsdiff
156 #%{__mv} libglnx-* libglnx
157 #%{__mv} bsdiff-* bsdiff
158
159 # see autogen.sh
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
162
163 %build
164 %{__libtoolize}
165 %{__gtkdocize}
166 %{__aclocal} -I buildutil -I libglnx
167 %{__autoconf}
168 %{__autoheader}
169 %{__automake}
170 %configure \
171         GJS=/usr/bin/gjs \
172         --enable-gtk-doc \
173         --disable-silent-rules \
174         %{?with_static_libs:--enable-static} \
175         --with-dracut \
176         --with-html-dir=%{_gtkdocdir} \
177         --with-systemdsystemunitdir=%{systemdunitdir}
178 %{__make}
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182
183 %{__make} install \
184         DESTDIR=$RPM_BUILD_ROOT
185
186 # obsoleted by pkg-config
187 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libostree-1.la
188
189 %clean
190 rm -rf $RPM_BUILD_ROOT
191
192 %post   -p /sbin/ldconfig
193 %postun -p /sbin/ldconfig
194
195 %files
196 %defattr(644,root,root,755)
197 %doc README.md TODO
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
205 %{_datadir}/ostree
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*
211
212 %files devel
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
218
219 %if %{with static_libs}
220 %files static
221 %defattr(644,root,root,755)
222 %{_libdir}/libostree-1.a
223 %endif
224
225 %files apidocs
226 %defattr(644,root,root,755)
227 %{_gtkdocdir}/ostree
228
229 %files grub2
230 %defattr(644,root,root,755)
231 /lib/grub.d/15_ostree
232 %attr(755,root,root) %{_libexecdir}/libostree/grub2-15_ostree
233
234 %files -n bash-completion-ostree
235 %defattr(644,root,root,755)
236 %{bash_compdir}/ostree
237
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
This page took 0.076033 seconds and 2 git commands to generate.