X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgbiff2.git;a=blobdiff_plain;f=gbiff2.spec;h=56165a7d22a66105ee873fc0862a0287c5348e10;hp=3fc3fefd6f6b6aaf57a70c646e2d52139ebe5f36;hb=400d79735111e093a96d5b7e059bc8c07351c065;hpb=34488a6cf88e37314735755856b1756d4c52557a diff --git a/gbiff2.spec b/gbiff2.spec index 3fc3fef..56165a7 100644 --- a/gbiff2.spec +++ b/gbiff2.spec @@ -1,26 +1,24 @@ +# +# Conditional build: +%bcond_without gnome # without gnome applet support +# Summary: gbiff checks and informs for mail Summary(pl): Sprawdza i informuje o nowej poczcie -Name: gbiff -Version: 2.4a -Release: 2 -License: GPL -Group: Applications/Mail -Source0: http://www.loria.fr/~rougier/gbiff/%{name}-%{version}.tar.gz -URL: http://www.loria.fr/~rougier/gbiff/gbiff.html -BuildRequires: gnome-libs-devel >= 1.2.13 -BuildRequires: gtk+-devel >= 1.2.5 -BuildRequires: automake -BuildRequires: autoconf -BuildRequires: libtool -BuildRequires: perl -BuildRequires: ORBit-devel -Requires: applnk +Name: gbiff2 +Version: 0.4.0 +Release: 1 +License: GPL +Group: Applications/Mail +Source0: http://www.loria.fr/~rougier/gbiff/downloads/%{name}-%{version}.tar.gz +URL: http://www.loria.fr/~rougier/gbiff/index.php +%{?with_gnome:BuildRequires: gnome-panel-devel} +BuildRequires: gtk+2-devel >= 2.0.0 +BuildRequires: libglade2-devel >= 1.99.6 +BuildRequires: openssl-devel +%{?with_gnome:Requires(post): GConf2} +Obsoletes: gbiff BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _sysconfdir /etc/X11/GNOME -%define _mandir %{_prefix}/man - %description gbiff checks for mail within afile, a qmail or MH style dir, or on a POP3 server. It can display headers (number, sender, subject, and @@ -29,19 +27,15 @@ date) when new mail has arrived. %description -l pl gbiff sprawdza pocztê wewn±trz plików, katalogów w stylu qmaila lub MH lub na serwerze POP3. Potrafi wy¶wietlaæ nag³ówki (liczbê, autora, -temat i date) gdy przychodzi nowa poczta. +temat i datê) gdy przychodzi nowa poczta. %prep %setup -q %build -rm -f missing -%{__libtoolize} -%{__aclocal} -%{__autoconf} -%{__automake} -CFLAGS="%{rpmcflags} -I /usr/include/orbit-1.0" -%configure +%configure \ + %{?with_gnome:--with-gnome} \ + --disable-schema-install %{__make} @@ -50,16 +44,28 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ - sysdir=%{_applnkdir}/Network/Mail + GCONFTOOL=true + +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files +%if %{with gnome} +%post +%gconf_schema_install +%endif + +%files -f %{name}.lang %defattr(644,root,root,755) -%doc AUTHORS NEWS README ChangeLog THANKS -%attr(755,root,root) %{_bindir}/* -%{_applnkdir}/Network/Mail/*.desktop -%{_pixmapsdir}/%{name} -%{_datadir}/sounds/%{name} -%{_sysconfdir}/CORBA/servers/* +%doc AUTHORS ChangeLog NEWS README THANKS +%attr(755,root,root) %{_bindir}/gbiff2 +%{_datadir}/gbiff2 +%{_datadir}/sounds/gbiff2 +%{_pixmapsdir}/*.png +%{_mandir}/man1/* +%if %{with gnome} +%{_sysconfdir}/gconf/schemas/*.schemas +%{_libdir}/bonobo/servers/*.server +%{_datadir}/gnome-2.0/ui/*.xml +%endif