]> git.pld-linux.org Git - packages/parted.git/blob - parted.spec
up to 3.6
[packages/parted.git] / parted.spec
1 #
2 # Conditional build:
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)
10 #
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 маніпуляції дисковими розділами
17 Name:           parted
18 Version:        3.6
19 Release:        1
20 License:        GPL v3+
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
25 Source1:        %{name}.m4
26 Patch109:       0109-t6000-dm-Stop-using-private-lvm-root.patch
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
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
43 %endif
44 BuildRequires:  libblkid-devel >= 2.17
45 %if %{with selinux}
46 BuildRequires:  libselinux-devel
47 BuildRequires:  libsepol-devel
48 %endif
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
58 BuildRequires:  xz
59 Requires:       %{name}-libs = %{version}-%{release}
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %description
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.
67
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.
73
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.
79
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.
85
86 %description -l ru.UTF-8
87 GNU Parted - это программа, позволяющая вам создавать, удалять, менять
88 размер, перемещать и копировать разделы на жестких дисках. Это полезно
89 для создания места для размещения новых операционных систем,
90 реорганизации использования диска и копирования данных на новые диски.
91
92 %description -l uk.UTF-8
93 GNU Parted - це програма, яка дозволяє вам створювати, видаляти,
94 змінювати розмір, переміщувати та копіювати розділи на жорстких
95 дисках. Це корисно для створення місця для розміщення нових
96 операційних систем, реорганізації використання диску та копіювання
97 даних на нові диски.
98
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
114 %package devel
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
124
125 %description devel
126 Files required to compile software that uses libparted.
127
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.
131
132 %description devel -l pl.UTF-8
133 Pliki wymagane przy kompilacji programów używających libparted.
134
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
141 com a libparted.
142
143 %package static
144 Summary:        Static libparted library
145 Summary(pl.UTF-8):      Biblioteka statyczna libparted
146 Group:          Development/Libraries
147 Requires:       %{name}-devel = %{version}-%{release}
148
149 %description static
150 Static libparted library.
151
152 %description static -l pl.UTF-8
153 Biblioteka statyczna libparted.
154
155 %prep
156 %setup -q
157 %patch109 -p1
158
159 %patch1001 -p1
160 %patch1002 -p1
161 %{?with_uClibc:%patch1003 -p1}
162 %patch1004 -p1
163 %patch1005 -p1
164 %patch1006 -p1
165 %patch1007 -p1
166
167 %{__rm} po/stamp-po
168
169 %build
170 %{__gettextize}
171 %{__libtoolize}
172 %{__aclocal} -I m4
173 %{__autoconf}
174 %{__autoheader}
175 %{__automake}
176 %configure \
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}
182
183 %{!?with_nls:touch include/libintl.h}
184
185 %{__make}
186
187 %install
188 rm -rf $RPM_BUILD_ROOT
189
190 %{__make} install \
191         DESTDIR=$RPM_BUILD_ROOT
192
193 # obsoleted by pkg-config
194 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libparted*.la
195
196 # missing in sources
197 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_aclocaldir}/parted.m4
198
199 %{?with_nls:%find_lang %{name}}
200
201 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
202
203 %clean
204 rm -rf $RPM_BUILD_ROOT
205
206 %post
207 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
208
209 %postun
210 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
211
212 %post   libs -p /sbin/ldconfig
213 %postun libs -p /sbin/ldconfig
214
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*
223 %if %{with po4a}
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*
227 %endif
228 %{_infodir}/parted.info*
229
230 %if %{without static}
231 %files libs
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
237 %endif
238
239 %files devel
240 %defattr(644,root,root,755)
241 %doc doc/{API,FAT}
242 %if %{without static}
243 %attr(755,root,root) %{_libdir}/libparted.so
244 %attr(755,root,root) %{_libdir}/libparted-fs-resize.so
245 %endif
246 %{_includedir}/parted
247 %{_pkgconfigdir}/libparted.pc
248 %{_pkgconfigdir}/libparted-fs-resize.pc
249 %{_aclocaldir}/parted.m4
250
251 %files static
252 %defattr(644,root,root,755)
253 %{_libdir}/libparted.a
254 %{_libdir}/libparted-fs-resize.a
This page took 0.08933 seconds and 3 git commands to generate.