hfstools/hfstools.spec

85 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: hfstools
Version: 540.1
Release: 1mamba
Summary: Tools to initialize and repair HFS and HFS+ filesystems
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://opensource.apple.com
#Source: http://opensource.apple.com/tarballs/diskdev_cmds/diskdev_cmds-%{version}.tar.gz
Source: http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/hfsprogs_%{version}.linux3.orig.tar.gz
Source1: https://src.fedoraproject.org/rpms/hfsplus-tools/raw/master/f/apsl-2.0.txt
Patch0: hfstools-540.1-sysctl.patch
Patch1: hfstools-540.1-noblocks.patch
Patch2: hfstools-540.1-learn-to-stdarg.patch
License: APSL 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libopenssl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Tools to initialize and repair HFS and HFS+ filesystems.
%debug_package
%prep
%setup -q -n diskdev_cmds-%{version}.linux3
cp %{SOURCE1} ./apsl-2.0.txt
#-a1
#cat debian/patches/*.patch|patch -p1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%make
#-f Makefile.lnx
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -D -m 0755 newfs_hfs.tproj/newfs_hfs %{buildroot}/sbin/mkfs.hfsplus
install -D -m 0644 newfs_hfs.tproj/newfs_hfs.8 %{buildroot}%{_mandir}/man8/mkfs.hfsplus.8
install -D -m 0755 fsck_hfs.tproj/fsck_hfs %{buildroot}/sbin/fsck.hfsplus
install -D -m 0644 fsck_hfs.tproj/fsck_hfs.8 %{buildroot}%{_mandir}/man8/fsck.hfsplus.8
ln -s mkfs.hfsplus %{buildroot}/sbin/mkfs.hfs
ln -s fsck.hfsplus %{buildroot}/sbin/fsck.hfs
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
/sbin/mkfs.hfsplus
/sbin/fsck.hfsplus
/sbin/mkfs.hfs
/sbin/fsck.hfs
%{_mandir}/man8/mkfs.hfsplus.8*
%{_mandir}/man8/fsck.hfsplus.8*
%doc apsl-2.0.txt
%changelog
* Mon Dec 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 540.1-1mamba
- update to 540.1
* Sun Jun 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 332.25-1mamba
- update to 332.25
* Sat Feb 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 332.14-5mamba
- added a patch to fix build using binutils gold linker
* Thu Apr 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 332.14-4mamba
- fsck.hfs: added patch to support -a switch for compatibility with linux fsck
* Thu Nov 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 332.14-3mamba
- rebuilt with openssl 1.0.0
* Fri Oct 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 332.14-2mamba
- rebuilt with openssl 0.9.8
* Wed May 24 2006 Silvan Calarco <silvan.calarco@qilinux.it> 332.14-1qilnx
- package created by autospec