Skip to content

Instantly share code, notes, and snippets.

@MadcapJake
Created June 3, 2017 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadcapJake/9f0c5c76df2d5722808f59701e409f62 to your computer and use it in GitHub Desktop.
Save MadcapJake/9f0c5c76df2d5722808f59701e409f62 to your computer and use it in GitHub Desktop.
Citrine RPM Spec
Name: citrine
Version: 0.7.2
Release: 1%{?dist}
Summary: An easy-to-learn general-purpose programming language
License: BSD
URL: http://citrine-lang.org
Source0: https://github.com/gabordemooij/%{name}/archive/%{version}.tar.gz
%description
A clean and simple programming language that combines Smalltalk-like messaging
with prototypal inheritance and dynamic Scoping.
%prep
%autosetup
%build
make -f makefile
cd plugins/request/ccgi-1.2
cc -c ccgi.c -Wall -Werror -fPIC -o ccgi.o
cc -c prefork.c -Wall -Werror -fPIC -o prefork.o
cd ..
cc -c request.c -Wall -Werror -fPIC -o request.o
cc -shared -o libctrrequest.so.%{version} request.o ccgi-1.2/ccgi.o ccgi-1.2/prefork.o
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_includedir}/%{name}/%{version}
mkdir -p %{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_docdir}/%{name}/examples
install -m 755 ./ctr %{buildroot}%{_bindir}
rm examples/sockets.ctr
mv ./plugins/request/libctrrequest.so.%{version} %{buildroot}%{_libdir}/%{name}
mv {citrine,dictionary,siphash}.h %{buildroot}%{_includedir}/%{name}/%{version}
mv docs/ctr.1 %{buildroot}%{_mandir}
mv examples/*.ctr %{buildroot}%{_docdir}/%{name}/examples
%files
%doc README.md
%license LICENSE
%{_bindir}/*
%{_libdir}/%{name}/*
%{_includedir}/%{name}/%{version}/*
%{_mandir}/*
%{_docdir}/%{name}/examples/*
%changelog
* Sat Jun 03 2017 Jake Russo <madcap.russo@gmail.com> - 0.7.2-1
- Fixed documentation issue String split meesage
- Fixed String interpolation issue at the end of a string (#85)
* Thu Jun 01 2017 Jake Russo <madcap.russo@gmail.com> - 0.7.1-1
- Added [string] hashWithKey: [string] - this allows you to use the hash-flood resistant SipHash functionality
- Added Linux distribution 64-bit
- Fixed an issue in the manual concerning the String split message
* Thu Jun 01 2017 Jake Russo <madcap.russo@gmail.com> - 0.7-1
- Support for regular expressions
- String formatting/interpolation functions
- Translation functions (to translate native messages)
- Refinements and clean-up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment