Accepting request 77300 from devel:libraries:c_c++
- Update to hxtools-20110721 * all: include libHX_CFLAGS to avoid build abort due to missing -I * ofl: define _GNU_SOURCE to avoid build abort - Update to hxtools-20110509 * phased out and/or removed obsolete scripts - Update dependencies on Perl modules OBS-URL: https://build.opensuse.org/request/show/77300 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hxtools?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
14165a7c5d
commit
7521314a91
28
hxtools.spec
28
hxtools.spec
@@ -16,21 +16,23 @@
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: hxtools
|
||||
Version: 20110214
|
||||
Version: 20110721
|
||||
Release: 1
|
||||
Group: System/Base
|
||||
Url: http://jengelh.medozas.de/projects/hxtools/
|
||||
URL: http://jengelh.medozas.de/projects/hxtools/
|
||||
Summary: Collection of day-to-day tools (binaries)
|
||||
|
||||
Source: %name-%version.tar.xz
|
||||
Source2: %name-%version.tar.xz.asc
|
||||
License: GPL,PD
|
||||
# freetype2, xorg-x11 for "bdftopcf"
|
||||
BuildRequires: freetype2 libHX-devel >= 3.4 libcap-devel
|
||||
BuildRequires: pkg-config xorg-x11 xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: freetype2, libHX-devel >= 3.4, libcap-devel
|
||||
BuildRequires: pkg-config, xorg-x11, xz
|
||||
BuildRoot: %_tmppath/%name-%version-build
|
||||
Requires: perl(Data::Dumper), perl(File::Find)
|
||||
Requires: perl(File::Find::Rule)
|
||||
Requires: perl(Getopt::Long), perl(IPC::Open2), perl(Text::CSV_XS)
|
||||
Recommends: %name-scripts = %version, %name-man = %version
|
||||
|
||||
%define build_profile 1
|
||||
@@ -47,7 +49,6 @@ A collection of various tools. Some of the important ones:
|
||||
* vfontas(1) — VGA font file assembler
|
||||
|
||||
%package scripts
|
||||
License: GPL,PD
|
||||
Group: System/Base
|
||||
Summary: Collection of day-to-day tools (scripts)
|
||||
BuildArch: noarch
|
||||
@@ -79,7 +80,6 @@ Architecture-independent programs from hxtools.
|
||||
* wktimer(1) — work timer
|
||||
|
||||
%package man
|
||||
License: GPL,PD
|
||||
Group: Documentation/Man
|
||||
Summary: Manual pages for the hxtools suite
|
||||
BuildArch: noarch
|
||||
@@ -89,7 +89,6 @@ This package contains the manual pages for the binaries and scripts
|
||||
from hxtools.
|
||||
|
||||
%package data
|
||||
License: GPL,PD
|
||||
Group: System/Base
|
||||
Summary: Collection of day-to-day tools (data)
|
||||
BuildArch: noarch
|
||||
@@ -102,7 +101,6 @@ Architecture-independent data from hxtools.
|
||||
* additional syntax highlighting definitions for mcedit
|
||||
|
||||
%package profile
|
||||
License: GPL,PD
|
||||
Group: System/Base
|
||||
Summary: The hxtools shell environment
|
||||
Requires: %name = %version, %name-scripts = %version
|
||||
@@ -128,8 +126,6 @@ make %{?_smp_mflags};
|
||||
%install
|
||||
o="$PWD";
|
||||
b="%buildroot";
|
||||
rm -Rf "$b";
|
||||
mkdir "$b";
|
||||
make install DESTDIR="$b";
|
||||
|
||||
install -dm0755 "$b/%_datadir/mc/syntax";
|
||||
@@ -144,15 +140,14 @@ find ./%_bindir ./%_libexecdir ! -type d -exec grep -L ELF {} + | \
|
||||
perl -pe 's{^\./+}{/}' >"$o/scripts.lst";
|
||||
|
||||
%if 0%{?build_profile}
|
||||
mkdir -p "$b/%_sysconfdir/bashrc.d";
|
||||
ln -s "%_datadir/%name/hxtools_bashrc.bash" "$b/%_sysconfdir/bashrc.d/";
|
||||
mkdir -p "$b/%_sysconfdir/profile.d";
|
||||
ln -s "%_datadir/%name/hxtools_profile.bash" "$b/%_sysconfdir/profile.d/z_hxtools_profile.sh";
|
||||
%else
|
||||
rm -Rf "$b/%_sysconfdir/profile.d" "$b/%_sysconfdir"/hx*;
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -Rf "%buildroot";
|
||||
|
||||
%files -f binary.lst
|
||||
%defattr(-,root,root)
|
||||
%dir %_libexecdir/%name
|
||||
@@ -176,10 +171,11 @@ rm -Rf "%buildroot";
|
||||
%_datadir/mc
|
||||
|
||||
%if 0%{?build_profile}
|
||||
|
||||
%files profile
|
||||
%defattr(-,root,root)
|
||||
%config %_sysconfdir/hxloginpref.conf
|
||||
%dir %_sysconfdir/bashrc.d
|
||||
%config %_sysconfdir/bashrc.d/*
|
||||
%config %_sysconfdir/profile.d/*
|
||||
%endif
|
||||
|
||||
|
Reference in New Issue
Block a user