]> git.pld-linux.org Git - SPECS.git/blob - linpacker.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / linpacker.spec
1 Summary:        linpacker is a scientific tool for studying rectangle packings
2 Summary(pl.UTF-8):      Naukowe narzędzie do studiowania pakowania wielokątów
3 Name:           linpacker
4 Version:        0.5.6
5 Release:        2
6 %ifarch %{ix86}
7 License:        GPL with BSD-licensed, closed-source plugins
8 %else
9 License:        GPL
10 %endif
11 Group:          Applications/Math
12 Source0:        http://freehackers.org/~tnagy/linpacker/%{name}-%{version}.tar.bz2
13 # Source0-md5:  ea4175629d728b634f8b4f4fa2ceac91
14 Patch0:         %{name}-libdir.patch
15 Patch1:         %{name}-desktop.patch
16 Patch2:         %{name}-am19.patch
17 URL:            http://freehackers.org/~tnagy/linpacker.html
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  kdelibs-devel
21 BuildRequires:  rpmbuild(macros) >= 1.129
22 BuildRequires:  qt-devel >= 6:3.2
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 linpacker is a scientific tool for studying rectangle packings.
27
28 %description -l pl.UTF-8
29 Naukowe narzędzie do studiowania pakowania wielokątów.
30
31 %prep
32 %setup -q -n %{name}-%(echo %{version}|cut -f -3 -d .)
33 %patch0 -p0
34 %patch1 -p1
35 %patch2 -p1
36
37 %build
38 cp -f /usr/share/automake/config.sub admin
39 %{__make} -f Makefile.cvs
40 %configure \
41         --with-qt-libraries=%{_libdir}
42
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 install -D $RPM_BUILD_ROOT%{_datadir}/applications/kde/%{name}.desktop \
52         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
53
54 # BSD license, sources not provided, only x86 binaries
55 %ifnarch %{ix86}
56 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
57 %endif
58 # compiled for i586
59 %ifarch i386 i486
60 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*2DBP1*
61 %endif
62
63 %find_lang %{name}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files -f %{name}.lang
69 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_bindir}/*
71 %ifarch %{ix86}
72 %{_libdir}/linpacker
73 %endif
74 %{_datadir}/apps/%{name}
75 %{_datadir}/config.kcfg/%{name}*
76 %{_datadir}/mimelnk/application/*.desktop
77 %{_iconsdir}/*/*/*/%{name}.png
78 %{_desktopdir}/%{name}.desktop
This page took 0.113714 seconds and 3 git commands to generate.