]>
Commit | Line | Data |
---|---|---|
0f6ee7a2 | 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. |
5c574ae8 | 2 | Summary: Native makefiles generator |
f810b4d8 | 3 | Summary(pl.UTF-8): Generator natywnych plików typu Makefile |
5c574ae8 | 4 | Name: bakefile |
a4c4f823 | 5 | Version: 0.2.10 |
418c430b | 6 | Release: 2 |
83772bf7 PS |
7 | License: MIT |
8 | Group: Development/Building | |
a4c4f823 JB |
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 | |
8062e6bf | 12 | Patch0: %{name}-empy.patch |
418c430b | 13 | Patch1: %{name}-versioncompare.patch |
a4c4f823 | 14 | URL: http://bakefile.org/ |
3de6f0d3 JB |
15 | BuildRequires: autoconf >= 2.53 |
16 | BuildRequires: automake >= 1.6 | |
9ef82bed | 17 | BuildRequires: libtool |
3de6f0d3 | 18 | BuildRequires: python-devel >= 1:2.5 |
d67d9ecc | 19 | BuildRequires: rpm-pythonprov |
5c574ae8 | 20 | %pyrequires_eq python-modules |
5c574ae8 | 21 | Requires: empy >= 3.1 |
09959895 | 22 | Requires: python-libxml2 |
5c574ae8 AF |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
66cbd32a JB |
26 | Bakefile is cross-platform, cross-compiler native makefiles generator. |
27 | It takes compiler-independent description of build tasks as input and | |
28 | generate native makefile (autoconf's Makefile.in, Visual C++ project, | |
29 | bcc makefile etc.). | |
30 | ||
37713322 JR |
31 | %description -l pl.UTF-8 |
32 | Bakefile to generator natywnych plików typu Makefile dla wielu | |
33 | platform i kompilatorów. Przyjmuje na wejściu niezależny od | |
09959895 | 34 | kompilatora opis zadań budowania i tworzy natywny plik (Makefile.in |
66cbd32a | 35 | dla autoconfa, projekt dla Visual C++, makefile dla bcc itd.). |
5c574ae8 AF |
36 | |
37 | %prep | |
95424130 | 38 | %setup -q |
8062e6bf | 39 | %patch0 -p1 |
418c430b | 40 | %patch1 -p1 |
5c574ae8 AF |
41 | |
42 | %build | |
1c352ae8 | 43 | %{__libtoolize} |
44 | %{__aclocal} -I admin | |
45 | %{__autoconf} | |
46 | %{__automake} | |
5c574ae8 AF |
47 | %configure |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
5c574ae8 | 51 | |
3de6f0d3 JB |
52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
5c574ae8 | 54 | |
71bf54bb | 55 | # use system available modules |
3de6f0d3 JB |
56 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/{empy,py25modules} |
57 | ||
58 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la | |
59 | find $RPM_BUILD_ROOT%{_libdir}/%{name} -name '*.py' | grep -E -v '/bakefile(_gen)?\.py' | xargs %{__rm} | |
71bf54bb | 60 | |
5c574ae8 AF |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
3de6f0d3 JB |
66 | %doc AUTHORS COPYING NEWS README THANKS doc/html |
67 | %attr(755,root,root) %{_bindir}/bakefile | |
68 | %attr(755,root,root) %{_bindir}/bakefile_gen | |
69 | %attr(755,root,root) %{_bindir}/bakefilize | |
b16bd3d2 AF |
70 | %{_datadir}/%{name} |
71 | %dir %{_libdir}/%{name} | |
72 | %{_libdir}/%{name}/*.py[oc] | |
3de6f0d3 | 73 | %attr(755,root,root) %{_libdir}/%{name}/_bkl_c.so |
b16bd3d2 AF |
74 | %attr(755,root,root) %{_libdir}/%{name}/bakefile.py |
75 | %attr(755,root,root) %{_libdir}/%{name}/bakefile_gen.py | |
3de6f0d3 JB |
76 | %{_aclocaldir}/bakefile*.m4 |
77 | %{_mandir}/man1/bakefile.1* | |
78 | %{_mandir}/man1/bakefile_gen.1* | |
79 | %{_mandir}/man1/bakefilize.1* |