| 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 |
Requires: libgnomeui-0 |
|---|
| 41 |
|
|---|
| 42 |
BuildRequires: make |
|---|
| 43 |
BuildRequires: gcc |
|---|
| 44 |
BuildRequires: pkg-config |
|---|
| 45 |
BuildRequires: libcamel1.2-dev |
|---|
| 46 |
BuildRequires: firefox-dev |
|---|
| 47 |
BuildRequires: libglib2.0-0-dev |
|---|
| 48 |
BuildRequires: libgnome-vfs-dev |
|---|
| 49 |
BuildRequires: python-gtk2-dev |
|---|
| 50 |
BuildRequires: libgnomeui-dev |
|---|
| 51 |
%endif |
|---|
| 52 |
|
|---|
| 53 |
%description |
|---|
| 54 |
Tinymail e-mail library and development framework |
|---|
| 55 |
|
|---|
| 56 |
%package devel |
|---|
| 57 |
Summary: Devel package for libtinymail |
|---|
| 58 |
Group: Development/Libraries |
|---|
| 59 |
Requires: %{name} = %{version}-%{release} |
|---|
| 60 |
|
|---|
| 61 |
%description devel |
|---|
| 62 |
### Unfinished ## |
|---|
| 63 |
libtinymail header files |
|---|
| 64 |
|
|---|
| 65 |
%prep |
|---|
| 66 |
%setup -q |
|---|
| 67 |
|
|---|
| 68 |
%build |
|---|
| 69 |
%configure \ |
|---|
| 70 |
--prefix=%{_prefix} \ |
|---|
| 71 |
--bindir=%{_bindir} \ |
|---|
| 72 |
--sbindir=%{_sbindir} \ |
|---|
| 73 |
--libexecdir=%{_libexecdir} \ |
|---|
| 74 |
--libdir=%{_libdir} \ |
|---|
| 75 |
--datadir=%{_datadir} \ |
|---|
| 76 |
--sysconfdir=%{_sysconfdir} \ |
|---|
| 77 |
--sharedstatedir=%{_sharedstatedir} \ |
|---|
| 78 |
--localstatedir=%{_localstatedir} \ |
|---|
| 79 |
--libdir=%{_libdir} \ |
|---|
| 80 |
--includedir=%{_includedir} \ |
|---|
| 81 |
--oldincludedir=%{_oldincludedir} \ |
|---|
| 82 |
--infodir=%{_infodir} \ |
|---|
| 83 |
--mandir=%{_mandir} |
|---|
| 84 |
|
|---|
| 85 |
make clean |
|---|
| 86 |
make |
|---|
| 87 |
|
|---|
| 88 |
%install |
|---|
| 89 |
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" |
|---|
| 90 |
%makeinstall prefix=%{buildroot} |
|---|
| 91 |
|
|---|
| 92 |
%clean |
|---|
| 93 |
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" |
|---|
| 94 |
|
|---|
| 95 |
%post -p /sbin/ldconfig |
|---|
| 96 |
%postun -p /sbin/ldconfig |
|---|
| 97 |
|
|---|
| 98 |
%files |
|---|
| 99 |
%defattr(-,root,root) |
|---|
| 100 |
%{_libdir}/*.so |
|---|
| 101 |
%{_libdir}/*.a |
|---|
| 102 |
%{_libdir}/*.la |
|---|
| 103 |
|
|---|
| 104 |
%files devel |
|---|
| 105 |
%defattr(-,root,root) |
|---|
| 106 |
%{_includedir}/libtinymail-1.0 |
|---|
| 107 |
%{_includedir}/libtinymail-camel-1.0 |
|---|
| 108 |
%{_includedir}/libtinymail-gnome-desktop-1.0 |
|---|
| 109 |
%{_includedir}/libtinymail-gnomevfs-1.0 |
|---|
| 110 |
%{_includedir}/libtinymailui-1.0 |
|---|
| 111 |
%{_includedir}/libtinymailui-gtk-1.0 |
|---|
| 112 |
%{_includedir}/libtinymailui-mozembed-1.0 |
|---|
| 113 |
%{_libdir}/pkgconfig/*.pc |
|---|
| 114 |
|
|---|
| 115 |
%changelog |
|---|
| 116 |
* Tue May 16 2006 Philip Van Hoof <pvanhoof@gnome.org> |
|---|
| 117 |
- Initial version |
|---|