-
Notifications
You must be signed in to change notification settings - Fork 1
/
erlang-mysql.spec
59 lines (42 loc) · 1.5 KB
/
erlang-mysql.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%global debug_package %{nil}
%define git_version_sha 93750e1
%define git_author_name dizzyd
Name: erlang-mysql
Version: 2010.11.02
Release: 1%{?dist}
Summary: This MySQL driver for Erlang is based on the Yxa driver obtained from Process One
Group: Development/Libraries
License: BSD
URL: https://github.com/dizzyd/%{name}-driver
Source0: https://download.github.com/%{git_author_name}-%{name}-driver-%{git_version_sha}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: erlang
Requires: erlang
%description
This MySQL driver for Erlang is based on the Yxa driver obtained from
Process One
(at https://support.process-one.net/doc/display/CONTRIBS/Yxa). It
includes several new features such as prepared statements,
transactions, binary queries, type-converted query results, more
efficient logging and a new connection pooling mechanism.
%prep
%setup -q -n %{git_author_name}-%{name}-driver-%{git_version_sha}
%build
erlc ./src/*.erl
%{__mv} *.beam ./ebin/
%{__rm} ./ebin/.gitignore
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_libdir}/erlang/lib/%{name}-%{version}/
cp -r ebin %{buildroot}/%{_libdir}/erlang/lib/%{name}-%{version}/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/erlang/lib/%{name}-%{version}
%doc COPYING.txt
%doc README.txt
%doc SOURCE.txt
%changelog
* Sun Jan 9 2011 Ilia Cheishvili <[email protected]> - 2010-11-02-1
- Initial Package