]> git.pld-linux.org Git - packages/parted.git/blob - parted.spec
2ed6f2e535292ad59505cd686e31c41ba107fb10
[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.2
19 Release:        3
20 License:        GPL v3+
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
25 Source1:        %{name}.m4
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
32 Patch7:         static.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-tools >= 0.18
39 BuildRequires:  libblkid-devel >= 2.17
40 %if %{with selinux}
41 BuildRequires:  libselinux-devel
42 BuildRequires:  libsepol-devel
43 %endif
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
53 BuildRequires:  xz
54 Requires:       %{name}-libs = %{version}-%{release}
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
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
61 to new hard disks.
62
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.
68
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.
74
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.
80
81 %description -l ru.UTF-8
82 GNU Parted - это программа, позволяющая вам создавать, удалять, менять
83 размер, перемещать и копировать разделы на жестких дисках. Это полезно
84 для создания места для размещения новых операционных систем,
85 реорганизации использования диска и копирования данных на новые диски.
86
87 %description -l uk.UTF-8
88 GNU Parted - це програма, яка дозволяє вам створювати, видаляти,
89 змінювати розмір, переміщувати та копіювати розділи на жорстких
90 дисках. Це корисно для створення місця для розміщення нових
91 операційних систем, реорганізації використання диску та копіювання
92 даних на нові диски.
93
94 %package libs
95 Summary:        Parted shared library
96 Summary(pl.UTF-8):      Biblioteka współdzielona Parteda
97 Group:          Libraries
98 Requires:       device-mapper >= 1.02.02
99 Requires:       libblkid >= 2.17
100 Suggests:       progsreiserfs >= 0.3.1
101 Conflicts:      parted < 2.3
102
103 %description libs
104 Parted shared library.
105
106 %description libs -l pl.UTF-8
107 Biblioteka współdzielona Parteda.
108
109 %package devel
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
119
120 %description devel
121 Files required to compile software that uses libparted.
122
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.
126
127 %description devel -l pl.UTF-8
128 Pliki wymagane przy kompilacji programów używających libparted.
129
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
136 com a libparted.
137
138 %package static
139 Summary:        Static libparted library
140 Summary(pl.UTF-8):      Biblioteka statyczna libparted
141 Group:          Development/Libraries
142 Requires:       %{name}-devel = %{version}-%{release}
143
144 %description static
145 Static libparted library.
146
147 %description static -l pl.UTF-8
148 Biblioteka statyczna libparted.
149
150 %prep
151 %setup -q
152 %patch1 -p1
153 %patch2 -p1
154 %{?with_uClibc:%patch3 -p1}
155 %patch4 -p1
156 %patch5 -p1
157 %patch6 -p1
158 %patch7 -p1
159
160 %{__rm} po/stamp-po
161
162 %build
163 %{__gettextize}
164 %{__libtoolize}
165 %{__aclocal} -I m4
166 %{__autoconf}
167 %{__autoheader}
168 %{__automake}
169 %configure \
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}
175
176 %{!?with_nls:touch include/libintl.h}
177
178 %{__make}
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182
183 %{__make} install \
184         DESTDIR=$RPM_BUILD_ROOT
185
186 # obsoleted by pkg-config
187 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libparted*.la
188
189 # missing in sources
190 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_aclocaldir}/parted.m4
191
192 %{?with_nls:%find_lang %{name}}
193
194 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
195
196 %clean
197 rm -rf $RPM_BUILD_ROOT
198
199 %post
200 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
201
202 %postun
203 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
204
205 %post   libs -p /sbin/ldconfig
206 %postun libs -p /sbin/ldconfig
207
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*
216 %if %{with po4a}
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*
220 %endif
221 %{_infodir}/parted.info*
222
223 %if %{without static}
224 %files libs
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
230 %endif
231
232 %files devel
233 %defattr(644,root,root,755)
234 %doc doc/{API,FAT}
235 %if %{without static}
236 %attr(755,root,root) %{_libdir}/libparted.so
237 %attr(755,root,root) %{_libdir}/libparted-fs-resize.so
238 %endif
239 %{_includedir}/parted
240 %{_pkgconfigdir}/libparted.pc
241 %{_aclocaldir}/parted.m4
242
243 %files static
244 %defattr(644,root,root,755)
245 %{_libdir}/libparted.a
246 %{_libdir}/libparted-fs-resize.a
This page took 0.068211 seconds and 2 git commands to generate.