~ubuntu-branches/ubuntu/intrepid/parted/intrepid

« back to all changes in this revision

Viewing changes to parted.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-24 14:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624143105-rd7yw67a9qnvh51i
Tags: 1.8.8.git.2008.03.24-7ubuntu1
* Resynchronise with Debian (LP: #237568). Remaining changes:
  - swap-uuid.dpatch: Create UUIDs on new swap partitions.
  - gptsync.dpatch: On Intel Mac systems, write a synced MBR rather than a
    protective MBR.
  - Add -fno-stack-protector on sparc.
  - sparc-new-label.dpatch: Fix sparc disk label generation. This is
    required for LDOM and parallel installations with Solaris 10.
  - loop-partitions.dpatch: Loop devices can only have one partition, so
    don't generate device names such as "/dev/loop0p1".
  - unpartitioned-disks.dpatch: Don't try to call BLKPG ioctls on
    unpartitionable disks (only implemented for loop devices at the
    moment), as they will always fail.
  - When building with gcc-4.3, add -Wno-array-bounds to CFLAGS.
  - Cell partition tables are misdetected as pc98, so disable pc98 support
    on powerpc.
  - array-bounds.dpatch: Backport patch from git to allow building with
    gcc-4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%define name    @PACKAGE@
2
 
%define ver     @VERSION@
3
 
%define rel     1
4
 
%define prefix  /usr
5
 
%define sbindir /sbin
6
 
%define mandir  /usr/share/man
7
 
%define aclocaldir      /usr/share/aclocal
8
 
 
9
 
 
10
 
Summary         : flexible partitioning tool
11
 
Name            : %{name}
12
 
Version         : %{ver}
13
 
Release         : %{rel}
14
 
Source          : ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{ver}.tar.gz
15
 
Buildroot       : %{_tmppath}/%{name}-root
16
 
Packager        : Fabian Emmes <fab@orlen.de>
17
 
Copyright       : GPL
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
 
3
%define use_selinux 0
 
4
%define use_sepol 0
 
5
 
 
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)
 
8
 
 
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)
 
12
 
 
13
Summary:   The GNU disk partition manipulation program
 
14
Name:      @PACKAGE@
 
15
Version:   @VERSION@
 
16
Release:   1
 
17
Source:    ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
 
18
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
19
License:   GPL
 
20
Group:     Applications/System
 
21
 
 
22
BuildRequires: e2fsprogs-devel readline-devel ncurses-devel
 
23
BuildRequires: automake libtool gettext-devel texinfo pkgconfig
 
24
 
 
25
BuildRequires: device-mapper-devel, libselinux-devel libsepol-devel
 
26
 
 
27
Prereq: /sbin/install-info
 
28
 
21
29
%description
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.
26
 
 
 
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
 
33
to new hard disks.
27
34
 
28
35
%package devel
29
 
Summary         : files required to compile software that uses libparted
30
 
Group           : Development/System
31
 
Requires        : e2fsprogs
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}
33
39
%description devel
34
 
This package includes the header files and libraries needed to
35
 
statically link software with libparted.
36
 
 
 
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.
37
44
 
38
45
%prep
39
 
%setup
 
46
%setup -q
40
47
 
41
48
%build
42
 
if [ -n "$LINGUAS" ]; then unset LINGUAS; fi
43
 
%configure --prefix=%{prefix} --sbindir=%{sbindir}
44
 
make
45
 
 
 
49
%configure \
 
50
   --enable-shared \
 
51
%if "%{use_devmapper}" == "1"
 
52
   --enable-device-mapper \
 
53
%else
 
54
   --disable-devmapper \
 
55
%endif
 
56
%if "%{use_selinux}" == "1" && "%{use_sepol}" == "1"
 
57
   --enable-selinux \
 
58
%else
 
59
   --disable-selinux \
 
60
%endif
 
61
   --enable-part-static \
 
62
   --enable-pc98=no \
 
63
   --enable-Werror=no \
 
64
   --disable-dynamic-loading
 
65
%{__make} %{?_smp_mflags}
46
66
 
47
67
%install
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}
51
70
 
 
71
%find_lang %{name}
52
72
 
53
73
%clean
54
 
rm -rf "$RPM_BUILD_ROOT"
55
 
 
56
 
 
57
 
%files
58
 
%defattr(-,root,root)
59
 
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/COPYING.DOC doc/API doc/USER doc/FAT
60
 
%{prefix}/share/locale/*/*/*
61
 
%{sbindir}/*
62
 
%{mandir}/*/*
63
 
%{prefix}/lib/*.so*
64
 
 
 
74
%{__rm} -rf %{buildroot}
 
75
 
 
76
%post -p /sbin/ldconfig
 
77
 
 
78
%postun -p /sbin/ldconfig
 
79
 
 
80
%files -f %{name}.lang
 
81
%defattr(-,root,root,-)
 
82
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/API doc/FAT
 
83
%{_sbindir}/parted
 
84
%{_sbindir}/partprobe
 
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
65
90
 
66
91
%files devel
67
 
%defattr(-,root,root)
68
 
%{prefix}/include/*
69
 
%{aclocaldir}/*
70
 
%{prefix}/lib/*.a*
71
 
%{prefix}/lib/*.la*
 
92
%defattr(-,root,root,-)
 
93
%{_includedir}/parted
 
94
%{_libdir}/libparted.a
 
95
%{_libdir}/libparted.so
 
96
%{_libdir}/pkgconfig/libparted.pc
72
97
 
73
98
%changelog
 
99
* Tue Mar 13 2007 David Cantrell <dcantrell@redhat.com>
 
100
- Updated spec file
 
101
 
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
78