|
@ -0,0 +1,44 @@ |
|
|
|
|
|
############################################################################### |
|
|
|
|
|
# Spec file for lch |
|
|
|
|
|
################################################################################ |
|
|
|
|
|
# Configured to be built by user student or other non-root user |
|
|
|
|
|
################################################################################ |
|
|
|
|
|
# |
|
|
|
|
|
Summary: Linux Compress Humanizer |
|
|
|
|
|
Name: lch |
|
|
|
|
|
Version: 0.6 |
|
|
|
|
|
Release: 10 |
|
|
|
|
|
License: GPL |
|
|
|
|
|
URL: https://lch.hatthieves.es |
|
|
|
|
|
Group: System |
|
|
|
|
|
Packager: HatThieves |
|
|
|
|
|
Requires: bash |
|
|
|
|
|
BuildRoot: ./rpmbuild/ |
|
|
|
|
|
|
|
|
|
|
|
# Build with the following syntax: |
|
|
|
|
|
# rpmbuild --target noarch -bb utils.spec |
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
|
Linux Compress Humanizer |
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
|
################################################################################ |
|
|
|
|
|
# Create the build tree and copy the files from the development directories # |
|
|
|
|
|
# into the build tree. # |
|
|
|
|
|
################################################################################ |
|
|
|
|
|
echo "BUILDROOT = $RPM_BUILD_ROOT" |
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin |
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/lch |
|
|
|
|
|
|
|
|
|
|
|
cp /lch/lch $RPM_BUILD_ROOT/usr/bin |
|
|
|
|
|
cp -r /lch/lib/* $RPM_BUILD_ROOT/usr/lib/lch |
|
|
|
|
|
|
|
|
|
|
|
exit |
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
|
|
%attr(0755, root, root) /usr/bin/lch |
|
|
|
|
|
/usr/lib/lch/* |
|
|
|
|
|
|
|
|
|
|
|
%clean |
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/lch |
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/lib/lch |