Compare commits

20 Commits

Author SHA256 Message Date
e945eb6039 Accepting request 1253491 from utilities
OBS-URL: https://build.opensuse.org/request/show/1253491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/di?expand=0&rev=7
2025-03-16 17:59:17 +00:00
30a812180f di 6.0.0
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=24
2025-03-16 11:21:26 +00:00
d7ed99f9b5 Accepting request 1250262 from utilities
di 5.0.14 (forwarded request 1250261 from AndreasStieger)

OBS-URL: https://build.opensuse.org/request/show/1250262
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/di?expand=0&rev=6
2025-03-05 12:41:09 +00:00
96dd315e68 Accepting request 1250261 from home:AndreasStieger:branches:utilities
di 5.0.14

OBS-URL: https://build.opensuse.org/request/show/1250261
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=22
2025-03-04 20:31:30 +00:00
12e486add8 Accepting request 1248767 from utilities
di 5.0.13 (forwarded request 1248766 from AndreasStieger)

OBS-URL: https://build.opensuse.org/request/show/1248767
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/di?expand=0&rev=5
2025-02-27 13:50:44 +00:00
322c3a54f5 Accepting request 1248766 from home:AndreasStieger:branches:utilities
di 5.0.13

OBS-URL: https://build.opensuse.org/request/show/1248766
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=20
2025-02-26 16:32:17 +00:00
13c3a71807 Accepting request 1247703 from utilities
OBS-URL: https://build.opensuse.org/request/show/1247703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/di?expand=0&rev=4
2025-02-21 20:39:04 +00:00
5e027e11aa Accepting request 1247702 from home:AndreasStieger:branches:utilities
di 5.0.12

OBS-URL: https://build.opensuse.org/request/show/1247702
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=18
2025-02-21 17:22:53 +00:00
efb78f9d8b Accepting request 1247134 from utilities
di 5.0.11

OBS-URL: https://build.opensuse.org/request/show/1247134
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/di?expand=0&rev=3
2025-02-20 15:32:26 +00:00
fa6e2f24d0 up
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=16
2025-02-19 14:51:58 +00:00
f9e3181140 Accepting request 1246750 from home:AndreasStieger:branches:utilities
di 5.0.10

OBS-URL: https://build.opensuse.org/request/show/1246750
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=15
2025-02-19 07:01:44 +00:00
63747ed695 Accepting request 1244853 from utilities
OBS-URL: https://build.opensuse.org/request/show/1244853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/di?expand=0&rev=2
2025-02-11 20:23:32 +00:00
3bd5655f4a Accepting request 1244852 from home:AndreasStieger:branches:utilities
di 5.0.6

OBS-URL: https://build.opensuse.org/request/show/1244852
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=13
2025-02-10 19:46:49 +00:00
fca270e26e Accepting request 1244688 from utilities
please review for Factory

OBS-URL: https://build.opensuse.org/request/show/1244688
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/di?expand=0&rev=1
2025-02-10 16:29:22 +00:00
b0d7a6931e Accepting request 1244392 from home:AndreasStieger:branches:utilities
di 5.0.5

OBS-URL: https://build.opensuse.org/request/show/1244392
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=11
2025-02-10 07:41:32 +00:00
eecb5e959c Accepting request 930521 from home:AndreasStieger:branches:utilities
di 4.51

OBS-URL: https://build.opensuse.org/request/show/930521
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=10
2021-11-11 08:31:08 +00:00
a0e555f7bc Accepting request 810754 from home:alois:branches:utilities
- Update to version 4.47.3
  * Fixed missing link flags for clang.
  version 4.47.2:
  * Minor makefile cleanup.
  version 4.47.1:
  * Update mkconfig to version 2.1.1 (fixes build on 32-bit).
  * Add configs/config.ms.cl (visual studio definitions).

OBS-URL: https://build.opensuse.org/request/show/810754
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=9
2020-06-02 09:13:15 +00:00
132f1f806b - Update to 4.47:
* Fixed bugs located by scan.coverity.com.
    This should fix a numeric sort bug.
  * Update mkconfig to version 2.0.0 and make changes to
    support it.                                                                                                                       
  * Get perl extension build working again.

OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=8
2018-08-13 10:05:03 +00:00
1a1b649644 - Update to 4.46:
* Tcl: Fix bad allocation.
  * Tcl: Raise errors rather than exiting.
  * Exit program when incorrect options are specified.
  * Update mkconfig to version 1.31.
  * Add missing mkconfig/runtests.sh.
  * Update mkconfig to version 1.30 to fix modern libintl.h/printf tests.

OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=7
2018-06-14 08:59:01 +00:00
93d76624fc Accepting request 588457 from home:alois:branches:utilities
- Update to version 4.44
  * Fixed check of exabyte sized filesystems.  The signed check
    now only checks for -1 and -2; there could still be situations
    where the overflow exactly matches these values.
  * Added faster method for windows check for missing removable
    filesystems.
  version 4.43
  * Cleaned up some compiler warnings.
  * Fixed memory allocation problem.
  * Tcl interface fixes
  version 4.42
  * Fixed a parsing bug in the Tcl interface.
  * Added a Perl interface.
  version 4.41
  * Fixed bug specifying more than one filesystem on the command
    line.
  * Added sort by free space, total space.
  * Updated manual page: missing, new sort options.
  version 4.40
  * Updated the Tcl interface to return the 'display' key as a list.
  version 4.39
  * Added a Tcl interface.
  * Fixed CSV header to honor -n flag.
  * Added -C, --csv-tabs to output CSV with tabs.
  * Update mkconfig to version 1.27
  version 4.38
  * Update mkconfig to version 1.26
  version 4.37
  * Fixed a problem when processing the DI_ARGS environment variable.
  * Hardened compiler options: reference:
    http://wiki.debian.org/Hardening
  * Code cleanup to fix compiler warnings.
  version 4.36
  * Updated test for NFS remote filesystems.
  version 4.35
  * Fixed a bug when -I/-x were specified in addition to a filespec.
  * Updated build system to mkconfig-1.24
  version 4.34
  * When a filename is specified on the command line, attempt to
    choose the best filesystem to display when there are multiple
    choices.
  * Error check realpath() return value.
  * Only canonicalize device names if it has a trailing uuid.
  * Add -R (--dont-resolve-symlink) option to turn off
    canonicalization.
  * Clean up code to fix clang warnings.
  version 4.33
  * Recoded quota handling as information was improperly
    losing precision.
  * Added support for hammer-pfs (pooled filesystems).
  * Exclude rootfs, devfs, procfs, kernfs, ptyfs and devtmpfs by
    default.
  * Minor updates to main makefile.
  * Minor directory rearrangement for os-specific config files.
  * Fixed possible case of systems with a memcpy macro and
    no library function.
  * Make sure D tests are not run.
  * Updated build system to mkconfig-1.22.
  version 4.32
  * Exclude rootfs by default.
  * Canonicalize the special device name.
  * Updated build system to mkconfig-1.21.
  version 4.31
  * Filesystems that would return a 'Permission Denied'
    are not displayed at all, even with -a.
  * Fixed totals with pooled filesystems (when main pool not
    mounted).
  * Fixed a very rare divide by 0 condition.
  * Code cleanup.
  * Updated build system to mkconfig-1.19.
- Spec cleanup

OBS-URL: https://build.opensuse.org/request/show/588457
OBS-URL: https://build.opensuse.org/package/show/utilities/di?expand=0&rev=6
2018-03-19 10:11:57 +00:00
4 changed files with 256 additions and 42 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:148c263a1058f6643bd7e347d8f34e59caa9fcb71d1938f1344b077784f7f8fb
size 184703

3
di-6.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b663e4db044b1fa4986bd018f827c18e96fe6d1f9a36732dcbb0450e7f518cb
size 133060

View File

