-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalum-0.2.spec
67 lines (53 loc) · 1.52 KB
/
valum-0.2.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
60
61
62
63
64
65
66
67
Name: valum-0.2
Version: 0.2.16
Release: 5%{?dist}
Summary: Valum is a web micro-framework written in Vala
Group: Development/Libraries
License: LGPL
URL: https://github.com/valum-framework/valum
Source0: %{url}/archive/v%{version}.tar.gz
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: fcgi-devel
BuildRequires: python3-sphinx
BuildRequires: vala
BuildRequires: vala-tools
%description
Valum is a web micro-framework able to create highly scalable expressive web
applications or services by taking advantage of machine code execution and
asynchronous I/O.
%package devel
Summary: Build files for Valum
Requires: valum-0.2
%description devel
Provides build files including C header, Vala bindings and GIR introspection
meta-data.
%package doc
Summary: Documentation for Valum
BuildArch: noarch
%description doc
Provides user documentation in HTML format.
%prep
%autosetup -n valum-%{version}
%build
./waf configure --prefix=%{_prefix} CFLAGS="%{optflags}" VALAFLAGS='--debug'
./waf build
%install
./waf install --destdir=%{buildroot}
mkdir -p %{buildroot}%{_defaultdocdir}/valum-0.2/user
cp -R build/docs %{buildroot}%{_defaultdocdir}/valum-0.2/user/en
%check
./build/tests/tests
%files
%doc README.md COPYING
%{_libdir}/*
%exclude %{_libdir}/pkgconfig/*
%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/*
%{_datadir}/vala/*
%files doc
%{_defaultdocdir}/valum-0.2/*