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