@@ -1,3 +1,182 @@
-------------------------------------------------------------------
Sun Mar 16 11:19:47 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 6.0.0:
* Fix crash in incorrect processing when di_get_all_disk_info
fails
* ABI Change: di_get_all_disk_info now returns an exit flag
-------------------------------------------------------------------
Tue Mar 4 20:29:29 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 5.0.14:
* Fix -I, -x: incorrect parse issue left over from re-write
* Fix crash with initialization and free of quota data
* Environment variables: Also handle XiB scale sizes
* Fix Robi and Quebi prefix names
-------------------------------------------------------------------
Wed Feb 26 16:30:39 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 5.0.13:
* build system fixes for other platforms, mkconfig updates
-------------------------------------------------------------------
Fri Feb 21 17:21:16 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to 5.0.12:
* Fix --si option block size
-------------------------------------------------------------------
Wed Feb 19 05:51:44 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to 5.0.11:
* build fixes to mo files, package them
-------------------------------------------------------------------
Tue Feb 18 17:34:29 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to 5.0.10:
* more build system tweaks and fixes for other platforms
-------------------------------------------------------------------
Mon Feb 10 19:44:29 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to 5.0.6:
* build system fixes and compiler warning fixes
-------------------------------------------------------------------
Sat Feb 8 18:52:51 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to version 5 (5.0.5), a new major version:
* Code base updated, display processing is entirely new code.
* now uses a shared library
-------------------------------------------------------------------
Tue Nov 9 17:17:07 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
- di 4.51:
* Handle EPERM errors
- di 4.50:
* JSON: Exclude extraneous format characters from the json output
* JSON: Fix quoting around human-readable values
* Totals: Support APFS filesystem
* Linux: Put filesytems using 'tmpfs' or 'cgroup' as the
device name on the ignore list
- di 4.49:
* Added the -j (--json-output) option to output json data
- di 4.48:
* disable spurious compiler warnings
* Various build fixes
-------------------------------------------------------------------
Tue Jun 2 08:48:01 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 4.47.3
* Fixed missing link flags for clang.
version 4.47.2:
* Minor makefile cleanup.
version 4.47.1:
* Update mkconfig to version 2.1.1 (fixes build on 32-bit).
* Add configs/config.ms.cl (visual studio definitions).
-------------------------------------------------------------------
Mon Aug 13 08:28:20 UTC 2018 - mvetter@suse.com
- Update to 4.47:
* Fixed bugs located by scan.coverity.com.
This should fix a numeric sort bug.
* Update mkconfig to version 2.0.0 and make changes to
support it.
* Get perl extension build working again.
-------------------------------------------------------------------
Thu Jun 14 08:56:39 UTC 2018 - mvetter@suse.com
- Update to 4.46:
* Tcl: Fix bad allocation.
* Tcl: Raise errors rather than exiting.
* Exit program when incorrect options are specified.
* Update mkconfig to version 1.31.
* Add missing mkconfig/runtests.sh.
* Update mkconfig to version 1.30 to fix modern libintl.h/printf tests.
-------------------------------------------------------------------
Mon Mar 19 08:42:01 UTC 2018 - aloisio@gmx.com
- Update to version 4.44
* Fixed check of exabyte sized filesystems. The signed check
now only checks for -1 and -2; there could still be situations
where the overflow exactly matches these values.
* Added faster method for windows check for missing removable
filesystems.
version 4.43
* Cleaned up some compiler warnings.
* Fixed memory allocation problem.
* Tcl interface fixes
version 4.42
* Fixed a parsing bug in the Tcl interface.
* Added a Perl interface.
version 4.41
* Fixed bug specifying more than one filesystem on the command
line.
* Added sort by free space, total space.
* Updated manual page: missing, new sort options.
version 4.40
* Updated the Tcl interface to return the 'display' key as a list.
version 4.39
* Added a Tcl interface.
* Fixed CSV header to honor -n flag.
* Added -C, --csv-tabs to output CSV with tabs.
* Update mkconfig to version 1.27
version 4.38
* Update mkconfig to version 1.26
version 4.37
* Fixed a problem when processing the DI_ARGS environment variable.
* Hardened compiler options: reference:
http://wiki.debian.org/Hardening
* Code cleanup to fix compiler warnings.
version 4.36
* Updated test for NFS remote filesystems.
version 4.35
* Fixed a bug when -I/-x were specified in addition to a filespec.
* Updated build system to mkconfig-1.24
version 4.34
* When a filename is specified on the command line, attempt to
choose the best filesystem to display when there are multiple
choices.
* Error check realpath() return value.
* Only canonicalize device names if it has a trailing uuid.
* Add -R (--dont-resolve-symlink) option to turn off
canonicalization.
* Clean up code to fix clang warnings.
version 4.33
* Recoded quota handling as information was improperly
losing precision.
* Added support for hammer-pfs (pooled filesystems).
* Exclude rootfs, devfs, procfs, kernfs, ptyfs and devtmpfs by
default.
* Minor updates to main makefile.
* Minor directory rearrangement for os-specific config files.
* Fixed possible case of systems with a memcpy macro and
no library function.
* Make sure D tests are not run.
* Updated build system to mkconfig-1.22.
version 4.32
* Exclude rootfs by default.
* Canonicalize the special device name.
* Updated build system to mkconfig-1.21.
version 4.31
* Filesystems that would return a 'Permission Denied'
are not displayed at all, even with -a.
* Fixed totals with pooled filesystems (when main pool not
mounted).
* Fixed a very rare divide by 0 condition.
* Code cleanup.
* Updated build system to mkconfig-1.19.
- Spec cleanup
-------------------------------------------------------------------
Mon Nov 21 18:25:11 UTC 2011 - pascal.bleser@opensuse.org

