-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathblizzard.spec
55 lines (44 loc) · 1.31 KB
/
blizzard.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
Summary: Blizzard http server
Name: blizzard
Version: 0.3.4
Release: 0%{?dist}
License: BSD
Source: blizzard-%{version}.tar.gz
Group: Networking/Daemons
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libev-devel cmake gcc-c++
%package devel
Summary: Header files and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description
Blizzard http server.
%description devel
Blizzard header files.
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop modules for %{name},
you will need to install %{name}-devel.
%prep
%setup -q -n blizzard-%{version}
%build
cmake -D SKIP_RELINK_RPATH=ON . -DCMAKE_INSTALL_PREFIX=/usr -DCFLAGS="${CFLAGS}" -DCXXFLAGS="${CXXFLAGS}"
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
mkdir %{buildroot}
make DESTDIR=%{buildroot} install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/blizzard
%{_prefix}/etc/blizzard/config.xml
%{_prefix}/etc/blzmod_example/config.xml
%{_prefix}/etc/blzmod_example/config_module.xml
%{_libdir}/libblzmod_example.so
%files devel
%defattr(-,root,root,-)
%{_includedir}/blizzard
%changelog
* Sun Jul 27 2014 Alexander Pankov <[email protected]> - 0.3.4-0
+ First RPM build