Skip to content

Instantly share code, notes, and snippets.

@foobargem
Created June 11, 2016 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foobargem/f260b896fe030a382b7b18f43633a8a4 to your computer and use it in GitHub Desktop.
Save foobargem/f260b896fe030a382b7b18f43633a8a4 to your computer and use it in GitHub Desktop.
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