]>
Commit | Line | Data |
---|---|---|
d859ad23 JB |
1 | # |
2 | # Conditional build: | |
5ee9aff2 JB |
3 | %bcond_with static # link statically |
4 | %bcond_without nls # build without NLS | |
5 | %bcond_without readline # build without readline support | |
ee13b4c1 | 6 | %bcond_with selinux # SELinux support |
5ee9aff2 JB |
7 | %bcond_with uClibc # add somewhat nasty uClibc patch, that |
8 | # # shouldn't cause problems, but who knows... | |
36d47f1d | 9 | %bcond_without po4a # do not use po4a (for pt_BR manual) |
2db42904 | 10 | # |
7b8712c6 | 11 | Summary: Flexible partitioning tool |
5499e3e0 ER |
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 маніпуляції дисковими розділами | |
59324dc8 | 17 | Name: parted |
d07e31cd | 18 | Version: 3.5 |
9b28765b | 19 | Release: 1 |
785de6b7 | 20 | License: GPL v3+ |
edf93f48 | 21 | Group: Applications/System |
9b28765b | 22 | Source0: https://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz |
d07e31cd | 23 | # Source0-md5: 336fde60786d5855b3876ee49ef1e6b2 |
da101854 JB |
24 | # restored from git repository |
25 | Source1: %{name}.m4 | |
74a816df | 26 | Patch109: 0109-t6000-dm-Stop-using-private-lvm-root.patch |
c886eb9d AM |
27 | |
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 | |
59324dc8 | 35 | URL: http://www.gnu.org/software/parted/ |
d07e31cd | 36 | BuildRequires: autoconf >= 2.71 |
fb18c83f | 37 | BuildRequires: automake >= 1:1.11.6 |
e7df9982 | 38 | BuildRequires: check >= 0.9.3 |
03cb57bc | 39 | BuildRequires: device-mapper-devel >= 1.02.02 |
d5ae9520 | 40 | BuildRequires: gettext-tools >= 0.18 |
9b28765b JB |
41 | %if %(locale -a | grep -q '^C\.utf8$'; echo $?) |
42 | BuildRequires: glibc-localedb-all | |
43 | %endif | |
8e0cde56 | 44 | BuildRequires: libblkid-devel >= 2.17 |
ee13b4c1 JB |
45 | %if %{with selinux} |
46 | BuildRequires: libselinux-devel | |
47 | BuildRequires: libsepol-devel | |
48 | %endif | |
9b28765b | 49 | BuildRequires: libtool >= 2:2 |
5ee9aff2 JB |
50 | BuildRequires: libuuid-devel |
51 | %{?with_static:BuildRequires: libuuid-static} | |
52 | %{?with_readline:BuildRequires: ncurses-devel >= 5.2} | |
e7df9982 | 53 | BuildRequires: pkgconfig |
164e90be | 54 | %{?with_po4a:BuildRequires: po4a} |
624b9e38 | 55 | %{?with_readline:BuildRequires: readline-devel >= 5.2} |
5527f575 | 56 | BuildRequires: tar >= 1:1.22 |
2db42904 | 57 | BuildRequires: texinfo >= 4.2 |
8e0cde56 JB |
58 | BuildRequires: xz |
59 | Requires: %{name}-libs = %{version}-%{release} | |
fa727a9a | 60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59324dc8 | 61 | |
62 | %description | |
85b9d8aa | 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 | |
66 | to new hard disks. | |
59324dc8 | 67 | |
b4ec86cc | 68 | %description -l es.UTF-8 |
ffaeb4f3 | 69 | GNU Parted es un programa que permite crear, destruir, redimensionar, |
b4ec86cc | 70 | mover y copiar particiones de discos duros. Es útil para crear espacio |
ffaeb4f3 | 71 | para nuevos sistemas operacionales, reorganizar el uso del disco, y |
72 | copiar datos para nuevos discos duros. | |
73 | ||
b4ec86cc JR |
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. | |
7b8712c6 | 79 | |
b4ec86cc JR |
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 | |
ffaeb4f3 | 83 | para novos sistemas operacionais, reorganizar o uso do disco, e copiar |
b4ec86cc | 84 | dados para novos discos rígidos. |
ffaeb4f3 | 85 | |
b4ec86cc JR |
86 | %description -l ru.UTF-8 |
87 | GNU Parted - это программа, позволяющая вам создавать, удалять, менять | |
88 | размер, перемещать и копировать разделы на жестких дисках. Это полезно | |
89 | для создания места для размещения новых операционных систем, | |
90 | реорганизации использования диска и копирования данных на новые диски. | |
2db42904 | 91 | |
b4ec86cc JR |
92 | %description -l uk.UTF-8 |
93 | GNU Parted - це програма, яка дозволяє вам створювати, видаляти, | |
94 | змінювати розмір, переміщувати та копіювати розділи на жорстких | |
95 | дисках. Це корисно для створення місця для розміщення нових | |
96 | операційних систем, реорганізації використання диску та копіювання | |
97 | даних на нові диски. | |
2db42904 | 98 | |
8e0cde56 JB |
99 | %package libs |
100 | Summary: Parted shared library | |
101 | Summary(pl.UTF-8): Biblioteka współdzielona Parteda | |
102 | Group: Libraries | |
103 | Requires: device-mapper >= 1.02.02 | |
104 | Requires: libblkid >= 2.17 | |
105 | Suggests: progsreiserfs >= 0.3.1 | |
106 | Conflicts: parted < 2.3 | |
107 | ||
108 | %description libs | |
109 | Parted shared library. | |
110 | ||
111 | %description libs -l pl.UTF-8 | |
112 | Biblioteka współdzielona Parteda. | |
113 | ||
59324dc8 | 114 | %package devel |
7b8712c6 | 115 | Summary: Files required to compile software that uses libparted |
5499e3e0 ER |
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 | |
59324dc8 | 119 | Group: Development/Libraries |
4cf7c1a4 | 120 | Requires: %{name} = %{version}-%{release} |
03cb57bc | 121 | Requires: device-mapper-devel >= 1.02.02 |
8e0cde56 | 122 | Requires: libblkid-devel >= 2.17 |
5ee9aff2 | 123 | Requires: libuuid-devel |
59324dc8 | 124 | |
7b8712c6 | 125 | %description devel |
1109cb56 | 126 | Files required to compile software that uses libparted. |
59324dc8 | 127 | |
b4ec86cc | 128 | %description devel -l es.UTF-8 |
ffaeb4f3 | 129 | Este paquete incluye los archivos de encabezamiento y bibliotecas |
b4ec86cc | 130 | necesarios para ligar estáticamente programas con libparted. |
ffaeb4f3 | 131 | |
b4ec86cc JR |
132 | %description devel -l pl.UTF-8 |
133 | Pliki wymagane przy kompilacji programów używających libparted. | |
1109cb56 | 134 | |
b4ec86cc JR |
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 | |
ffaeb4f3 | 138 | para novos sistemas operacionais, reorganizar o uso do disco, e copiar |
b4ec86cc JR |
139 | dados para novos discos rígidos. Este pacote inclui os arquivos de |
140 | cabeçalho e bibliotecas necessários para ligar estaticamente programas | |
ffaeb4f3 | 141 | com a libparted. |
142 | ||
1109cb56 | 143 | %package static |
ba12c44d | 144 | Summary: Static libparted library |
5499e3e0 | 145 | Summary(pl.UTF-8): Biblioteka statyczna libparted |
1109cb56 | 146 | Group: Development/Libraries |
4cf7c1a4 | 147 | Requires: %{name}-devel = %{version}-%{release} |
1109cb56 | 148 | |
149 | %description static | |
ba12c44d | 150 | Static libparted library. |
1109cb56 | 151 | |
b4ec86cc | 152 | %description static -l pl.UTF-8 |
1109cb56 | 153 | Biblioteka statyczna libparted. |
7b8712c6 | 154 | |
59324dc8 | 155 | %prep |
156 | %setup -q | |
74a816df | 157 | %patch109 -p1 |
c886eb9d AM |
158 | |
159 | %patch1001 -p1 | |
160 | %patch1002 -p1 | |
161 | %{?with_uClibc:%patch1003 -p1} | |
162 | %patch1004 -p1 | |
163 | %patch1005 -p1 | |
164 | %patch1006 -p1 | |
165 | %patch1007 -p1 | |
4cf7c1a4 | 166 | |
8e0cde56 | 167 | %{__rm} po/stamp-po |
00459e8c | 168 | |
59324dc8 | 169 | %build |
9db2283c | 170 | %{__gettextize} |
539e2ee0 | 171 | %{__libtoolize} |
da101854 | 172 | %{__aclocal} -I m4 |
966f5081 | 173 | %{__autoconf} |
8e0cde56 | 174 | %{__autoheader} |
966f5081 | 175 | %{__automake} |
59324dc8 | 176 | %configure \ |
5ee9aff2 | 177 | %{!?with_nls:--disable-nls} \ |
ee13b4c1 JB |
178 | --disable-silent-rules \ |
179 | %{?with_selinux:--enable-selinux} \ | |
8e0cde56 | 180 | %{?with_static:--without-pic} \ |
ee13b4c1 | 181 | --with-readline%{!?with_readline:=no} |
908c3d96 | 182 | |
5ee9aff2 | 183 | %{!?with_nls:touch include/libintl.h} |
226ffa1f | 184 | |
4f467cbb | 185 | %{__make} |
59324dc8 | 186 | |
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
e7e74830 | 190 | %{__make} install \ |
fb18c83f | 191 | DESTDIR=$RPM_BUILD_ROOT |
59324dc8 | 192 | |
fb18c83f JB |
193 | # obsoleted by pkg-config |
194 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libparted*.la | |
539e2ee0 | 195 | |
da101854 JB |
196 | # missing in sources |
197 | install -D %{SOURCE1} $RPM_BUILD_ROOT%{_aclocaldir}/parted.m4 | |
198 | ||
5ee9aff2 | 199 | %{?with_nls:%find_lang %{name}} |
59324dc8 | 200 | |
fb18c83f | 201 | %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir |
8f30a5e3 | 202 | |
d859ad23 JB |
203 | %clean |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
2db42904 | 206 | %post |
2db42904 | 207 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
208 | ||
209 | %postun | |
2db42904 | 210 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
8ecfd12e | 211 | |
8e0cde56 JB |
212 | %post libs -p /sbin/ldconfig |
213 | %postun libs -p /sbin/ldconfig | |
214 | ||
5ee9aff2 | 215 | %files %{?with_nls:-f %{name}.lang} |
59324dc8 | 216 | %defattr(644,root,root,755) |
8e0cde56 | 217 | %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO |
03cb57bc | 218 | %lang(ja) %doc doc/USER.jp |
8e0cde56 JB |
219 | %attr(755,root,root) %{_sbindir}/parted |
220 | %attr(755,root,root) %{_sbindir}/partprobe | |
221 | %{_mandir}/man8/parted.8* | |
222 | %{_mandir}/man8/partprobe.8* | |
164e90be | 223 | %if %{with po4a} |
fb18c83f JB |
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* | |
164e90be | 227 | %endif |
539e2ee0 | 228 | %{_infodir}/parted.info* |
59324dc8 | 229 | |
8e0cde56 JB |
230 | %if %{without static} |
231 | %files libs | |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/libparted.so.*.*.* | |
ee13b4c1 JB |
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 | |
8e0cde56 JB |
237 | %endif |
238 | ||
59324dc8 | 239 | %files devel |
240 | %defattr(644,root,root,755) | |
8e0cde56 | 241 | %doc doc/{API,FAT} |
ee13b4c1 JB |
242 | %if %{without static} |
243 | %attr(755,root,root) %{_libdir}/libparted.so | |
244 | %attr(755,root,root) %{_libdir}/libparted-fs-resize.so | |
245 | %endif | |
5ee9aff2 | 246 | %{_includedir}/parted |
da101854 | 247 | %{_pkgconfigdir}/libparted.pc |
74a816df | 248 | %{_pkgconfigdir}/libparted-fs-resize.pc |
539e2ee0 | 249 | %{_aclocaldir}/parted.m4 |
1109cb56 | 250 | |
251 | %files static | |
85b9d8aa | 252 | %defattr(644,root,root,755) |
539e2ee0 | 253 | %{_libdir}/libparted.a |
ee13b4c1 | 254 | %{_libdir}/libparted-fs-resize.a |