Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37559967
en ru br
ALT Linux repos
S:3.4-alt1
5.0: 1.8.8-alt3
4.1: 1.8.8-alt2.M41.1
4.0: 1.8.7-alt3
3.0: 1.6.24-alt1

Group :: System/Configuration/Hardware
RPM: parted

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable static

Name: parted
Version: 1.6.24
Release: alt1

Summary: Flexible partitioning tool
License: GPL
Group: System/Configuration/Hardware

Url: http://www.gnu.org/software/%name
Source: ftp://ftp.gnu.org/gnu/%name/%name-%version.tar.gz
Patch: %name-1.6.24-alt-gcc-err.patch

Requires: lib%name = %version-%release
Requires(post): %install_info
Requires(preun): %uninstall_info

# Automatically added by buildreq on Wed Dec 08 2004

BuildRequires: gcc-c++ libe2fs-devel libncurses-devel libreadline-devel libstdc++-devel libtinfo-devel

%package -n lib%name
Summary: Shared library for flexible partitioning tool
Group: System/Libraries

%description
GNU Parted is a program that allows you to create, destroy,
resize, move and copy hard disk partitions. This is useful for
creating space for new operating systems, reorganising disk
usage, and copying data to new hard disks.

%description -n lib%name
This package includes the shared library needed to
run lib%name-based software.

%package -n lib%name-devel
Summary: Files required to compile software that uses lib%name
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version
Obsoletes: %name-devel

%description -n lib%name-devel
This package includes the header files.

%package -n lib%name-devel-static
Summary: Files required to compile statically linked software that uses lib%name
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel-static = %version
Obsoletes: %name-devel-static

%description -n lib%name-devel-static
This package includes the libraries needed to
statically link software with lib%name.

%prep
%setup -q
%patch -p1

%build
%configure \
   %{subst_enable static} \
   --enable-dynamic-loading

%make_build

%install
%makeinstall

# remove none-packaged files

%__rm -f %buildroot%_infodir/dir

%find_lang --with-man --output=%name.lang %name partbrobe

%post
%install_info %name.info
%postun
%uninstall_info %name.info

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*
%_datadir/aclocal/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%files -f %name.lang
%_sbindir/*
%_infodir/*.info*
%_mandir/man8/*
%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin