1 Summary: Garry Newman's utility library
2 Summary(pl.UTF-8): Biblioteka narzędziowa Garry'ego Newmana
7 # URL says: "My personal utility library, feel free to steal :)"
8 License: unknown (free)
10 # git clone https://github.com/garrynewman/bootil
11 # tar cJ --exclude=.git -f bootil.tar.xz
12 Source0: %{name}.tar.xz
13 # Source0-md5: fcbf821466349cc3d91f362fea8bd9de
14 Patch0: %{name}-includes.patch
15 URL: https://github.com/garrynewman/bootil
16 BuildRequires: libstdc++-devel
17 BuildRequires: premake >= 4
18 BuildRequires: sed >= 4.0
19 BuildRequires: tar >= 1:1.22
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Garry Newman's utility library.
26 %description -l pl.UTF-8
27 Biblioteka narzędziowa Garry'ego Newmana.
30 Summary: Header files for Bootil library
31 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Bootil
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
34 Requires: libstdc++-devel
37 Header files for Bootil library.
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki Bootil.
46 %{__sed} -i -e 's/bootil_static/bootil/;s/StaticLib/SharedLib/' projects/bootil.lua
51 LDFLAGS="%{rpmldflags}" \
52 %{__make} -C linux/gmake \
55 CFLAGS='%{rpmcflags} %{rpmcppflags} $(CPPFLAGS) $(ARCH) -ffast-math -fPIC' \
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_includedir}
62 install -D lib/linux/gmake/libbootil.so $RPM_BUILD_ROOT%{_libdir}/libbootil.so
63 cp -pr include/Bootil $RPM_BUILD_ROOT%{_includedir}
66 rm -rf $RPM_BUILD_ROOT
68 %post -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_libdir}/libbootil.so
76 %defattr(644,root,root,755)