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