File anjal.spec of Package anjal
Name: anjal
# List of additional build dependencies
#BuildRequires: gcc-c++ libxml2-devel
BuildRequires: intltool
BuildRequires: gettext
BuildRequires: evolution-data-server-devel
BuildRequires: evolution-devel
BuildRequires: libwebkit-devel
BuildRequires: update-desktop-files
Version: 0.1
Release: 1
License: GPL v2 or later
Source: anjal-0.1.tar.gz
Group: Productivity/Other
Summary: Anjal - aka Evolution-lite
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: evolution-data-server >= 2.25.0
Requires: evolution >= 2.25.0
BuildRequires: translation-update-upstream
Requires: %{name}-lang = %{version}
#Requires: webkit-1.0
%gconf_schemas_prereq
%description
Anjal - Email Client
#%prep
#%setup -q
#%patch0 -p1
%lang_package
%prep
%setup -q -n %{name}-%{version}
translation-update-upstream
%build
#autoreconf -fi
%configure
make
%install
make DESTDIR=%buildroot install
mkdir -p %{buildroot}/etc/ld.so.conf.d/
cat <<EOF >%{buildroot}/etc/ld.so.conf.d/%{name}.conf
%{_libdir}/evolution/2.26/components/
EOF
%if %{defined suse_version}
%suse_update_desktop_file -G "Mail" -N "Anjal" anjal Core-Office
%endif
#remove these files.
#rm %buildroot/%{_libdir}/libfilter.a
#rm %buildroot/%{_libdir}/libfilter.la
#rm %buildroot/%{_libdir}/libfilter.so
#rm %buildroot/%{_libdir}/libfilter.so.*
rm -rf %buildroot/doc/anjal
%find_lang anjal
%find_gconf_schemas
%{__cat} %{name}.schemas_list >%{name}.lst
# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
# echo '%%defattr(-,root,root)' >filelist
# find %buildroot -type f -printf '/%%P*\n' >>filelist
# echo '%buildroot/share/anjal' >> filelist
# echo '%buildroot/share/anjal/images' >>filelist
# echo '%buildroot/share/anjal/glade' >>filelist
%clean
rm -rf %buildroot
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files -f %{name}.schemas_list
%defattr(-,root,root)
%dir %{_datadir}/gnome-control-center/
%dir %{_datadir}/gnome-control-center/default-apps/
%{_bindir}/anjal
%{_datadir}/anjal
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-control-center/default-apps/anjal.xml
#%{_sysconfdir}/gconf/schemas/anjal.schemas
/etc/ld.so.conf.d/anjal.conf
%files lang -f anjal.lang
# This is a place for a proper filelist:
# /usr/bin/anjal
# You can also use shell wildcards:
# /usr/share/anjal/*
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here
%changelog
* Thu Mar 05 2009 sragavan@novell.com
- packaged anjal version 0.1 using the buildservice spec file wizard