6
%define mandir /usr/share/man
7
%define aclocaldir /usr/share/aclocal
10
Summary : flexible partitioning tool
14
Source : ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{ver}.tar.gz
15
Buildroot : %{_tmppath}/%{name}-root
16
Packager : Fabian Emmes <fab@orlen.de>
18
Group : Applications/System
19
Requires : e2fsprogs, readline
20
BuildPrereq : e2fsprogs-devel, readline-devel
1
# Default to disabling device-mapper and SELinux
2
%define use_devmapper 0
6
# Enable device-mapper support if we find devmapper
7
%define use_devmapper %(pkg-config --libs devmapper >/dev/null 2>&1; [ $? -eq 0 ] && echo 1)
9
# Enable SELinux if we find libselinux and libsepol
10
%define use_selinux %([ -r %{_libdir}/libselinux.a ] && echo 1)
11
%define use_sepol %([ -r %{_libdir}/libsepol.so ] && echo 1)
13
Summary: The GNU disk partition manipulation program
17
Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
18
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
Group: Applications/System
22
BuildRequires: e2fsprogs-devel readline-devel ncurses-devel
23
BuildRequires: automake libtool gettext-devel texinfo pkgconfig
25
BuildRequires: device-mapper-devel, libselinux-devel libsepol-devel
27
Prereq: /sbin/install-info
22
GNU Parted is a program that allows you to create, destroy,
23
resize, move and copy hard disk partitions. This is useful for
24
creating space for new operating systems, reorganising disk
25
usage, and copying data to new hard disks.
30
The GNU Parted program allows you to create, destroy, resize, move,
31
and copy hard disk partitions. Parted can be used for creating space
32
for new operating systems, reorganizing disk usage, and copying data
29
Summary : files required to compile software that uses libparted
30
Group : Development/System
32
BuildPrereq : e2fsprogs-devel, readline-devel
36
Summary: Files for developing apps which will manipulate disk partitions
37
Group: Development/Libraries
38
Requires: %{name}-%{version}-%{release}
34
This package includes the header files and libraries needed to
35
statically link software with libparted.
40
The GNU Parted library is a set of routines for hard disk partition
41
manipulation. If you want to develop programs that manipulate disk
42
partitions and filesystems using the routines provided by the GNU
43
Parted library, you need to install this package.
42
if [ -n "$LINGUAS" ]; then unset LINGUAS; fi
43
%configure --prefix=%{prefix} --sbindir=%{sbindir}
51
%if "%{use_devmapper}" == "1"
52
--enable-device-mapper \
56
%if "%{use_selinux}" == "1" && "%{use_sepol}" == "1"
61
--enable-part-static \
64
--disable-dynamic-loading
65
%{__make} %{?_smp_mflags}
48
rm -rf "$RPM_BUILD_ROOT"
49
make DESTDIR="$RPM_BUILD_ROOT" install
50
strip "${RPM_BUILD_ROOT}%{sbindir}"/parted
68
%{__rm} -rf %{buildroot}
69
%{__make} install DESTDIR=%{buildroot}
54
rm -rf "$RPM_BUILD_ROOT"
59
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/COPYING.DOC doc/API doc/USER doc/FAT
60
%{prefix}/share/locale/*/*/*
74
%{__rm} -rf %{buildroot}
76
%post -p /sbin/ldconfig
78
%postun -p /sbin/ldconfig
80
%files -f %{name}.lang
81
%defattr(-,root,root,-)
82
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/API doc/FAT
85
%{_mandir}/man8/parted.8.gz
86
%{_mandir}/man8/partprobe.8.gz
87
%{_libdir}/libparted-*.so.*
88
%{_libdir}/libparted-*.so.*
89
%{_infodir}/parted.info.gz
92
%defattr(-,root,root,-)
94
%{_libdir}/libparted.a
95
%{_libdir}/libparted.so
96
%{_libdir}/pkgconfig/libparted.pc
99
* Tue Mar 13 2007 David Cantrell <dcantrell@redhat.com>
74
102
* Mon Mar 13 2000 Fabian Emmes <fab@orlen.de>
75
103
- changed "unset LINGUAS" line
76
104
- reintroduced %build section ;)
77
105
- started changelog