diff --git a/lch.spec b/lch.spec new file mode 100644 index 0000000..f2e4992 --- /dev/null +++ b/lch.spec @@ -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 diff --git a/rpmbuild/RPMS/.gitkeep b/rpmbuild/RPMS/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/.gitkeep b/rpmbuild/SOURCES/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SPECS/lch.spec b/rpmbuild/SPECS/lch.spec new file mode 120000 index 0000000..021e18f --- /dev/null +++ b/rpmbuild/SPECS/lch.spec @@ -0,0 +1 @@ +../../lch.spec \ No newline at end of file diff --git a/rpmbuild/SRPMS/.gitkeep b/rpmbuild/SRPMS/.gitkeep new file mode 100644 index 0000000..e69de29