Bump to parted 3.4 67/269667/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix sandbox/backup/parted_3.4_20221228 sandbox/dh0128.kwak/parted-3.4-20220118 tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063331 accepted/tizen/7.0/unified/hotfix/20221116.111231 accepted/tizen/unified/20220121.001226 submit/tizen/20220120.043926 tizen_7.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 20 Jan 2022 02:45:46 +0000 (11:45 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 20 Jan 2022 02:46:14 +0000 (11:46 +0900)
Change-Id: Ic2b3cf498c44b12bc2bd080259b92836baadcc85

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..e2ba1f3
--- /dev/null
@@ -0,0 +1,77 @@
+%define _sbindir /sbin
+
+Name:           parted
+Version:        3.4
+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