]> git.pld-linux.org Git - packages/gaby.git/blob - gaby.spec
ac8da75763b4739c72d2c805a894e32251e20bdf
[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 Group:          X11/Applications
16 License:        GPL
17 Url:            http://gaby.sourceforge.net/
18 Source0:        http://gaby.sourceforge.net/archives/%{name}-%{version}.tar.gz
19 Patch0:         %{name}-DESTDIR.patch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 BuildRequires:  libtool
22 BuildRequires:  bison
23 %{!?_without_gui:BuildRequires:         gtk+-devel >= 1.2.0}
24 %{!?_without_python:BuildRequires:      python-devel}
25 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
26 %{!?_without_libglade:BuildRequires:    libglade-devel}
27 # shouldn't this dependency be moved to libglade-devel ?
28 %{!?_without_libglade:BuildRequires:    libxml-devel}
29 %{!?_without_xml:BuildRequires:         libxml-devel}
30 %{!?_without_gdk_pixbuf:BuildRequires:  gdk-pixbuf-devel}
31 %{!?_without_gui:Requires:      gtk+ >= 1.2.0}
32 %{!?_without_python:Requires:   python}
33 %{!?_without_gnome:Requires:    gnome-libs}
34 # python-pygtk and gtk+-devel require to be installed with the same prefix
35 # to be visible; currently not this case :(
36 %{!?_without_python:%{!?_without_gui:Requires:  python-pygtk}}
37
38 %define         _prefix         /usr/X11R6
39 %define         _mandir         %{_prefix}/man
40
41 %description
42 Gaby is a small personal databases manager using GTK+ and Gnome (if
43 available) for its GUI. It was designed to provide straight-forward
44 access to databases a 'normal' user would like (addresses, books, ...)
45 while keeping the ability to easily create databases for other needs.
46 On a technical side it was designed with extensibility in mind and
47 relies a lot on plug-ins.
48
49 %description -l pl
50 Gaby jest ma³ym osobistym zarz±dc± baz danych u¿ywaj±cym GTK+ i
51 GNOME. Zosta³ zaprojektowany aby udostêpniæ prosty dostêp do baz
52 danych, które "zwyk³y" u¿ytkownik chcia³by mieæ (adresy, ksi±¿ki...),
53 pozwalaj±c ³atwo tworzyæ bazy do innych celów. Od technicznej strony
54 zosta³ zaprojektowany tak, by byæ rozszerzalnym poprzez wtyczki.
55
56 %prep
57 %setup -q
58 %patch0 -p0
59
60 %build
61 CFLAGS="%{rpmcflags}" ./configure \
62         --prefix=%{_prefix} \
63         --sysconfdir=%{_sysconfdir} \
64         %{?_without_gnome:--disable-gnome} \
65         %{?_without_python:--disable-python} \
66         %{?_without_gtk:--disable-gui} \
67         %{?_without_libglade:--without-libglade-config} \
68         %{?_without_xml:--without-xml-config} \
69         %{?_without_gdk_pixbuf:--disable-gdk_pixbuftest} \
70
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
76
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc AUTHORS BUGS ChangeLog NEWS README* TODO* Gabyrc 
84 %doc doc/*.sgml doc/C/*.sgml
85 %{_sysconfdir}/gaby
86 %{_libdir}/gaby
87 %{_datadir}/gaby
88 %attr(755,root,root) %{_bindir}/gaby
89 %attr(755,root,root) %{_bindir}/gabyprint
90 %attr(755,root,root) %{_bindir}/gbc
91 %attr(755,root,root) %{_bindir}/gcd
92 %attr(755,root,root) %{_bindir}/videobase
93 %attr(755,root,root) %{_bindir}/gnomecard
94 %attr(755,root,root) %{_bindir}/builder
95 %lang(da) %{_datadir}/locale/da/LC_MESSAGES/gaby.mo
96 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/gaby.mo
97 %lang(es) %{_datadir}/locale/es/LC_MESSAGES/gaby.mo
98 %lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/gaby.mo
99 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/gaby.mo
100 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/gaby.mo
101 %lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/gaby.mo
102 %lang(no) %{_datadir}/locale/no/LC_MESSAGES/gaby.mo
103 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/gaby.mo
104 %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/gaby.mo
This page took 0.148671 seconds and 2 git commands to generate.