Partial GIR support for Tinymail Camel
[tinymail:twotixpcs-tinymail.git] / libtinymail.spec.in
1 %define suse %(if [ -e /etc/SuSE-release ]; then echo 1; else echo 0; fi;)
2 %define redhat %(if [ -e /etc/redhat-release ]; then echo 1; else echo 0; fi;)
3 %define debian %(if [ -e /etc/debian_version ]; then echo 1; else echo 0; fi;)
4 %define mdk %(if [ -e /etc/mandrake-release ]; then echo 1; else echo 0; fi;)
5 %define conectiva %(if [ -e /etc/conectiva-release ]; then echo 1; else echo 0; fi;)
6
7 Name:           @PACKAGE_NAME@
8 Version:        @VERSION@
9 Release:        0
10 Summary:        Tinymail e-mail library and development framework
11 Group:          System/Libraries
12 Vendor:         Pvanhoof
13 Distribution:   Neutral
14 Packager:       Philip Van Hoof
15 URL:            http://www.pvanhoof.be/
16 Source:         @PACKAGE_NAME@-%{version}.tar.gz
17 License:        LGPL
18 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
19 Prefix:         /usr/local
20 PreReq:         /sbin/ldconfig
21
22 %if %{suse} || %{mdk} || %{redhat} || %{connectivia}
23
24 ### Unfinished ##
25
26 BuildRequires:  make
27 BuildRequires:  gcc
28 BuildRequires:  pkgconfig
29
30 ### Unfinished ##
31
32 %endif
33
34 %if %{debian}
35 Requires:       libglib2.0-0
36 Requires:       firefox
37 Requires:       libcamel1.2-8
38 Requires:       libgnome-vfs0
39 Requires:       python-gtk2
40
41 BuildRequires:  make
42 BuildRequires:  gcc
43 BuildRequires:  pkg-config
44 BuildRequires:  libcamel1.2-dev
45 BuildRequires:  firefox-dev
46 BuildRequires:  libglib2.0-0-dev
47 BuildRequires:  libgnome-vfs-dev
48 BuildRequires:  python-gtk2-dev
49 %endif
50
51 %description
52 Tinymail e-mail library and development framework
53
54 %package devel
55 Summary:        Devel package for libtinymail
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58
59 %description devel
60 ### Unfinished ##
61 libtinymail header files
62
63 %prep
64 %setup -q
65
66 %build
67 %configure \
68         --prefix=%{_prefix} \
69         --bindir=%{_bindir} \
70         --sbindir=%{_sbindir} \
71         --libexecdir=%{_libexecdir} \
72         --libdir=%{_libdir} \
73         --datadir=%{_datadir} \
74         --sysconfdir=%{_sysconfdir} \
75         --sharedstatedir=%{_sharedstatedir} \
76         --localstatedir=%{_localstatedir} \
77         --libdir=%{_libdir} \
78         --includedir=%{_includedir} \
79         --oldincludedir=%{_oldincludedir} \
80         --infodir=%{_infodir} \
81         --mandir=%{_mandir}
82
83 make clean
84 make
85
86 %install
87 [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
88 %makeinstall prefix=%{buildroot}
89
90 %clean
91 [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
92
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(-,root,root)
98 %{_libdir}/*.so
99 %{_libdir}/*.a
100 %{_libdir}/*.la
101
102 %files devel
103 %defattr(-,root,root)
104 %{_includedir}/libtinymail-1.0
105 %{_includedir}/libtinymail-camel-1.0
106 %{_includedir}/libtinymail-gnome-desktop-1.0
107 %{_includedir}/libtinymail-gnomevfs-1.0
108 %{_includedir}/libtinymailui-1.0
109 %{_includedir}/libtinymailui-gtk-1.0
110 %{_includedir}/libtinymailui-mozembed-1.0
111 %{_libdir}/pkgconfig/*.pc
112
113 %changelog
114 * Tue May 16 2006 Philip Van Hoof <pvanhoof@gnome.org>
115 - Initial version