]> git.pld-linux.org Git - packages/lazarus.git/blame - lazarus.spec
- updated to 1.0.10
[packages/lazarus.git] / lazarus.spec
CommitLineData
b606ecfb 1# TODO: optflags (where possible)
55d9a57f 2Summary: Lazarus Component Library and IDE
eec698b6 3Summary(pl.UTF-8): Lazarus - biblioteka komponentów i IDE
16e60590 4Name: lazarus
727d9e75
JR
5Version: 1.0.10
6Release: 1
452d80a1 7License: GPL and modified LGPL
16e60590 8Group: Development/Tools
121450c3 9Source0: http://downloads.sourceforge.net/lazarus/%{name}-%{version}-0.tar.gz
727d9e75 10# Source0-md5: 60d3b297079ca4151f690245295a8708
16e60590 11URL: http://www.lazarus.freepascal.org/
5d6285d0 12Patch0: %{name}-desktop.patch
9473aaa5 13BuildRequires: fpc >= 2.4.0
452d80a1 14BuildRequires: gdk-pixbuf-devel
710f2e36 15BuildRequires: gtk+2-devel
96f45931 16%requires_eq fpc
9473aaa5 17Requires: fpc-src >= 2.4.0
452d80a1 18Requires: gdk-pixbuf >= 0.18.0
16e60590 19BuildRoot: %{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
27Lazarus is a free and opensource RAD tool for freepascal using the
55d9a57f 28Lazarus Component Library (LCL), which is also included in this
16e60590 29package.
30
9cc3567d
JR
31%description -l pl.UTF-8
32Lazarus to darmowe i opensourcowe narzędzie RAD dla freepascala,
33używające biblioteki komponentów LCL (Lazarus Component Library),
34któ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
44rm -rf $RPM_BUILD_ROOT
42ee4494 45install -d $RPM_BUILD_ROOT{%{_datadir},%{_libdir}/lazarus/docs,%{_pixmapsdir},%{_desktopdir},%{_bindir}} \
23548614 46 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
452d80a1 47
23548614 48cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6b46919e 49
5d6285d0 50for i in components doceditor ide lcl units converter debugger ideintf languages localize.bat startlazarus \
452d80a1 51designer images lazarus localize.sh packager tools ; do
42ee4494 52cp -a $i $RPM_BUILD_ROOT%{_libdir}/lazarus
452d80a1 53done
16e60590 54
42ee4494
AM
55cp -a docs/*.html $RPM_BUILD_ROOT%{_libdir}/lazarus/docs
56cp -a docs/html $RPM_BUILD_ROOT%{_libdir}/lazarus/docs
57cp -a docs/images $RPM_BUILD_ROOT%{_libdir}/lazarus/docs
58cp -a docs/xml $RPM_BUILD_ROOT%{_libdir}/lazarus/docs
59install docs/Contributors.txt $RPM_BUILD_ROOT%{_libdir}/lazarus/docs
5d6285d0 60
452d80a1
RT
61install images/ide_icon48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/lazarus.png
62install install/lazarus.desktop $RPM_BUILD_ROOT%{_desktopdir}/lazarus.desktop
55d9a57f 63ln -sf %{lazdir}/lazarus $RPM_BUILD_ROOT%{_bindir}/lazarus
452d80a1 64ln -sf %{lazdir}/startlazarus $RPM_BUILD_ROOT%{_bindir}/startlazarus
16e60590 65
66%clean
55d9a57f 67rm -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}
This page took 0.20814 seconds and 4 git commands to generate.