]> git.pld-linux.org Git - packages/ostree.git/blame - ostree.spec
- updated to 2020.6
[packages/ostree.git] / ostree.spec
CommitLineData
8a714495
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
1fb01f78 4
8a714495
JB
5Summary: OSTree - Git for operating system binaries
6Summary(pl.UTF-8): OSTree - Git dla binariów systemów operacyjnych
7Name: ostree
71b6f7c4 8Version: 2020.6
9a031ef3 9Release: 1
8a714495
JB
10License: LGPL v2+
11Group: Libraries
68b7237e 12#Source0Download: https://github.com/ostreedev/ostree/releases
7199d8c2 13Source0: https://github.com/ostreedev/ostree/releases/download/v%{version}/libostree-%{version}.tar.xz
71b6f7c4 14# Source0-md5: cd512208fba2cfd122edffbe398cea49
68b7237e
JB
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
d20967bf 20Patch0: grub2-pld.patch
8a714495
JB
21URL: https://wiki.gnome.org/OSTree
22BuildRequires: attr-devel
23BuildRequires: autoconf >= 2.63
19103511 24BuildRequires: automake >= 1:1.13
a6b8389f
JB
25BuildRequires: avahi-devel >= 0.6.31
26BuildRequires: avahi-glib-devel >= 0.6.31
7199d8c2
JB
27BuildRequires: bison
28BuildRequires: curl-devel >= 7.29.0
19103511
JB
29BuildRequires: e2fsprogs-devel
30BuildRequires: glib2-devel >= 1:2.40.0
8a714495 31BuildRequires: gobject-introspection-devel >= 1.34.0
1fb01f78 32BuildRequires: gpgme-devel >= 1.1.8
8a714495
JB
33BuildRequires: gtk-doc >= 1.15
34BuildRequires: libarchive-devel >= 2.8.0
68b7237e 35BuildRequires: libfuse-devel >= 2.9.2
71b6f7c4
JB
36BuildRequires: libgpg-error-devel
37BuildRequires: libmount-devel >= 2.23.0
3bbc680a 38BuildRequires: libselinux-devel >= 2.2
71b6f7c4 39BuildRequires: libsodium-devel >= 1.0.14
8a714495
JB
40BuildRequires: libsoup-devel >= 2.39.1
41BuildRequires: libtool >= 2:2.2.4
42BuildRequires: libxslt-progs
43BuildRequires: pkgconfig
44BuildRequires: sed >= 4.0
a6b8389f 45BuildRequires: systemd-devel >= 1:209
8a714495
JB
46BuildRequires: tar >= 1:1.22
47BuildRequires: xz
a6b8389f 48BuildRequires: xz-devel >= 1:5.0.5
19103511
JB
49BuildRequires: zlib-devel
50Requires: glib2 >= 1:2.40.0
8a714495
JB
51Requires: gpgme >= 1.1.8
52Requires: libarchive >= 2.8.0
71b6f7c4 53Requires: libmount >= 2.23.0
3bbc680a 54Requires: libselinux >= 2.2
71b6f7c4 55Requires: libsodium >= 1.0.14
8a714495 56Requires: libsoup >= 2.39.1
a6b8389f 57Requires: xz-libs >= 1:5.0.5
8a714495
JB
58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60%description
61OSTree is a tool for managing bootable, immutable, versioned
62filesystem trees. While it takes over some of the roles of tradtional
63"package managers" like dpkg and rpm, it is not a package system; nor
64is it a tool for managing full disk images. Instead, it sits between
65those levels, offering a blend of the advantages (and disadvantages)
66of both.
67
68%description -l pl.UTF-8
69OSTree to narzędzie do zarządzania uruchamialnymi, niezmiennymi,
70wersjonowanymi drzewami systemów plików. O ile przejmuje niektóre
71funkcje tradycyjnych "zarządców pakietów", takich jak dpkg i rpm, nie
72jest to system pakietów; nie jest to także narzędzie do zarządzania
73pełnymi obrazami dysków. Jest to poziom pośredni, oferujący połączenie
74zalet (i wad) obu.
75
76%package devel
77Summary: Header files for OSTree library
78Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OSTree
79Group: Development/Libraries
80Requires: %{name} = %{version}-%{release}
19103511 81Requires: glib2-devel >= 1:2.40.0
8a714495
JB
82
83%description devel
84Header files for OSTree library.
85
86%description devel -l pl.UTF-8
87Pliki nagłówkowe biblioteki OSTree.
88
89%package static
90Summary: Static OSTree library
91Summary(pl.UTF-8): Statyczna biblioteka OSTree
92Group: Development/Libraries
93Requires: %{name}-devel = %{version}-%{release}
94
95%description static
96Static OSTree library.
97
98%description static -l pl.UTF-8
99Statyczna biblioteka OSTree.
100
101%package apidocs
102Summary: OSTree API documentation
103Summary(pl.UTF-8): Dokumentacja API biblioteki OSTree
104Group: Documentation
53f1a851 105%if "%{_rpmversion}" >= "4.6"
1fb01f78
ER
106BuildArch: noarch
107%endif
8a714495
JB
108
109%description apidocs
110OSTree API documentation.
111
112%description apidocs -l pl.UTF-8
113Dokumentacja API biblioteki OSTree.
114
19103511
JB
115%package grub2
116Summary: GRUB2 integration for OSTree
117Summary(pl.UTF-8): Integracja bootloadera GRUB2 z OSTree
118Group: Libraries
119Requires: %{name} = %{version}-%{release}
120Requires: grub2
121
122%description grub2
123GRUB2 integration for OSTree.
124
125%description grub2 -l pl.UTF-8
126Integracja bootloadera GRUB2 z OSTree.
127
a6b8389f
JB
128%package -n bash-completion-ostree
129Summary: Bash completion for ostree command
130Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia ostree
131Group: Applications/Shells
132Requires: %{name} = %{version}-%{release}
133Requires: bash-completion >= 2.0
134
135%description -n bash-completion-ostree
136Bash completion for ostree command.
137
138%description -n bash-completion-ostree -l pl.UTF-8
139Bashowe uzupełnianie parametrów polecenia ostree.
140
8a714495
JB
141%package -n dracut-ostree
142Summary: OSTree support for Dracut
143Summary(pl.UTF-8): Obsługa OSTree dla Dracuta
144Group: Applications/System
145Requires: %{name} = %{version}-%{release}
146Requires: dracut
147
148%description -n dracut-ostree
149OSTree support for Dracut.
150
151%description -n dracut-ostree -l pl.UTF-8
152Obsługa OSTree dla Dracuta.
153
154%prep
7199d8c2 155%setup -q -n libostree-%{version}
d20967bf 156%patch0 -p1
68b7237e
JB
157
158# for non-release checkouts
159#rmdir libglnx bsdiff
160#%{__mv} libglnx-* libglnx
161#%{__mv} bsdiff-* bsdiff
19103511
JB
162
163# see autogen.sh
68b7237e
JB
164sed -e 's,$(libglnx_srcpath),libglnx,g' < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
165sed -e 's,$(libbsdiff_srcpath),bsdiff,g' < bsdiff/Makefile-bsdiff.am >bsdiff/Makefile-bsdiff.am.inc
8a714495
JB
166
167%build
8a714495 168%{__libtoolize}
6388086d 169%{__gtkdocize}
7199d8c2 170%{__aclocal} -I buildutil -I libglnx
8a714495
JB
171%{__autoconf}
172%{__autoheader}
173%{__automake}
174%configure \
175 GJS=/usr/bin/gjs \
176 --enable-gtk-doc \
177 --disable-silent-rules \
178 %{?with_static_libs:--enable-static} \
179 --with-dracut \
71b6f7c4 180 --with-ed25519-libsodium \
8a714495
JB
181 --with-html-dir=%{_gtkdocdir} \
182 --with-systemdsystemunitdir=%{systemdunitdir}
183%{__make}
184
185%install
186rm -rf $RPM_BUILD_ROOT
187
188%{__make} install \
189 DESTDIR=$RPM_BUILD_ROOT
190
191# obsoleted by pkg-config
192%{__rm} $RPM_BUILD_ROOT%{_libdir}/libostree-1.la
193
194%clean
195rm -rf $RPM_BUILD_ROOT
196
197%post -p /sbin/ldconfig
198%postun -p /sbin/ldconfig
199
200%files
201%defattr(644,root,root,755)
202%doc README.md TODO
203%attr(755,root,root) %{_bindir}/ostree
68b7237e 204%attr(755,root,root) %{_bindir}/rofiles-fuse
8a714495
JB
205%attr(755,root,root) %{_libdir}/libostree-1.so.*.*.*
206%attr(755,root,root) %ghost %{_libdir}/libostree-1.so.1
207%{_libdir}/girepository-1.0/OSTree-1.0.typelib
7199d8c2
JB
208%dir %{_libexecdir}/libostree
209%attr(755,root,root) %{_libexecdir}/libostree/ostree-trivial-httpd
8a714495
JB
210%{_datadir}/ostree
211%{_mandir}/man1/ostree.1*
19103511 212%{_mandir}/man1/ostree-*.1*
68b7237e 213%{_mandir}/man1/rofiles-fuse.1*
19103511
JB
214%{_mandir}/man5/ostree.repo.5*
215%{_mandir}/man5/ostree.repo-config.5*
8a714495
JB
216
217%files devel
218%defattr(644,root,root,755)
219%attr(755,root,root) %{_libdir}/libostree-1.so
220%{_includedir}/ostree-1
221%{_datadir}/gir-1.0/OSTree-1.0.gir
222%{_pkgconfigdir}/ostree-1.pc
223
224%if %{with static_libs}
225%files static
226%defattr(644,root,root,755)
227%{_libdir}/libostree-1.a
228%endif
229
230%files apidocs
231%defattr(644,root,root,755)
232%{_gtkdocdir}/ostree
233
19103511
JB
234%files grub2
235%defattr(644,root,root,755)
d20967bf 236/lib/grub.d/15_ostree
7199d8c2 237%attr(755,root,root) %{_libexecdir}/libostree/grub2-15_ostree
19103511 238
a6b8389f
JB
239%files -n bash-completion-ostree
240%defattr(644,root,root,755)
241%{bash_compdir}/ostree
242
8a714495
JB
243%files -n dracut-ostree
244%defattr(644,root,root,755)
9a031ef3
JR
245%dir %{_prefix}/lib/ostree
246%attr(755,root,root) %{_prefix}/lib/ostree/ostree-prepare-root
247%attr(755,root,root) %{_prefix}/lib/ostree/ostree-remount
a6b8389f
JB
248%{systemdunitdir}/ostree-finalize-staged.path
249%{systemdunitdir}/ostree-finalize-staged.service
6388086d 250%{systemdunitdir}/ostree-prepare-root.service
8a714495 251%{systemdunitdir}/ostree-remount.service
a6b8389f 252%{systemdtmpfilesdir}/ostree-tmpfiles.conf
7199d8c2 253%attr(755,root,root) /lib/systemd/system-generators/ostree-system-generator
f1c96329 254%dir %{_prefix}/lib/dracut/modules.d/98ostree
8a714495 255%attr(755,root,root) %{_prefix}/lib/dracut/modules.d/98ostree/module-setup.sh
8a714495 256%config(noreplace) %verify(not md5 mtime size) /etc/dracut.conf.d/ostree.conf
This page took 0.105069 seconds and 4 git commands to generate.