]> git.pld-linux.org Git - packages/bootil.git/blame - bootil.spec
- new
[packages/bootil.git] / bootil.spec
CommitLineData
38dcabbc
JB
1Summary: Garry Newman's utility library
2Summary(pl.UTF-8): Biblioteka narzędziowa Garry'ego Newmana
3Name: bootil
4Version: 0
5%define snap 20140109
6Release: 0.%{snap}.1
7# URL says: "My personal utility library, feel free to steal :)"
8License: unknown (free)
9Group: Libraries
10# git clone https://github.com/garrynewman/bootil
11# tar cJ --exclude=.git -f bootil.tar.xz
12Source0: %{name}.tar.xz
13# Source0-md5: fcbf821466349cc3d91f362fea8bd9de
14Patch0: %{name}-includes.patch
15URL: https://github.com/garrynewman/bootil
16BuildRequires: libstdc++-devel
17BuildRequires: premake >= 4
18BuildRequires: sed >= 4.0
19BuildRequires: tar >= 1:1.22
20BuildRequires: xz
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Garry Newman's utility library.
25
26%description -l pl.UTF-8
27Biblioteka narzędziowa Garry'ego Newmana.
28
29%package devel
30Summary: Header files for Bootil library
31Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Bootil
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34Requires: libstdc++-devel
35
36%description devel
37Header files for Bootil library.
38
39%description devel -l pl.UTF-8
40Pliki nagłówkowe biblioteki Bootil.
41
42%prep
43%setup -q -n bootil
44%patch0 -p1
45
46%{__sed} -i -e 's/bootil_static/bootil/;s/StaticLib/SharedLib/' projects/bootil.lua
47
48%build
49cd projects
50premake4 gmake
51LDFLAGS="%{rpmldflags}" \
52%{__make} -C linux/gmake \
53 CC="%{__cc}" \
54 CXX="%{__cxx}" \
55 CFLAGS='%{rpmcflags} %{rpmcppflags} $(CPPFLAGS) $(ARCH) -ffast-math -fPIC' \
56 verbose=1
57
58%install
59rm -rf $RPM_BUILD_ROOT
60install -d $RPM_BUILD_ROOT%{_includedir}
61
62install -D lib/linux/gmake/libbootil.so $RPM_BUILD_ROOT%{_libdir}/libbootil.so
63cp -pr include/Bootil $RPM_BUILD_ROOT%{_includedir}
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%post -p /sbin/ldconfig
69%postun -p /sbin/ldconfig
70
71%files
72%defattr(644,root,root,755)
73%attr(755,root,root) %{_libdir}/libbootil.so
74
75%files devel
76%defattr(644,root,root,755)
77%{_includedir}/Bootil
This page took 0.066168 seconds and 4 git commands to generate.