]>
Commit | Line | Data |
---|---|---|
b606ecfb | 1 | # TODO: optflags (where possible) |
55d9a57f | 2 | Summary: Lazarus Component Library and IDE |
eec698b6 | 3 | Summary(pl.UTF-8): Lazarus - biblioteka komponentów i IDE |
16e60590 | 4 | Name: lazarus |
727d9e75 JR |
5 | Version: 1.0.10 |
6 | Release: 1 | |
452d80a1 | 7 | License: GPL and modified LGPL |
16e60590 | 8 | Group: Development/Tools |
121450c3 | 9 | Source0: http://downloads.sourceforge.net/lazarus/%{name}-%{version}-0.tar.gz |
727d9e75 | 10 | # Source0-md5: 60d3b297079ca4151f690245295a8708 |
16e60590 | 11 | URL: http://www.lazarus.freepascal.org/ |
5d6285d0 | 12 | Patch0: %{name}-desktop.patch |
9473aaa5 | 13 | BuildRequires: fpc >= 2.4.0 |
452d80a1 | 14 | BuildRequires: gdk-pixbuf-devel |
710f2e36 | 15 | BuildRequires: gtk+2-devel |
96f45931 | 16 | %requires_eq fpc |
9473aaa5 | 17 | Requires: fpc-src >= 2.4.0 |
452d80a1 | 18 | Requires: gdk-pixbuf >= 0.18.0 |
16e60590 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
13af6708 JR |
21 | # Stabs debuginfo not supported |
22 | %define _enable_debug_packages 0 | |
23 | ||
d47f898d | 24 | %define lazdir %{_libdir}/lazarus |
16e60590 | 25 | |
26 | %description | |
27 | Lazarus is a free and opensource RAD tool for freepascal using the | |
55d9a57f | 28 | Lazarus Component Library (LCL), which is also included in this |
16e60590 | 29 | package. |
30 | ||
9cc3567d JR |
31 | %description -l pl.UTF-8 |
32 | Lazarus to darmowe i opensourcowe narzędzie RAD dla freepascala, | |
33 | używające biblioteki komponentów LCL (Lazarus Component Library), | |
34 | która jest także zawarta w tym pakiecie. | |
16e60590 | 35 | |
36 | %prep | |
37 | %setup -q -n %{name} | |
5d6285d0 | 38 | %patch0 -p1 |
16e60590 | 39 | |
16e60590 | 40 | %build |
9473aaa5 | 41 | %{__make} -j1 |
16e60590 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
42ee4494 | 45 | install -d $RPM_BUILD_ROOT{%{_datadir},%{_libdir}/lazarus/docs,%{_pixmapsdir},%{_desktopdir},%{_bindir}} \ |
23548614 | 46 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
452d80a1 | 47 | |
23548614 | 48 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6b46919e | 49 | |
5d6285d0 | 50 | for i in components doceditor ide lcl units converter debugger ideintf languages localize.bat startlazarus \ |
452d80a1 | 51 | designer images lazarus localize.sh packager tools ; do |
42ee4494 | 52 | cp -a $i $RPM_BUILD_ROOT%{_libdir}/lazarus |
452d80a1 | 53 | done |
16e60590 | 54 | |
42ee4494 AM |
55 | cp -a docs/*.html $RPM_BUILD_ROOT%{_libdir}/lazarus/docs |
56 | cp -a docs/html $RPM_BUILD_ROOT%{_libdir}/lazarus/docs | |
57 | cp -a docs/images $RPM_BUILD_ROOT%{_libdir}/lazarus/docs | |
58 | cp -a docs/xml $RPM_BUILD_ROOT%{_libdir}/lazarus/docs | |
59 | install docs/Contributors.txt $RPM_BUILD_ROOT%{_libdir}/lazarus/docs | |
5d6285d0 | 60 | |
452d80a1 RT |
61 | install images/ide_icon48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/lazarus.png |
62 | install install/lazarus.desktop $RPM_BUILD_ROOT%{_desktopdir}/lazarus.desktop | |
55d9a57f | 63 | ln -sf %{lazdir}/lazarus $RPM_BUILD_ROOT%{_bindir}/lazarus |
452d80a1 | 64 | ln -sf %{lazdir}/startlazarus $RPM_BUILD_ROOT%{_bindir}/startlazarus |
16e60590 | 65 | |
66 | %clean | |
55d9a57f | 67 | rm -rf $RPM_BUILD_ROOT |
16e60590 | 68 | |
69 | %files | |
70 | %defattr(644,root,root,755) | |
9473aaa5 | 71 | %doc docs/*.txt docs/*.pdf |
16e60590 | 72 | %attr(755,root,root) %{_bindir}/lazarus |
452d80a1 | 73 | %attr(755,root,root) %{_bindir}/startlazarus |
42ee4494 AM |
74 | %dir %{_libdir}/lazarus |
75 | %{_libdir}/lazarus/components | |
76 | %{_libdir}/lazarus/converter | |
77 | %{_libdir}/lazarus/debugger | |
78 | %{_libdir}/lazarus/designer | |
79 | %{_libdir}/lazarus/doceditor | |
80 | %{_libdir}/lazarus/docs | |
81 | %{_libdir}/lazarus/ide | |
82 | %{_libdir}/lazarus/ideintf | |
83 | %{_libdir}/lazarus/images | |
84 | %{_libdir}/lazarus/languages | |
85 | %{_libdir}/lazarus/lcl | |
86 | %{_libdir}/lazarus/packager | |
87 | %{_libdir}/lazarus/tools | |
88 | %{_libdir}/lazarus/units | |
89 | %attr(755,root,root) %{_libdir}/lazarus/lazarus | |
90 | %attr(755,root,root) %{_libdir}/lazarus/startlazarus | |
55d9a57f JB |
91 | %{_pixmapsdir}/lazarus.png |
92 | %{_desktopdir}/lazarus.desktop | |
23548614 | 93 | %{_examplesdir}/%{name}-%{version} |