]> git.pld-linux.org Git - packages/gaby.git/blob - gaby.spec
- conditional build
[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(pl):      X11/Aplikacje
18 License:        GPL
19 Url:            http://gaby.sourceforge.net/
20 Source0:        http://gaby.sourceforge.net/archives/%{name}-%{version}.tar.gz
21 Patch0:         gaby-DESTDIR.patch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 BuildRequires:  libtool
24 BuildRequires:  bison
25 %{!?_without_gui:BuildRequires:         gtk+-devel >= 1.2.0}
26 %{!?_without_python:BuildRequires:      python-devel}
27 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
28 %{!?_without_libglade:BuildRequires:    libglade-devel}
29 # shouldn't this dependency be moved to libglade-devel ?
30 %{!?_without_libglade:BuildRequires:    libxml-devel}
31 %{!?_without_xml:BuildRequires:         libxml-devel}
32 %{!?_without_gdk_pixbuf:BuildRequires:  gdk-pixbuf-devel}
33 %{!?_without_gui:Requires:      gtk+ >= 1.2.0}
34 %{!?_without_python:Requires:   python}
35 %{!?_without_gnome:Requires:    gnome-libs}
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}}
39
40 %define         _prefix         /usr/X11R6
41 %define         _mandir         %{_prefix}/man
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 menad¿erem baz danych u¿ywaj±cym GTK+ i
53 GNOME. Zosta³ zaprojektowany aby dostarczyæ 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 pluginy.
57
58 %prep
59 %setup -q
60 %patch0 -p0
61
62 %build
63 CFLAGS="%{rpmcflags}" ./configure \
64         --prefix=%{_prefix} \
65         --sysconfdir=%{_sysconfdir} \
66         %{?_without_gnome:--disable-gnome} \
67         %{?_without_python:--disable-python} \
68         %{?_without_gtk:--disable-gui} \
69         %{?_without_libglade:--without-libglade-config} \
70         %{?_without_xml:--without-xml-config} \
71         %{?_without_gdk_pixbuf:--disable-gdk_pixbuftest} \
72         
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
78
79 gzip -9nf AUTHORS BUGS ChangeLog NEWS README* TODO*
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86 %doc AUTHORS.gz BUGS.gz ChangeLog.gz Gabyrc NEWS.gz README.gz
87 %doc README.translations.gz README.upgrading.gz TODO.gz TODO.more.gz 
88 %doc doc/*.sgml doc/C/*.sgml 
89 %{_sysconfdir}/gaby
90 %{_libdir}/gaby
91 %{_datadir}/gaby
92 %attr(755,root,root) %{_bindir}/gaby 
93 %attr(755,root,root) %{_bindir}/gabyprint 
94 %attr(755,root,root) %{_bindir}/gbc 
95 %attr(755,root,root) %{_bindir}/gcd 
96 %attr(755,root,root) %{_bindir}/videobase 
97 %attr(755,root,root) %{_bindir}/gnomecard 
98 %attr(755,root,root) %{_bindir}/builder
99 %lang(da) %{_datadir}/locale/da/LC_MESSAGES/gaby.mo
100 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/gaby.mo
101 %lang(es) %{_datadir}/locale/es/LC_MESSAGES/gaby.mo
102 %lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/gaby.mo
103 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/gaby.mo
104 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/gaby.mo
105 %lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/gaby.mo
106 %lang(no) %{_datadir}/locale/no/LC_MESSAGES/gaby.mo
107 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/gaby.mo
108 %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/gaby.mo
This page took 0.070593 seconds and 3 git commands to generate.