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: http://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
23 # Source0-md5: 0247b6a7b314f8edeb618159fa95f9cb
24 # restored from git repository
26 Patch1: %{name}-no_wrap.patch
27 Patch2: %{name}-BIG_FAT_WARNING.patch
28 Patch3: %{name}-uClibc.patch
29 Patch4: %{name}-info.patch
30 Patch5: %{name}-man-pt.patch
31 Patch6: %{name}-link.patch
33 URL: http://www.gnu.org/software/parted/
34 BuildRequires: autoconf >= 2.63
35 BuildRequires: automake >= 1:1.11.6
36 BuildRequires: check >= 0.9.3
37 BuildRequires: device-mapper-devel >= 1.02.02
38 BuildRequires: gettext-devel >= 0.18
39 BuildRequires: libblkid-devel >= 2.17
41 BuildRequires: libselinux-devel
42 BuildRequires: libsepol-devel
44 BuildRequires: libtool
45 BuildRequires: libuuid-devel
46 %{?with_static:BuildRequires: libuuid-static}
47 %{?with_readline:BuildRequires: ncurses-devel >= 5.2}
48 BuildRequires: pkgconfig
49 %{?with_po4a:BuildRequires: po4a}
50 %{?with_readline:BuildRequires: readline-devel >= 5.2}
51 BuildRequires: tar >= 1:1.22
52 BuildRequires: texinfo >= 4.2
54 Requires: %{name}-libs = %{version}-%{release}
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 GNU Parted is a program that allows you to create, destroy, resize,
59 move and copy hard disk partitions. This is useful for creating space
60 for new operating systems, reorganising disk usage, and copying data
63 %description -l es.UTF-8
64 GNU Parted es un programa que permite crear, destruir, redimensionar,
65 mover y copiar particiones de discos duros. Es útil para crear espacio
66 para nuevos sistemas operacionales, reorganizar el uso del disco, y
67 copiar datos para nuevos discos duros.
69 %description -l pl.UTF-8
70 GNU Parted jest programem który umożliwia tworzenie, usuwanie, zmianę
71 rozmiaru, przesuwanie i kopiowanie partycji na dyskach. Może być
72 użyteczny przy tworzeniu partycji pod nowy system jak i przy
73 reorganizacji sposobu wykorzystywania dysków, a także ich kopiowaniu.
75 %description -l pt_BR.UTF-8
76 O GNU Parted é um programa que permite criar, destruir, redimensionar,
77 mover e copiar partições de discos rígidos. É útil para criar espaço
78 para novos sistemas operacionais, reorganizar o uso do disco, e copiar
79 dados para novos discos rígidos.
81 %description -l ru.UTF-8
82 GNU Parted - это программа, позволяющая вам создавать, удалять, менять
83 размер, перемещать и копировать разделы на жестких дисках. Это полезно
84 для создания места для размещения новых операционных систем,
85 реорганизации использования диска и копирования данных на новые диски.
87 %description -l uk.UTF-8
88 GNU Parted - це програма, яка дозволяє вам створювати, видаляти,
89 змінювати розмір, переміщувати та копіювати розділи на жорстких
90 дисках. Це корисно для створення місця для розміщення нових
91 операційних систем, реорганізації використання диску та копіювання
95 Summary: Parted shared library
96 Summary(pl.UTF-8): Biblioteka współdzielona Parteda
98 Requires: device-mapper >= 1.02.02
99 Requires: libblkid >= 2.17
100 Suggests: progsreiserfs >= 0.3.1
101 Conflicts: parted < 2.3
104 Parted shared library.
106 %description libs -l pl.UTF-8
107 Biblioteka współdzielona Parteda.
110 Summary: Files required to compile software that uses libparted
111 Summary(es.UTF-8): Archivos de desarrollo para libparted
112 Summary(pl.UTF-8): Pliki wymagane przy kompilacji programów używających libparted
113 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para a libparted
114 Group: Development/Libraries
115 Requires: %{name} = %{version}-%{release}
116 Requires: device-mapper-devel >= 1.02.02
117 Requires: libblkid-devel >= 2.17
118 Requires: libuuid-devel
121 Files required to compile software that uses libparted.
123 %description devel -l es.UTF-8
124 Este paquete incluye los archivos de encabezamiento y bibliotecas
125 necesarios para ligar estáticamente programas con libparted.
127 %description devel -l pl.UTF-8
128 Pliki wymagane przy kompilacji programów używających libparted.
130 %description devel -l pt_BR.UTF-8
131 O GNU Parted é um programa que permite criar, destruir, redimensionar,
132 mover e copiar partições de discos rígidos. É útil para criar espaço
133 para novos sistemas operacionais, reorganizar o uso do disco, e copiar
134 dados para novos discos rígidos. Este pacote inclui os arquivos de
135 cabeçalho e bibliotecas necessários para ligar estaticamente programas
139 Summary: Static libparted library
140 Summary(pl.UTF-8): Biblioteka statyczna libparted
141 Group: Development/Libraries
142 Requires: %{name}-devel = %{version}-%{release}
145 Static libparted library.
147 %description static -l pl.UTF-8
148 Biblioteka statyczna libparted.
154 %{?with_uClibc:%patch3 -p1}
170 %{!?with_nls:--disable-nls} \
171 --disable-silent-rules \
172 %{?with_selinux:--enable-selinux} \
173 %{?with_static:--without-pic} \
174 --with-readline%{!?with_readline:=no}
176 %{!?with_nls:touch include/libintl.h}
181 rm -rf $RPM_BUILD_ROOT
184 DESTDIR=$RPM_BUILD_ROOT
186 # obsoleted by pkg-config
187 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libparted*.la
190 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_aclocaldir}/parted.m4
192 %{?with_nls:%find_lang %{name}}
194 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
197 rm -rf $RPM_BUILD_ROOT
200 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
203 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
205 %post libs -p /sbin/ldconfig
206 %postun libs -p /sbin/ldconfig
208 %files %{?with_nls:-f %{name}.lang}
209 %defattr(644,root,root,755)
210 %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
211 %lang(ja) %doc doc/USER.jp
212 %attr(755,root,root) %{_sbindir}/parted
213 %attr(755,root,root) %{_sbindir}/partprobe
214 %{_mandir}/man8/parted.8*
215 %{_mandir}/man8/partprobe.8*
217 # too little is translated as of 3.2
218 #%lang(pt_BR) %{_mandir}/pt_BR/man8/parted.8*
219 #%lang(pt_BR) %{_mandir}/pt_BR/man8/partprobe.8*
221 %{_infodir}/parted.info*
223 %if %{without static}
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libparted.so.*.*.*
227 %attr(755,root,root) %ghost %{_libdir}/libparted.so.2
228 %attr(755,root,root) %{_libdir}/libparted-fs-resize.so.*.*.*
229 %attr(755,root,root) %ghost %{_libdir}/libparted-fs-resize.so.0
233 %defattr(644,root,root,755)
235 %if %{without static}
236 %attr(755,root,root) %{_libdir}/libparted.so
237 %attr(755,root,root) %{_libdir}/libparted-fs-resize.so
239 %{_includedir}/parted
240 %{_pkgconfigdir}/libparted.pc
241 %{_aclocaldir}/parted.m4
244 %defattr(644,root,root,755)
245 %{_libdir}/libparted.a
246 %{_libdir}/libparted-fs-resize.a