]> git.pld-linux.org Git - packages/ostree.git/blame - ostree.spec
- updated to 2015.5
[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
19103511
JB
8Version: 2015.5
9Release: 1
8a714495
JB
10License: LGPL v2+
11Group: Libraries
19103511
JB
12#Source0: http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{name}-%{version}.tar.xz
13Source0: https://github.com/GNOME/ostree/archive/v%{version}/%{name}-%{version}.tar.gz
14# Source0-md5: 8709f98decbc40c9af8c1abd1c5552b3
15# official https://git.gnome.org/browse/libglnx
16Source1: https://github.com/GNOME/libglnx/archive/371172bcfd869867cf1c2847fcbbb3aa22adddb6/libglnx.tar.gz
17# Source1-md5: 2de1e869bbf3a0b77b88bfe09637c556
18Source2: https://github.com/mendsley/bsdiff/archive/1edf9f656850c0c64dae260960fabd8249ea9c60/bsdiff.tar.gz
19# Source2-md5: 38464abb5e66b0c8dfbcf94fba6a8004
8a714495
JB
20URL: https://wiki.gnome.org/OSTree
21BuildRequires: attr-devel
22BuildRequires: autoconf >= 2.63
19103511
JB
23BuildRequires: automake >= 1:1.13
24BuildRequires: e2fsprogs-devel
25BuildRequires: glib2-devel >= 1:2.40.0
8a714495 26BuildRequires: gobject-introspection-devel >= 1.34.0
1fb01f78 27BuildRequires: gpgme-devel >= 1.1.8
8a714495
JB
28BuildRequires: gtk-doc >= 1.15
29BuildRequires: libarchive-devel >= 2.8.0
19103511 30BuildRequires: libgsystem-devel >= 2015.1
3bbc680a 31BuildRequires: libselinux-devel >= 2.2
8a714495
JB
32BuildRequires: libsoup-devel >= 2.39.1
33BuildRequires: libtool >= 2:2.2.4
34BuildRequires: libxslt-progs
35BuildRequires: pkgconfig
36BuildRequires: sed >= 4.0
37BuildRequires: tar >= 1:1.22
38BuildRequires: xz
19103511
JB
39BuildRequires: xz-devel >= 5.0.5
40BuildRequires: zlib-devel
41Requires: glib2 >= 1:2.40.0
8a714495
JB
42Requires: gpgme >= 1.1.8
43Requires: libarchive >= 2.8.0
3bbc680a 44Requires: libselinux >= 2.2
8a714495
JB
45Requires: libsoup >= 2.39.1
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49OSTree is a tool for managing bootable, immutable, versioned
50filesystem 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
52is it a tool for managing full disk images. Instead, it sits between
53those levels, offering a blend of the advantages (and disadvantages)
54of both.
55
56%description -l pl.UTF-8
57OSTree to narzędzie do zarządzania uruchamialnymi, niezmiennymi,
58wersjonowanymi drzewami systemów plików. O ile przejmuje niektóre
59funkcje tradycyjnych "zarządców pakietów", takich jak dpkg i rpm, nie
60jest to system pakietów; nie jest to także narzędzie do zarządzania
61pełnymi obrazami dysków. Jest to poziom pośredni, oferujący połączenie
62zalet (i wad) obu.
63
64%package devel
65Summary: Header files for OSTree library
66Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OSTree
67Group: Development/Libraries
68Requires: %{name} = %{version}-%{release}
19103511 69Requires: glib2-devel >= 1:2.40.0
8a714495
JB
70
71%description devel
72Header files for OSTree library.
73
74%description devel -l pl.UTF-8
75Pliki nagłówkowe biblioteki OSTree.
76
77%package static
78Summary: Static OSTree library
79Summary(pl.UTF-8): Statyczna biblioteka OSTree
80Group: Development/Libraries
81Requires: %{name}-devel = %{version}-%{release}
82
83%description static
84Static OSTree library.
85
86%description static -l pl.UTF-8
87Statyczna biblioteka OSTree.
88
89%package apidocs
90Summary: OSTree API documentation
91Summary(pl.UTF-8): Dokumentacja API biblioteki OSTree
92Group: Documentation
1fb01f78
ER
93%if "%{_rpmversion}" >= "5"
94BuildArch: noarch
95%endif
8a714495
JB
96
97%description apidocs
98OSTree API documentation.
99
100%description apidocs -l pl.UTF-8
101Dokumentacja API biblioteki OSTree.
102
19103511
JB
103%package grub2
104Summary: GRUB2 integration for OSTree
105Summary(pl.UTF-8): Integracja bootloadera GRUB2 z OSTree
106Group: Libraries
107Requires: %{name} = %{version}-%{release}
108Requires: grub2
109
110%description grub2
111GRUB2 integration for OSTree.
112
113%description grub2 -l pl.UTF-8
114Integracja bootloadera GRUB2 z OSTree.
115
8a714495
JB
116%package -n dracut-ostree
117Summary: OSTree support for Dracut
118Summary(pl.UTF-8): Obsługa OSTree dla Dracuta
119Group: Applications/System
120Requires: %{name} = %{version}-%{release}
121Requires: dracut
122
123%description -n dracut-ostree
124OSTree support for Dracut.
125
126%description -n dracut-ostree -l pl.UTF-8
127Obsługa OSTree dla Dracuta.
128
129%prep
19103511
JB
130%setup -q -a1 -a2
131rmdir libglnx bsdiff
132%{__mv} libglnx-* libglnx
133%{__mv} bsdiff-* bsdiff
134
135# see autogen.sh
136sed -e 's,$(libglnx_srcpath),'./libglnx,g < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
137sed -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
157rm -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
166rm -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
This page took 0.1207 seconds and 4 git commands to generate.