ALT Linux repositórios
Group :: Sistema/Configurações/Hadware
RPM: parted
Main Changelog Spec Patches Sources Download Gear Bugs e 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
…
Todas as alterações você pod ver aqui
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
…
Todas as alterações você pod ver aqui