Bump to 3.6 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_riscv sandbox/parted_3.6 tizen accepted/tizen/unified/20231227.063256 accepted/tizen/unified/dev/20240620.011010 accepted/tizen/unified/riscv/20231227.105101
authorTizenOpenSource <tizenopensrc@samsung.com>
Fri, 22 Dec 2023 04:08:16 +0000 (13:08 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Fri, 22 Dec 2023 04:08:16 +0000 (13:08 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/parted.manifest [new file with mode: 0644]
packaging/parted.spec [new file with mode: 0644]

diff --git a/packaging/parted.manifest b/packaging/parted.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/parted.spec b/packaging/parted.spec
new file mode 100644 (file)
index 0000000..144bc54
--- /dev/null
@@ -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