~youscribe/parted/3.1

« back to all changes in this revision

Viewing changes to parted.spec.in

  • Committer: Guilhem Lettron
  • Date: 2012-10-22 14:37:59 UTC
  • Revision ID: guilhem+ubuntu@lettron.fr-20121022143759-m403kecgz13sknvp
3.1 from tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 gperf
 
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
 
 
29
%description
 
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.
 
34
 
 
35
%package devel
 
36
Summary:  Files for developing apps which will manipulate disk partitions
 
37
Group:    Development/Libraries
 
38
Requires: %{name}-%{version}-%{release}
 
39
%description devel
 
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.
 
44
 
 
45
%prep
 
46
%setup -q
 
47
 
 
48
%build
 
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}
 
66
 
 
67
%install
 
68
%{__rm} -rf %{buildroot}
 
69
%{__make} install DESTDIR=%{buildroot}
 
70
 
 
71
%clean
 
72
%{__rm} -rf %{buildroot}
 
73
 
 
74
%post -p /sbin/ldconfig
 
75
 
 
76
%postun -p /sbin/ldconfig
 
77
 
 
78
%files
 
79
%defattr(-,root,root,-)
 
80
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/API doc/FAT
 
81
%{_sbindir}/parted
 
82
%{_sbindir}/partprobe
 
83
%{_mandir}/man8/parted.8.gz
 
84
%{_mandir}/man8/partprobe.8.gz
 
85
%{_libdir}/libparted-*.so.*
 
86
%{_libdir}/libparted-*.so.*
 
87
%{_infodir}/parted.info.gz
 
88
 
 
89
%files devel
 
90
%defattr(-,root,root,-)
 
91
%{_includedir}/parted
 
92
%{_libdir}/libparted.a
 
93
%{_libdir}/libparted.so
 
94
%{_libdir}/pkgconfig/libparted.pc
 
95
 
 
96
%changelog
 
97
* Tue Mar 13 2007 David Cantrell <dcantrell@redhat.com>
 
98
- Updated spec file
 
99
 
 
100
* Mon Mar 13 2000 Fabian Emmes <fab@orlen.de>
 
101
- changed "unset LINGUAS" line
 
102
- reintroduced %build section ;)
 
103
- started changelog