From a763a5d5bf8a74fb6efbdcd2557a89d2ebbce06d Mon Sep 17 00:00:00 2001 From: TizenOpenSource Date: Fri, 22 Dec 2023 13:08:16 +0900 Subject: [PATCH] Bump to 3.6 Signed-off-by: TizenOpenSource --- packaging/parted.manifest | 5 +++ packaging/parted.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 packaging/parted.manifest create mode 100644 packaging/parted.spec diff --git a/packaging/parted.manifest b/packaging/parted.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/parted.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/parted.spec b/packaging/parted.spec new file mode 100644 index 0000000..144bc54 --- /dev/null +++ b/packaging/parted.spec @@ -0,0 +1,77 @@ +%define _sbindir /sbin + +Name: parted +Version: 3.6 +Release: 1 +License: GPL-3.0+ +Summary: The GNU disk partition manipulation program +Url: http://www.gnu.org/software/parted +Group: Applications/System + +Source0: %{name}-%{version}.tar.gz +Source1001: parted.manifest + +BuildRequires: gettext-devel +BuildRequires: libtool +BuildRequires: libuuid-devel +BuildRequires: ncurses-devel +BuildRequires: readline-devel +BuildRequires: texinfo +BuildRequires: pkgconfig(ext2fs) + +%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. + +%package devel +Summary: Files for developing apps which will manipulate disk partitions +Group: Development/Libraries +Requires: %{name} = %{version} +Requires: pkgconfig + +%description devel +The GNU Parted library is a set of routines for hard disk partition +manipulation. If you want to develop programs that manipulate disk +partitions and filesystems using the routines provided by the GNU +Parted library, you need to install this package. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +export CFLAGS+=" -fPIC" +export LDFLAGS+=" -pie" +%configure --disable-static --disable-device-mapper --with-readline --with-libdir=%{_libdir} --exec-prefix=/usr +make %{?_smp_mflags} + +%install +%make_install + +%find_lang %{name} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%lang_package + +%docs_package + +%files +%manifest %{name}.manifest +%license COPYING +%{_sbindir}/parted +%{_sbindir}/partprobe +%{_libdir}/libparted*.so.* + +%files devel +%manifest %{name}.manifest +%{_includedir}/parted +%{_libdir}/libparted.so +%{_libdir}/libparted-fs-resize.so +%{_libdir}/pkgconfig/libparted.pc +%{_libdir}/pkgconfig/libparted-fs-resize.pc -- 2.7.4