]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Merge pull request #116 from ignatenkobrain/cooking
authorDale Weiler <killfieldengine@gmail.com>
Sat, 27 Jul 2013 18:29:14 +0000 (11:29 -0700)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 27 Jul 2013 18:29:14 +0000 (11:29 -0700)
Add instruction for Fedora and other RPM distros

distro/fedora/INSTALL
distro/fedora/gmqcc-0.2.9.spec [deleted file]
distro/fedora/gmqcc-0.3.0.spec [deleted file]
distro/fedora/gmqcc.spec [new file with mode: 0644]

index 8b137891791fe96927ad78e64b0aad7bded08bdc..390555a85f5b20fcf3340d551a42114d1c264e85 100644 (file)
@@ -1 +1,29 @@
+File is constantly updated!
+
+Since Fedora 19 we have this package in main repos. Please use it!
+
+For install gmqcc do this:
+# yum install gmqcc
+
+For install qcvm do this:
+# yum install qcvm
+
+To use the spec files in this fedora directory you need the core
+development tools , building enviroment for the user, and
+the directory structure for it. If you don't already have these, issue
+the following commands.
+
+# yum groupinstall "Development Tools"
+# yum install rpmdevtools
+$ rm -rf ~/rpmbuild
+$ rpmdev-setuptree
+
+Prepare and build the RPMs.
+
+$ cp gmqcc.spec ~/rpmbuild/SPECS/
+$ wget https://github.com/graphitemaster/gmqcc/archive/0.2.9.tar.gz -o ~/rpmbuild/SOURCES/gmqcc-0.2.9.tar.gz
+$ wget https://raw.github.com/graphitemaster/gmqcc/master/distro/archlinux/release/build_fix.patch -o ~/rpmbuild/SPECS/build_fix.patch
+$ rpmbuild -ba ~/rpmbuild/SPECS/gmqcc.spec
+
+Now we have RPMs in ~/rpmbuild/RPMS/ and you can install it via yum.
 
diff --git a/distro/fedora/gmqcc-0.2.9.spec b/distro/fedora/gmqcc-0.2.9.spec
deleted file mode 100644 (file)
index 23e47f2..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-Name:           gmqcc
-Version:        0.2.9
-Release:        1%{?dist}
-Summary:        Improved Quake C Compiler
-License:        MIT
-URL:            http://graphitemaster.github.io/gmqcc/
-Source0:        https://github.com/graphitemaster/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-
-%description
-Modern written-from-scratch compiler for the QuakeC language with
-support for many common features found in other QC compilers.
-
-%package -n qcvm
-Summary:        Standalone QuakeC VM binary executor
-
-%description -n qcvm
-Executor for QuakeC VM binary files created using a QC compiler such
-as gmqcc or fteqcc. It provides a small set of builtin functions, and
-by default executes the main function if there is one. Some options
-useful for debugging are available as well.
-
-%prep
-%setup -q
-
-%build
-make %{?_smp_mflags}
-
-%install
-%make_install PREFIX=%{_prefix}
-
-%check
-make check
-
-%files
-%doc LICENSE README AUTHORS CHANGES
-%doc %{_mandir}/man1/gmqcc.1.gz
-%{_bindir}/gmqcc
-
-%files -n qcvm
-%doc LICENSE README AUTHORS CHANGES
-%doc %{_mandir}/man1/qcvm.1.gz
-%{_bindir}/qcvm
-
-%changelog
-* Sat Jul 27 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.2.9-1
-- Initial release
diff --git a/distro/fedora/gmqcc-0.3.0.spec b/distro/fedora/gmqcc-0.3.0.spec
deleted file mode 100644 (file)
index 332321f..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-Name:           gmqcc
-Version:        0.3.0
-Release:        1%{?dist}
-Summary:        Improved Quake C Compiler
-License:        MIT
-URL:            http://graphitemaster.github.io/gmqcc/
-Source0:        https://github.com/graphitemaster/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-
-%description
-Modern written-from-scratch compiler for the QuakeC language with
-support for many common features found in other QC compilers.
-
-%package -n qcvm
-Summary:        Standalone QuakeC VM binary executor
-
-%description -n qcvm
-Executor for QuakeC VM binary files created using a QC compiler such
-as gmqcc or fteqcc. It provides a small set of builtin functions, and
-by default executes the main function if there is one. Some options
-useful for debugging are available as well.
-
-%prep
-%setup -q
-
-%build
-make %{?_smp_mflags}
-
-%install
-%make_install PREFIX=%{_prefix}
-
-%check
-make check
-
-%files
-%doc LICENSE README AUTHORS CHANGES
-%doc %{_mandir}/man1/gmqcc.1.gz
-%{_bindir}/gmqcc
-
-%files -n qcvm
-%doc LICENSE README AUTHORS CHANGES
-%doc %{_mandir}/man1/qcvm.1.gz
-%{_bindir}/qcvm
-
-%changelog
-* Sat Jul 27 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.2.9-1
-- Initial release
diff --git a/distro/fedora/gmqcc.spec b/distro/fedora/gmqcc.spec
new file mode 100644 (file)
index 0000000..78ea18d
--- /dev/null
@@ -0,0 +1,55 @@
+Name:           gmqcc
+Version:        0.2.9
+Release:        1%{?dist}
+Summary:        Improved Quake C Compiler
+License:        MIT
+URL:            http://graphitemaster.github.io/gmqcc/
+Source0:        https://github.com/graphitemaster/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# Downstream patch. TODO: drop it in 0.3.0 release.
+Patch0:         build_fix.patch
+
+%description
+Modern written-from-scratch compiler for the QuakeC language with
+support for many common features found in other QC compilers.
+
+%package -n qcvm
+Summary:        Standalone QuakeC VM binary executor
+
+%description -n qcvm
+Executor for QuakeC VM binary files created using a QC compiler such
+as gmqcc or fteqcc. It provides a small set of built-in functions, and
+by default executes the main function if there is one. Some options
+useful for debugging are available as well.
+
+# TODO: add new package gmqpak after 0.3.0 release
+
+%prep
+%setup -q
+%patch0 -p1
+echo '#!/bin/sh' > ./configure
+chmod +x ./configure 
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install PREFIX=%{_prefix}
+
+%check
+make check
+
+%files
+%doc LICENSE README AUTHORS CHANGES TODO
+%doc gmqcc.ini.example
+%doc %{_mandir}/man1/gmqcc.1.gz
+%{_bindir}/gmqcc
+
+%files -n qcvm
+%doc LICENSE README AUTHORS CHANGES TODO
+%doc %{_mandir}/man1/qcvm.1.gz
+%{_bindir}/qcvm
+
+%changelog
+* Sat Jul 27 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.2.9-1
+- Initial release