113
di.spec
View File

@@ -1,15 +1,38 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package di
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: di
Version: 4.31
Release: 0
Summary: Disk Information Utility
Source: http://gentoo.com/di/di-%{version}.tar.gz
URL: http://www.gentoo.com/di/
Group: Productivity/File utilities
License: zlib/libpng License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel pkgconfig
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 6
Name: di
Version: 6.0.0
Release: 0
Summary: Disk Information Utility
License: Zlib
URL: https://diskinfo-di.sourceforge.io/
Source: https://sourceforge.net/projects/diskinfo-di/files/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libtirpc)
%if 0%{?sle_version} <= 150600 && 0%{?is_opensuse}
BuildRequires: gmp-devel
%else
BuildRequires: pkgconfig(gmp)
%endif
%description
di is a disk information utility that displays everything that df does and
@@ -19,41 +42,53 @@ space available for their use, not the system wide disk space. It is designed
to be highly portable across many platforms and is great for heterogenous
networks.
%package -n libdi%{sover}
Summary: Disk Information Utility share library
%description -n libdi%{sover}
di (libdi) is a disk information utility library.
%package devel
Summary: Development files for di
Requires: libdi%{sover} = %{version}
%description devel
di (libdi) is a disk information utility library.
This package contains the files needed to develop using libdi.
%prep
%setup -q
%autosetup -p1
%build
%__make %{?_smp_flags} \
prefix="%{_prefix}" \
LOCALEDIR="%{_datadir}/locale" \
CC="%__cc" \
CFLAGS="%{optflags}"
%cmake
%make_build
%install
# actually needed on some non-openSUSE dists as the install
# target doesn't use "mkdir -p" but just "mkdir"
%__install -d "%{buildroot}"
%cmake_install
%find_lang %{name}
%__make \
prefix="%{_prefix}" \
LOCALEDIR="%{_datadir}/locale" \
CC="%__cc" \
CFLAGS="%{optflags}" \
INSTALL_DIR="%{buildroot}%{_prefix}" \
INSTALL_BIN_DIR="%{buildroot}%{_bindir}" \
INSTALL_LOCALEDIR="%{buildroot}%{_datadir}/locale" \
DI_MANINSTDIR="%{buildroot}%{_mandir}" \
install
%check
%ctest
%find_lang "%{name}"
%ldconfig_scriptlets -n libdi%{sover}
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f "%{name}.lang"
%defattr(-,root,root)
%doc LICENSE MANIFEST README
%files -f %{name}.lang
%license LICENSE.txt
%doc README.txt
%{_bindir}/di
%{_bindir}/mi
%doc %{_mandir}/man1/di.1*
%{_mandir}/man1/di.1%{?ext_man}
%files -n libdi%{sover}
%license LICENSE.txt
%{_libdir}/libdi.so.%{sover}
%{_libdir}/libdi.so.%{sover}.*
%files devel
%license LICENSE.txt
%{_includedir}/di.h
%{_libdir}/libdi.so
%{_libdir}/pkgconfig/di.pc
%{_mandir}/man3/libdi.3%{?ext_man}
%changelog