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