]> git.pld-linux.org Git - packages/gaby.git/blame - gaby.spec
- tabs in preamble
[packages/gaby.git] / gaby.spec
CommitLineData
1d85445c 1#
2# Conditional build:
21ef4e65 3%bcond_without gtk # without gtk+-based gui (text only)
65e0ca55 4%bcond_without python # plain gtk-based version without python support
5%bcond_without gnome # without gnome-based support
6%bcond_without libglade # without libglade config
7%bcond_without xml # without xml config
8%bcond_without gdk_pixbuf # without gdk-pixbuf
1d85445c 9#
6cd84358 10Summary: Gaby is a small personal databases manager
b6d6c901 11Summary(pl.UTF-8): Gaby - mały osobisty zarządca baz danych
6cd84358 12Name: gaby
724adde7 13Version: 2.0.2
6cd84358 14Release: 1
6cd84358 15License: GPL
e3a87df3 16Group: X11/Applications
42e174fb 17Source0: http://gaby.sourceforge.net/archives/%{name}-%{version}.tar.gz
e08837fa 18# Source0-md5: 1203f7a548e46bc0bf5987fb2e1508ee
b8cea237 19Patch0: %{name}-DESTDIR.patch
89d21ce6
JB
20Patch1: %{name}-gcc33.patch
21Patch2: %{name}-doc.patch
e3a87df3 22URL: http://gaby.sourceforge.net/
89d21ce6
JB
23BuildRequires: autoconf
24BuildRequires: automake
1d85445c 25BuildRequires: bison
65e0ca55 26%{?with_gdk_pixbuf:BuildRequires: gdk-pixbuf-devel >= 0.7.0}
89d21ce6 27BuildRequires: gettext-devel
65e0ca55 28%{?with_gnome:BuildRequires: gnome-libs-devel}
29%{?with_gui:BuildRequires: gtk+-devel >= 1.2.5}
30%{?with_libglade:BuildRequires: libglade-devel}
e3a87df3 31BuildRequires: libtool
65e0ca55 32%{?with_libglade:BuildRequires: libxml-devel}
33%{?with_xml:BuildRequires: libxml-devel}
34%{?with_python:BuildRequires: python-devel}
35%{?with_python:BuildRequires: python-pygtk < 1.99}
1d85445c 36# python-pygtk and gtk+-devel require to be installed with the same prefix
37# to be visible; currently not this case :(
65e0ca55 38%{?with_python:%{?with_gui:Requires: python-pygtk < 1.99}}
39%{?with_gui:Requires: gtk+ >= 1.2.5}
40%{?with_python:Requires: python}
e3a87df3 41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b91b8fd3 42
43%description
f17705b9 44Gaby is a small personal databases manager using GTK+ and GNOME (if
6cd84358 45available) for its GUI. It was designed to provide straight-forward
46access to databases a 'normal' user would like (addresses, books, ...)
47while keeping the ability to easily create databases for other needs.
48On a technical side it was designed with extensibility in mind and
49relies a lot on plug-ins.
b91b8fd3 50
b067588a
JR
51%description -l pl.UTF-8
52Gaby jest małym osobistym zarządcą baz danych używającym GTK+ i
53GNOME. Został zaprojektowany aby udostępnić prosty dostęp do baz
54danych, które "zwykły" użytkownik chciałby mieć (adresy, książki...),
55pozwalając łatwo tworzyć bazy do innych celów. Od technicznej strony
56został zaprojektowany tak, by być rozszerzalnym poprzez wtyczki.
42e174fb 57
b91b8fd3 58%prep
6cd84358 59%setup -q
89d21ce6
JB
60%patch0 -p1
61%patch1 -p1
62%patch2 -p1
b91b8fd3 63
64%build
89d21ce6
JB
65%{__gettextize}
66%{__libtoolize}
67%{__aclocal}
68%{__autoconf}
69%{__autoheader}
70%{__automake}
71CPPFLAGS="`gdk-pixbuf-config --cflags` `libglade-config --cflags` `orbit-config --cflags client`"
72%configure \
65e0ca55 73 %{!?with_gnome:--disable-gnome} \
74 %{!?with_python:--disable-python} \
75 %{!?with_gtk:--disable-gui} \
76 %{!?with_libglade:--without-libglade-config} \
77 %{!?with_xml:--without-xml-config} \
78 %{!?with_gdk_pixbuf:--disable-gdk_pixbuftest} \
b8cea237 79
39a3583d 80%{__make}
b91b8fd3 81
82%install
6cd84358 83rm -rf $RPM_BUILD_ROOT
66db1b12 84
e3a87df3 85%{__make} install \
89d21ce6
JB
86 DESTDIR=$RPM_BUILD_ROOT
87
88find $RPM_BUILD_ROOT%{_libdir}/%{name} -name '*.a' -o -name '*.la' | xargs rm -f
89
90%find_lang %{name} --with-gnome
b91b8fd3 91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
89d21ce6 95%files -f %{name}.lang
6cd84358 96%defattr(644,root,root,755)
b0b34678 97%doc AUTHORS BUGS ChangeLog NEWS README* TODO* misc/Gabyrc
89d21ce6
JB
98%attr(755,root,root) %{_bindir}/*
99%attr(755,root,root) %{_libdir}/%{name}
66db1b12 100%{_sysconfdir}/gaby
89d21ce6
JB
101%dir %{_datadir}/gaby
102%{_datadir}/gaby/glade
103%{_datadir}/gaby/scripts
104%{_datadir}/gaby/gaby_tips.txt
105%lang(de) %{_datadir}/gaby/gaby_tips_de.txt
106%lang(fi) %{_datadir}/gaby/gaby_tips_fi.txt
107%lang(fr) %{_datadir}/gaby/gaby_tips_fr.txt
d8a34899 108%lang(nb) %{_datadir}/gaby/gaby_tips_no.txt
89d21ce6 109%{_mandir}/man1/*
This page took 0.06608 seconds and 4 git commands to generate.