1 # NOTE: for 1.x versions see DEVEL branch; it's not compatible with 0.x, and (according to web site) still work in progress.
2 Summary: Native makefiles generator
3 Summary(pl.UTF-8): Generator natywnych plików typu Makefile
8 Group: Development/Building
9 #SourceDownload: https://github.com/vslavik/bakefile/releases
10 Source0: https://github.com/vslavik/bakefile/releases/download/v%{version}/%{name}-%{version}.tar.gz
11 # Source0-md5: f980cdd36268b5d2b23602d454bdf0a4
12 Patch0: %{name}-empy.patch
13 URL: http://bakefile.org/
14 BuildRequires: autoconf >= 2.53
15 BuildRequires: automake >= 1.6
16 BuildRequires: libtool
17 BuildRequires: python-devel >= 1:2.5
18 BuildRequires: rpm-pythonprov
19 %pyrequires_eq python-modules
21 Requires: python-libxml2
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Bakefile is cross-platform, cross-compiler native makefiles generator.
26 It takes compiler-independent description of build tasks as input and
27 generate native makefile (autoconf's Makefile.in, Visual C++ project,
30 %description -l pl.UTF-8
31 Bakefile to generator natywnych plików typu Makefile dla wielu
32 platform i kompilatorów. Przyjmuje na wejściu niezależny od
33 kompilatora opis zadań budowania i tworzy natywny plik (Makefile.in
34 dla autoconfa, projekt dla Visual C++, makefile dla bcc itd.).
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
53 # use system available modules
54 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/{empy,py25modules}
56 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
57 find $RPM_BUILD_ROOT%{_libdir}/%{name} -name '*.py' | grep -E -v '/bakefile(_gen)?\.py' | xargs %{__rm}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc AUTHORS COPYING NEWS README THANKS doc/html
65 %attr(755,root,root) %{_bindir}/bakefile
66 %attr(755,root,root) %{_bindir}/bakefile_gen
67 %attr(755,root,root) %{_bindir}/bakefilize
69 %dir %{_libdir}/%{name}
70 %{_libdir}/%{name}/*.py[oc]
71 %attr(755,root,root) %{_libdir}/%{name}/_bkl_c.so
72 %attr(755,root,root) %{_libdir}/%{name}/bakefile.py
73 %attr(755,root,root) %{_libdir}/%{name}/bakefile_gen.py
74 %{_aclocaldir}/bakefile*.m4
75 %{_mandir}/man1/bakefile.1*
76 %{_mandir}/man1/bakefile_gen.1*
77 %{_mandir}/man1/bakefilize.1*