Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
parted.spec for RPM packaging
%global _enable_debug_package 0
%global debug_package %{nil}
%define dist .el7.nhnent
%define _prefix /opt/parted
Name: parted
Version: 3.2
Release: 1%{?dist}
Summary: The GNU disk partition manipulation program
License: GPLv3+
URL: http://www.gnu.org/software/parted
Source0: parted-3.2.tar.xz
%description
The GNU Parted program allows you to create, destroy, resize, move,
and copy hard disk partitions. Parted can be used for creating space
for new operating systems, reorganizing disk usage, and copying data
to new hard disks.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_prefix}
#%{_datadir}/*
#%{_includedir}/*
#%{_libdir}/*
#%{_sbindir}/*
%changelog
* Fri Jun 10 2016 makerpm
- build and packaging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment