-
Notifications
You must be signed in to change notification settings - Fork 0
/
xdiskusage.spec
96 lines (83 loc) · 2.77 KB
/
xdiskusage.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# spec file for package xdiskusage
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Note that this is NOT a relocatable package
%define prefix /usr
%define bindir /usr/bin
%define mandir /usr/share/man
%define tmppath /tmp
Summary: Graphically displays the amount of disk space used by each subdirectory
License: GPL-2.0
Group: Applications/System
Name: xdiskusage
Version: 1.60
Release: 1
Source: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://xdiskusage.sourceforge.net/
BuildRequires: fltk-devel
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
#BuildRequires: fluid
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXinerama-devel
BuildRequires: mesa-libGL-devel
%endif
%if 0%{?suse_version}
BuildRequires: Mesa-devel
BuildRequires: xorg-x11-devel
%endif
%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires: lib64mesagl1-devel
BuildRequires: lib64x11_6-devel
BuildRequires: lib64xext6-devel
BuildRequires: lib64xinerama1-devel
%else
BuildRequires: libmesagl1-devel
BuildRequires: libx11_6-devel
BuildRequires: libxext6-devel
BuildRequires: libxinerama1-devel
%endif
%endif
%description
xdiskusage is a user-friendly program to show you what is using
up all your disk space. It is based on the design of xdu
written by Phillip C. Dykstra. Changes have been made so it runs
"du" for you, and can display the free space left on the disk,
and produce a PostScript version of the display.
%global debug_package %{nil}
%prep
%setup -q
%build
export CXXFLAGS="$RPM_OPT_FLAGS -fPIE"
export CFLAGS="$RPM_OPT_FLAGS -fPIE"
./configure --prefix=%prefix
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{bindir} $RPM_BUILD_ROOT/%{mandir}/man1
make prefix=$RPM_BUILD_ROOT/%{prefix} \
mandir=$RPM_BUILD_ROOT/%{mandir} install
%files
%defattr(-,root,root)
%doc README
%{bindir}/*
%doc %attr(0644,root,root) %{mandir}/man1/*
%changelog
* Thu Sep 5 2024 John Beranek <[email protected]>
- v1.60 from upstream.