]> git.pld-linux.org Git - packages/mlview.git/blob - mlview.spec
f3c0714fd34f82a034cfc4a7e7f97a1dc90c2d4e
[packages/mlview.git] / mlview.spec
1 Summary:        XML Editor for GNOME
2 Summary(pl.UTF-8):      Edytor XML-a dla GNOME
3 Name:           mlview
4 Version:        0.7.1
5 Release:        3
6 License:        GPL
7 Group:          X11/Applications/Editors
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/mlview/0.7/%{name}-%{version}.tar.bz2
9 # Source0-md5:  85383331e5bb6d59293cee5b86595284
10 Patch0:         %{name}-locale-names.patch
11 Patch1:         %{name}-desktop.patch
12 URL:            http://www.freespiders.org/projects/gmlview/
13 BuildRequires:  GConf2-devel >= 2.10.0
14 BuildRequires:  autoconf >= 2.52
15 BuildRequires:  automake
16 BuildRequires:  eel-devel >= 2.10.0
17 BuildRequires:  gettext-devel
18 BuildRequires:  gnome-common >= 2.8.0
19 BuildRequires:  gtk+2-devel >= 2:2.6.4
20 BuildRequires:  intltool >= 0.33
21 BuildRequires:  libglade2-devel >= 1:2.5.1
22 BuildRequires:  libgnome-devel >= 2.10.0-2
23 #BuildRequires: libgnomeui-devel >= 2.0
24 BuildRequires:  libtool
25 BuildRequires:  libxml2-devel >= 1:2.6.19
26 BuildRequires:  libxslt >= 1.1.14
27 BuildRequires:  rpmbuild(macros) >= 1.197
28 Requires(post): /sbin/ldconfig
29 Requires(post,preun):   GConf2
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 gnome-mlview (GNOME Markup Language Viewer) is an XML editor for
34 GNOME. It include support to view, edit, validate and save xml
35 document by graphically manipulate the xml Document Object Model.
36
37 %description -l pl.UTF-8
38 gnome-mlview (GNOME Markup Language Viewer) to edytor XML-a dla GNOME.
39 Umożliwia przeglądanie, modyfikowanie oraz zapisywanie dokumentów XML
40 z graficznym interfejsem.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %patch1 -p1
46
47 mv po/{no,nb}.po
48
49 %build
50 %{__glib_gettextize}
51 %{__intltoolize}
52 %{__libtoolize}
53 %{__aclocal}
54 %{__autoconf}
55 %{__automake}
56 %configure \
57         --disable-static \
58         --disable-schemas-install
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 cp $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-app-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
70
71 # Remove useless static file
72 rm -f $RPM_BUILD_ROOT%{_libdir}/libmlview.la
73
74 %find_lang %{name} --with-gnome
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post
80 /sbin/ldconfig
81 %gconf_schema_install mlview.schemas
82
83 %preun
84 %gconf_schema_uninstall mlview.schemas
85
86 %postun -p /sbin/ldconfig
87
88 %files -f %{name}.lang
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_bindir}/mlv
91 %attr(755,root,root) %{_libdir}/lib*.so.*.*
92 %{_datadir}/mlview
93 %{_desktopdir}/mlview.desktop
94 %{_pixmapsdir}/*
95 %{_sysconfdir}/gconf/schemas/*
This page took 0.060718 seconds and 2 git commands to generate.