]> git.pld-linux.org Git - SPECS.git/blob - sodipodi.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / sodipodi.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome   # without gnome-print support
4 #
5 Summary:        A GNOME Vector Graphics Application
6 Summary(pl.UTF-8):      Aplikacja do grafiki wektorowej dla GNOME
7 Name:           sodipodi
8 Version:        0.34
9 Release:        11
10 License:        GPL
11 Group:          Applications/Graphics
12 Source0:        http://dl.sourceforge.net/sodipodi/%{name}-%{version}.tar.gz
13 # Source0-md5:  396cd78526e5a8102fd11114f45a70fe
14 Patch0:         %{name}-desktop.patch
15 Patch1:         %{name}-home_etc.patch
16 Patch2:         %{name}-locale_names.patch
17 Patch3:         %{name}-libpng15.patch
18 Patch4:         format-security.patch
19 URL:            http://sodipodi.sourceforge.net/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  freetype-devel
23 BuildRequires:  gettext-tools
24 BuildRequires:  gtk+2-devel >= 1:2.0.0
25 BuildRequires:  libart_lgpl-devel >= 2.3.10
26 %{?with_gnome:BuildRequires:    libgnomeprint-devel >= 2.0.0}
27 %{?with_gnome:BuildRequires:    libgnomeprintui-devel >= 2.0.0}
28 BuildRequires:  libpng-devel
29 BuildRequires:  libxml2-devel >= 2.4.24
30 BuildRequires:  pkgconfig
31 BuildRequires:  popt-devel
32 # sr@Latn vs. sr@latin
33 Conflicts:      glibc-misc < 6:2.7
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _noautoreq      'perl(XML::XQL)' 'perl(XML::XQL::DOM)'
37
38 %description
39 Sodipodi is a general vector drawing program for GNOME environment.
40
41 %description -l pl.UTF-8
42 Sodipodi jest ogólnym programem do rysowania wektorowego dla
43 środowiska GNOME.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49 %patch2 -p1
50 %patch3 -p1
51 %patch4 -p1
52
53 mv -f po/{no,nb}.po
54 mv -f po/sr\@{Latn,latin}.po
55
56 %build
57 %configure \
58         %{?with_gnome:--with-gnome-print}
59
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT \
67         Graphicsdir=%{_desktopdir}
68
69 %find_lang %{name}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 umask 022
76 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
77
78 %postun
79 umask 022
80 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
81
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog NEWS README TODO
85 %attr(755,root,root) %{_bindir}/*
86 %{_datadir}/sodipodi
87 %{_mandir}/man1/*
88 %{_pixmapsdir}/*
89 %{_desktopdir}/*.desktop
90 %{_libdir}/%{name}
This page took 0.636935 seconds and 3 git commands to generate.