]>
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 | |
6 | %bcond_with uClibc # add somewhat nasty uClibc patch, that | |
7 | # # shouldn't cause problems, but who knows... | |
2db42904 | 8 | # |
7b8712c6 | 9 | Summary: Flexible partitioning tool |
5499e3e0 ER |
10 | Summary(es.UTF-8): Herramienta de particionamiento flexible |
11 | Summary(pl.UTF-8): GNU Parted - narzędzie do zarządzania partycjami na dyskach | |
12 | Summary(pt_BR.UTF-8): Ferramenta flexível de particionamento | |
13 | Summary(ru.UTF-8): Программа GNU манипуляции дисковыми разделами | |
14 | Summary(uk.UTF-8): Програма GNU маніпуляції дисковими розділами | |
59324dc8 | 15 | Name: parted |
0b08a5f5 AF |
16 | Version: 3.0 |
17 | Release: 0.1 | |
785de6b7 | 18 | License: GPL v3+ |
edf93f48 | 19 | Group: Applications/System |
88e13367 | 20 | Source0: http://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz |
0b08a5f5 | 21 | # Source0-md5: c415e5c97f86b5ff65a2d925e5a3feb7 |
da101854 JB |
22 | # restored from git repository |
23 | Source1: %{name}.m4 | |
03cb57bc JB |
24 | Patch1: %{name}-no_wrap.patch |
25 | Patch2: %{name}-BIG_FAT_WARNING.patch | |
26 | Patch3: %{name}-uClibc.patch | |
27 | Patch4: %{name}-info.patch | |
8e0cde56 | 28 | Patch5: %{name}-man-pt.patch |
0b08a5f5 | 29 | Patch7: static.patch |
59324dc8 | 30 | URL: http://www.gnu.org/software/parted/ |
8e0cde56 JB |
31 | BuildRequires: autoconf >= 2.63 |
32 | BuildRequires: automake >= 1:1.11 | |
e7df9982 | 33 | BuildRequires: check >= 0.9.3 |
03cb57bc | 34 | BuildRequires: device-mapper-devel >= 1.02.02 |
8e0cde56 JB |
35 | BuildRequires: gettext-devel >= 0.18 |
36 | BuildRequires: libblkid-devel >= 2.17 | |
2ef70736 | 37 | BuildRequires: libtool |
5ee9aff2 JB |
38 | BuildRequires: libuuid-devel |
39 | %{?with_static:BuildRequires: libuuid-static} | |
40 | %{?with_readline:BuildRequires: ncurses-devel >= 5.2} | |
e7df9982 | 41 | BuildRequires: pkgconfig |
539e2ee0 | 42 | BuildRequires: po4a |
624b9e38 | 43 | %{?with_readline:BuildRequires: readline-devel >= 5.2} |
5527f575 | 44 | BuildRequires: tar >= 1:1.22 |
2db42904 | 45 | BuildRequires: texinfo >= 4.2 |
8e0cde56 JB |
46 | BuildRequires: xz |
47 | Requires: %{name}-libs = %{version}-%{release} | |
fa727a9a | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59324dc8 | 49 | |
50 | %description | |
85b9d8aa | 51 | GNU Parted is a program that allows you to create, destroy, resize, |
52 | move and copy hard disk partitions. This is useful for creating space | |
53 | for new operating systems, reorganising disk usage, and copying data | |
54 | to new hard disks. | |
59324dc8 | 55 | |
b4ec86cc | 56 | %description -l es.UTF-8 |
ffaeb4f3 | 57 | GNU Parted es un programa que permite crear, destruir, redimensionar, |
b4ec86cc | 58 | mover y copiar particiones de discos duros. Es útil para crear espacio |
ffaeb4f3 | 59 | para nuevos sistemas operacionales, reorganizar el uso del disco, y |
60 | copiar datos para nuevos discos duros. | |
61 | ||
b4ec86cc JR |
62 | %description -l pl.UTF-8 |
63 | GNU Parted jest programem który umożliwia tworzenie, usuwanie, zmianę | |
64 | rozmiaru, przesuwanie i kopiowanie partycji na dyskach. Może być | |
65 | użyteczny przy tworzeniu partycji pod nowy system jak i przy | |
66 | reorganizacji sposobu wykorzystywania dysków, a także ich kopiowaniu. | |
7b8712c6 | 67 | |
b4ec86cc JR |
68 | %description -l pt_BR.UTF-8 |
69 | O GNU Parted é um programa que permite criar, destruir, redimensionar, | |
70 | mover e copiar partições de discos rígidos. É útil para criar espaço | |
ffaeb4f3 | 71 | para novos sistemas operacionais, reorganizar o uso do disco, e copiar |
b4ec86cc | 72 | dados para novos discos rígidos. |
ffaeb4f3 | 73 | |
b4ec86cc JR |
74 | %description -l ru.UTF-8 |
75 | GNU Parted - это программа, позволяющая вам создавать, удалять, менять | |
76 | размер, перемещать и копировать разделы на жестких дисках. Это полезно | |
77 | для создания места для размещения новых операционных систем, | |
78 | реорганизации использования диска и копирования данных на новые диски. | |
2db42904 | 79 | |
b4ec86cc JR |
80 | %description -l uk.UTF-8 |
81 | GNU Parted - це програма, яка дозволяє вам створювати, видаляти, | |
82 | змінювати розмір, переміщувати та копіювати розділи на жорстких | |
83 | дисках. Це корисно для створення місця для розміщення нових | |
84 | операційних систем, реорганізації використання диску та копіювання | |
85 | даних на нові диски. | |
2db42904 | 86 | |
8e0cde56 JB |
87 | %package libs |
88 | Summary: Parted shared library | |
89 | Summary(pl.UTF-8): Biblioteka współdzielona Parteda | |
90 | Group: Libraries | |
91 | Requires: device-mapper >= 1.02.02 | |
92 | Requires: libblkid >= 2.17 | |
93 | Suggests: progsreiserfs >= 0.3.1 | |
94 | Conflicts: parted < 2.3 | |
95 | ||
96 | %description libs | |
97 | Parted shared library. | |
98 | ||
99 | %description libs -l pl.UTF-8 | |
100 | Biblioteka współdzielona Parteda. | |
101 | ||
59324dc8 | 102 | %package devel |
7b8712c6 | 103 | Summary: Files required to compile software that uses libparted |
5499e3e0 ER |
104 | Summary(es.UTF-8): Archivos de desarrollo para libparted |
105 | Summary(pl.UTF-8): Pliki wymagane przy kompilacji programów używających libparted | |
106 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para a libparted | |
59324dc8 | 107 | Group: Development/Libraries |
4cf7c1a4 | 108 | Requires: %{name} = %{version}-%{release} |
03cb57bc | 109 | Requires: device-mapper-devel >= 1.02.02 |
8e0cde56 | 110 | Requires: libblkid-devel >= 2.17 |
5ee9aff2 | 111 | Requires: libuuid-devel |
59324dc8 | 112 | |
7b8712c6 | 113 | %description devel |
1109cb56 | 114 | Files required to compile software that uses libparted. |
59324dc8 | 115 | |
b4ec86cc | 116 | %description devel -l es.UTF-8 |
ffaeb4f3 | 117 | Este paquete incluye los archivos de encabezamiento y bibliotecas |
b4ec86cc | 118 | necesarios para ligar estáticamente programas con libparted. |
ffaeb4f3 | 119 | |
b4ec86cc JR |
120 | %description devel -l pl.UTF-8 |
121 | Pliki wymagane przy kompilacji programów używających libparted. | |
1109cb56 | 122 | |
b4ec86cc JR |
123 | %description devel -l pt_BR.UTF-8 |
124 | O GNU Parted é um programa que permite criar, destruir, redimensionar, | |
125 | mover e copiar partições de discos rígidos. É útil para criar espaço | |
ffaeb4f3 | 126 | para novos sistemas operacionais, reorganizar o uso do disco, e copiar |
b4ec86cc JR |
127 | dados para novos discos rígidos. Este pacote inclui os arquivos de |
128 | cabeçalho e bibliotecas necessários para ligar estaticamente programas | |
ffaeb4f3 | 129 | com a libparted. |
130 | ||
1109cb56 | 131 | %package static |
ba12c44d | 132 | Summary: Static libparted library |
5499e3e0 | 133 | Summary(pl.UTF-8): Biblioteka statyczna libparted |
1109cb56 | 134 | Group: Development/Libraries |
4cf7c1a4 | 135 | Requires: %{name}-devel = %{version}-%{release} |
1109cb56 | 136 | |
137 | %description static | |
ba12c44d | 138 | Static libparted library. |
1109cb56 | 139 | |
b4ec86cc | 140 | %description static -l pl.UTF-8 |
1109cb56 | 141 | Biblioteka statyczna libparted. |
7b8712c6 | 142 | |
59324dc8 | 143 | %prep |
144 | %setup -q | |
31f5eb56 | 145 | %patch1 -p1 |
03cb57bc JB |
146 | %patch2 -p1 |
147 | %{?with_uClibc:%patch3 -p1} | |
4cf7c1a4 | 148 | %patch4 -p1 |
31b5aad5 | 149 | %patch5 -p1 |
0b08a5f5 | 150 | %patch7 -p1 |
4cf7c1a4 | 151 | |
8e0cde56 | 152 | %{__rm} po/stamp-po |
00459e8c | 153 | |
59324dc8 | 154 | %build |
9db2283c | 155 | %{__gettextize} |
539e2ee0 | 156 | %{__libtoolize} |
da101854 | 157 | %{__aclocal} -I m4 |
966f5081 | 158 | %{__autoconf} |
8e0cde56 | 159 | %{__autoheader} |
966f5081 | 160 | %{__automake} |
59324dc8 | 161 | %configure \ |
5ee9aff2 JB |
162 | %{!?with_readline:--without-readline} \ |
163 | %{?with_readline:--with-readline} \ | |
5ee9aff2 | 164 | %{!?with_nls:--disable-nls} \ |
8e0cde56 JB |
165 | %{?with_static:--without-pic} \ |
166 | --disable-silent-rules | |
908c3d96 | 167 | |
5ee9aff2 | 168 | %{!?with_nls:touch include/libintl.h} |
226ffa1f | 169 | |
4f467cbb | 170 | %{__make} |
59324dc8 | 171 | |
172 | %install | |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
e7e74830 | 175 | %{__make} install \ |
176 | DESTDIR=$RPM_BUILD_ROOT \ | |
177 | aclocaldir=%{_aclocaldir} | |
59324dc8 | 178 | |
539e2ee0 JB |
179 | # not supported yet by am |
180 | install -d $RPM_BUILD_ROOT%{_mandir}/pt_BR/man8 | |
181 | install doc/pt_BR/*.8 $RPM_BUILD_ROOT%{_mandir}/pt_BR/man8 | |
182 | ||
da101854 JB |
183 | # missing in sources |
184 | install -D %{SOURCE1} $RPM_BUILD_ROOT%{_aclocaldir}/parted.m4 | |
185 | ||
5ee9aff2 | 186 | %{?with_nls:%find_lang %{name}} |
59324dc8 | 187 | |
8f30a5e3 | 188 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
0b08a5f5 | 189 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
8f30a5e3 | 190 | |
d859ad23 JB |
191 | %clean |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
2db42904 | 194 | %post |
2db42904 | 195 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
196 | ||
197 | %postun | |
2db42904 | 198 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
8ecfd12e | 199 | |
8e0cde56 JB |
200 | %post libs -p /sbin/ldconfig |
201 | %postun libs -p /sbin/ldconfig | |
202 | ||
5ee9aff2 | 203 | %files %{?with_nls:-f %{name}.lang} |
59324dc8 | 204 | %defattr(644,root,root,755) |
8e0cde56 | 205 | %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO |
03cb57bc | 206 | %lang(ja) %doc doc/USER.jp |
8e0cde56 JB |
207 | %attr(755,root,root) %{_sbindir}/parted |
208 | %attr(755,root,root) %{_sbindir}/partprobe | |
209 | %{_mandir}/man8/parted.8* | |
210 | %{_mandir}/man8/partprobe.8* | |
03cb57bc | 211 | %lang(pt) %{_mandir}/pt_BR/man8/* |
539e2ee0 | 212 | %{_infodir}/parted.info* |
59324dc8 | 213 | |
8e0cde56 JB |
214 | %if %{without static} |
215 | %files libs | |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) %{_libdir}/libparted.so.*.*.* | |
0b08a5f5 | 218 | %attr(755,root,root) %ghost %{_libdir}/libparted.so.1 |
8e0cde56 JB |
219 | %endif |
220 | ||
59324dc8 | 221 | %files devel |
222 | %defattr(644,root,root,755) | |
8e0cde56 | 223 | %doc doc/{API,FAT} |
539e2ee0 | 224 | %{!?with_static:%attr(755,root,root) %{_libdir}/libparted.so} |
5ee9aff2 | 225 | %{_includedir}/parted |
da101854 | 226 | %{_pkgconfigdir}/libparted.pc |
539e2ee0 | 227 | %{_aclocaldir}/parted.m4 |
1109cb56 | 228 | |
229 | %files static | |
85b9d8aa | 230 | %defattr(644,root,root,755) |
539e2ee0 | 231 | %{_libdir}/libparted.a |