3 %bcond_with static # link statically
4 %bcond_without nls # build without NLS
5 %bcond_without readline # build without readline support
6 %bcond_with selinux # SELinux support
7 %bcond_with uClibc # add somewhat nasty uClibc patch, that
8 # # shouldn't cause problems, but who knows...
9 %bcond_without po4a # do not use po4a (for pt_BR manual)
11 Summary: Flexible partitioning tool
12 Summary(es.UTF-8): Herramienta de particionamiento flexible
13 Summary(pl.UTF-8): GNU Parted - narzędzie do zarządzania partycjami na dyskach
14 Summary(pt_BR.UTF-8): Ferramenta flexível de particionamento
15 Summary(ru.UTF-8): Программа GNU манипуляции дисковыми разделами
16 Summary(uk.UTF-8): Програма GNU маніпуляції дисковими розділами
21 Group: Applications/System
22 Source0: https://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
23 # Source0-md5: 93d2d8f22baebc5eb65b85da05a79e4e
24 # restored from git repository
26 Patch109: 0109-t6000-dm-Stop-using-private-lvm-root.patch
28 Patch1001: %{name}-no_wrap.patch
29 Patch1002: %{name}-BIG_FAT_WARNING.patch
30 Patch1003: %{name}-uClibc.patch
31 Patch1004: %{name}-info.patch
32 Patch1005: %{name}-man-pt.patch
33 Patch1006: %{name}-link.patch
34 Patch1007: static.patch
35 URL: http://www.gnu.org/software/parted/
36 BuildRequires: autoconf >= 2.71
37 BuildRequires: automake >= 1:1.11.6
38 BuildRequires: check >= 0.9.3
39 BuildRequires: device-mapper-devel >= 1.02.02
40 BuildRequires: gettext-tools >= 0.18
41 %if %(locale -a | grep -q '^C\.utf8$'; echo $?)
42 BuildRequires: glibc-localedb-all
44 BuildRequires: libblkid-devel >= 2.17
46 BuildRequires: libselinux-devel
47 BuildRequires: libsepol-devel
49 BuildRequires: libtool >= 2:2
50 BuildRequires: libuuid-devel
51 %{?with_static:BuildRequires: libuuid-static}
52 %{?with_readline:BuildRequires: ncurses-devel >= 5.2}
53 BuildRequires: pkgconfig
54 %{?with_po4a:BuildRequires: po4a}
55 %{?with_readline:BuildRequires: readline-devel >= 5.2}
56 BuildRequires: tar >= 1:1.22
57 BuildRequires: texinfo >= 4.2
59 Requires: %{name}-libs = %{version}-%{release}
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 GNU Parted is a program that allows you to create, destroy, resize,
64 move and copy hard disk partitions. This is useful for creating space
65 for new operating systems, reorganising disk usage, and copying data
68 %description -l es.UTF-8
69 GNU Parted es un programa que permite crear, destruir, redimensionar,
70 mover y copiar particiones de discos duros. Es útil para crear espacio
71 para nuevos sistemas operacionales, reorganizar el uso del disco, y
72 copiar datos para nuevos discos duros.
74 %description -l pl.UTF-8
75 GNU Parted jest programem który umożliwia tworzenie, usuwanie, zmianę
76 rozmiaru, przesuwanie i kopiowanie partycji na dyskach. Może być
77 użyteczny przy tworzeniu partycji pod nowy system jak i przy
78 reorganizacji sposobu wykorzystywania dysków, a także ich kopiowaniu.
80 %description -l pt_BR.UTF-8
81 O GNU Parted é um programa que permite criar, destruir, redimensionar,
82 mover e copiar partições de discos rígidos. É útil para criar espaço
83 para novos sistemas operacionais, reorganizar o uso do disco, e copiar
84 dados para novos discos rígidos.
86 %description -l ru.UTF-8
87 GNU Parted - это программа, позволяющая вам создавать, удалять, менять
88 размер, перемещать и копировать разделы на жестких дисках. Это полезно
89 для создания места для размещения новых операционных систем,
90 реорганизации использования диска и копирования данных на новые диски.
92 %description -l uk.UTF-8
93 GNU Parted - це програма, яка дозволяє вам створювати, видаляти,
94 змінювати розмір, переміщувати та копіювати розділи на жорстких
95 дисках. Це корисно для створення місця для розміщення нових
96 операційних систем, реорганізації використання диску та копіювання
100 Summary: Parted shared library
101 Summary(pl.UTF-8): Biblioteka współdzielona Parteda
103 Requires: device-mapper >= 1.02.02
104 Requires: libblkid >= 2.17
105 Suggests: progsreiserfs >= 0.3.1
106 Conflicts: parted < 2.3
109 Parted shared library.
111 %description libs -l pl.UTF-8
112 Biblioteka współdzielona Parteda.
115 Summary: Files required to compile software that uses libparted
116 Summary(es.UTF-8): Archivos de desarrollo para libparted
117 Summary(pl.UTF-8): Pliki wymagane przy kompilacji programów używających libparted
118 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para a libparted
119 Group: Development/Libraries
120 Requires: %{name} = %{version}-%{release}
121 Requires: device-mapper-devel >= 1.02.02
122 Requires: libblkid-devel >= 2.17
123 Requires: libuuid-devel
126 Files required to compile software that uses libparted.
128 %description devel -l es.UTF-8
129 Este paquete incluye los archivos de encabezamiento y bibliotecas
130 necesarios para ligar estáticamente programas con libparted.
132 %description devel -l pl.UTF-8
133 Pliki wymagane przy kompilacji programów używających libparted.
135 %description devel -l pt_BR.UTF-8
136 O GNU Parted é um programa que permite criar, destruir, redimensionar,
137 mover e copiar partições de discos rígidos. É útil para criar espaço
138 para novos sistemas operacionais, reorganizar o uso do disco, e copiar
139 dados para novos discos rígidos. Este pacote inclui os arquivos de
140 cabeçalho e bibliotecas necessários para ligar estaticamente programas
144 Summary: Static libparted library
145 Summary(pl.UTF-8): Biblioteka statyczna libparted
146 Group: Development/Libraries
147 Requires: %{name}-devel = %{version}-%{release}
150 Static libparted library.
152 %description static -l pl.UTF-8
153 Biblioteka statyczna libparted.
161 %{?with_uClibc:%patch1003 -p1}
177 %{!?with_nls:--disable-nls} \
178 --disable-silent-rules \
179 %{?with_selinux:--enable-selinux} \
180 %{?with_static:--without-pic} \
181 --with-readline%{!?with_readline:=no}
183 %{!?with_nls:touch include/libintl.h}
188 rm -rf $RPM_BUILD_ROOT
191 DESTDIR=$RPM_BUILD_ROOT
193 # obsoleted by pkg-config
194 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libparted*.la
197 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_aclocaldir}/parted.m4
199 %{?with_nls:%find_lang %{name}}
201 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
204 rm -rf $RPM_BUILD_ROOT
207 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
210 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
212 %post libs -p /sbin/ldconfig
213 %postun libs -p /sbin/ldconfig
215 %files %{?with_nls:-f %{name}.lang}
216 %defattr(644,root,root,755)
217 %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
218 %lang(ja) %doc doc/USER.jp
219 %attr(755,root,root) %{_sbindir}/parted
220 %attr(755,root,root) %{_sbindir}/partprobe
221 %{_mandir}/man8/parted.8*
222 %{_mandir}/man8/partprobe.8*
224 # too little is translated as of 3.2
225 #%lang(pt_BR) %{_mandir}/pt_BR/man8/parted.8*
226 #%lang(pt_BR) %{_mandir}/pt_BR/man8/partprobe.8*
228 %{_infodir}/parted.info*
230 %if %{without static}
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/libparted.so.*.*.*
234 %attr(755,root,root) %ghost %{_libdir}/libparted.so.2
235 %attr(755,root,root) %{_libdir}/libparted-fs-resize.so.*.*.*
236 %attr(755,root,root) %ghost %{_libdir}/libparted-fs-resize.so.0
240 %defattr(644,root,root,755)
242 %if %{without static}
243 %attr(755,root,root) %{_libdir}/libparted.so
244 %attr(755,root,root) %{_libdir}/libparted-fs-resize.so
246 %{_includedir}/parted
247 %{_pkgconfigdir}/libparted.pc
248 %{_pkgconfigdir}/libparted-fs-resize.pc
249 %{_aclocaldir}/parted.m4
252 %defattr(644,root,root,755)
253 %{_libdir}/libparted.a
254 %{_libdir}/libparted-fs-resize.a