]> git.pld-linux.org Git - packages/abiword.git/blob - abiword.spec
32b16e14ee88d4140aa605173b49f1869d08e4b6
[packages/abiword.git] / abiword.spec
1 Summary:        AbiWord - advanced wordprocessor
2 Summary(pl):    AbiWord - zaawansowany procesor tekstu
3 Name:           abiword
4 Version:        1.0.0
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications
8 Source0:        http://savannah.gnu.org/download/abiword/1.0.0/source/%{name}-%{version}.tar.gz
9 Source1:        %{name}.desktop
10 URL:            http://www.abisource.com/
11 BuildRequires:  ImageMagick-c++-devel
12 BuildRequires:  ImageMagick-devel
13 BuildRequires:  ORBit-devel
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  bzip2-devel
17 BuildRequires:  expat-devel
18 BuildRequires:  gettext-devel
19 BuildRequires:  gnome-libs-devel
20 BuildRequires:  libjpeg-devel
21 BuildRequires:  libpng-devel
22 BuildRequires:  libtool
23 BuildRequires:  libxml2-devel
24 BuildRequires:  pspell-devel
25 BuildRequires:  readline-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _prefix         /usr/X11R6
29 %define         _mandir         %{_prefix}/man
30 %define         _sysconfdir     /etc/X11/GNOME
31
32 %description
33 AbiWord is a free word processing program similar to Microsoft Word.
34 It is suitable for typing papers, letters, reports, memos, and so
35 forth.
36
37 %description -l pl
38 AbiWord jest darmowym procesorem tekstu podobnym do Microsoft Word.
39 Jest idealnym narzêdziem do pisania dokumentów, listów, raportów itp.
40
41 %prep
42 %setup -q
43
44 %build
45 cd abi
46 ./autogen.sh
47 gettextize --copy --force
48 if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
49         CPPFLAGS="`pkg-config libpng12 --cflags`"
50 fi
51 %configure CPPFLAGS="$CPPFLAGS" \
52         --enable-gnome \
53         --enable-bidi \
54         --with-pspell \
55         --with-libjpeg \
56         --with-libxml2 \
57         --with-expat
58 %{__make} -f GNUmakefile
59
60 cd ../abiword-plugins
61 find . -name autogen.sh -type f -exec /bin/sh -c "echo \"libtoolize --copy --force\" >> {}" ";"
62 ./autogen.sh; ./autogen.sh
63 %configure CPPFLAGS="$CPPFLAGS `%{_bindir}/gtk-config --cflags`" \
64         --enable-gnome \
65         --with-bzip2 \
66         --with-ImageMagick
67 %{__make} -f GNUmakefile
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_bindir},%{_applnkdir}/Office/Wordprocessors,%{_pixmapsdir}}
72
73 %{__make} -C abi -f GNUmakefile install \
74         DESTDIR=$RPM_BUILD_ROOT
75 %{__make} -C abiword-plugins -f GNUmakefile install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Office/Wordprocessors
79 install $RPM_BUILD_ROOT%{_datadir}/AbiSuite/icons/abiword_48.png $RPM_BUILD_ROOT%{_pixmapsdir}
80
81 gzip -9nf CREDITS.TXT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc abi/docs/*.abw abi/*.gz
89 %attr(755,root,root) %{_bindir}/[At]*
90 %{_datadir}/AbiSuite
91 %{_applnkdir}/Office/Wordprocessors/*
92 %{_pixmapsdir}/*.png
This page took 0.027647 seconds and 3 git commands to generate.