Bump to 4.0.43 accepted/tizen_unified sandbox/mtools_4.0.43 tizen accepted/tizen/unified/20231227.063253
authorTizenOpenSource <tizenopensrc@samsung.com>
Fri, 22 Dec 2023 01:26:52 +0000 (10:26 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Fri, 22 Dec 2023 01:26:52 +0000 (10:26 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/mtools.manifest [new file with mode: 0644]
packaging/mtools.spec [new file with mode: 0644]

diff --git a/packaging/mtools.manifest b/packaging/mtools.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/mtools.spec b/packaging/mtools.spec
new file mode 100644 (file)
index 0000000..a1da122
--- /dev/null
@@ -0,0 +1,61 @@
+Name:           mtools
+Version:        4.0.43
+Release:        0
+License:        GPL-3.0+
+Summary:        Access Files on an MS-DOS File System
+Url:            http://mtools.linux.lu/
+Group:          System/File Systems
+Source:         %{name}-%{version}.tar.bz2
+Source1001:     mtools.manifest
+BuildRequires:  autoconf
+BuildRequires:  makeinfo
+
+%description
+Mtools allows uncomplicated access to an MS-DOS file system on disk
+without mounting it. It includes commands for working with MS-DOS
+files: mdir, mcd, mcopy, and mformat.
+
+XDF support for OS/2 is also provided.
+
+%package doc
+License:        GPL-3.0+ and GFDL-1.3
+Summary:        Access Files on an MS-DOS File System
+Group:          System/File Systems
+Requires:       %{name} = %{version}
+
+%description doc
+Mtools allows uncomplicated access to an MS-DOS file system on disk
+without mounting it. It includes commands for working with MS-DOS
+files: mdir, mcd, mcopy, and mformat.
+
+XDF support for OS/2 is also provided.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+autoconf --force
+export CC=gcc
+export INSTALL_PROGRAM="install"
+export CPPFLAGS+=" -fPIC"
+export LDFLAGS+=" -pie"
+%configure \
+    --includedir=/usr/src/linux/include
+
+%install
+install -d -m 755 %{buildroot}%{_sysconfdir}
+%make_install
+cp -p mtools.conf %{buildroot}%{_sysconfdir}
+
+rm -rf %{buildroot}%{_mandir}/man?*/f*
+rm -rf %{buildroot}%{_bindir}/f*
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%defattr(-,root,root)
+%config %{_sysconfdir}/mtools.conf
+%{_bindir}/*